openbsd-ports/x11/tk/8.0/Makefile
2006-09-18 10:21:48 +00:00

52 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.23 2006/09/18 10:21:49 espie Exp $
# $FreeBSD: Makefile,v 1.7 1997/12/01 16:50:58 pst Exp $
COMMENT= "graphical toolkit for Tcl"
DISTNAME= tk8.0.5
PKGNAME= tk-8.0.5
SHARED_LIBS= tk80 1.5
CATEGORIES= x11 x11/tk
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
HOMEPAGE= http://dev.scriptics.com/software/tcltk/
LIB_DEPENDS= tcl80.>=1.5:tcl-8.0.5:lang/tcl/8.0
# BSD-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 c m
MAKE_FLAGS= CFLAGS="${CFLAGS}"
FAKE_FLAGS= INSTALL="install -c" INSTALL_ROOT="${WRKINST}" \
BASE_INCLUDE_DIR='$$(prefix)/include/tk$$(VERSION)' \
INCLUDE_INSTALL_DIR='$$(INSTALL_ROOT)$$(BASE_INCLUDE_DIR)' \
GENERIC_INCLUDE_INSTALL_DIR='$$(BASE_INCLUDE_DIR)/generic' \
UNIX_INCLUDE_INSTALL_DIR='$$(BASE_INCLUDE_DIR)/unix' \
MAN_INSTALL_DIR='$${INSTALL_ROOT}$$(TK_LIBRARY)/man'
SEPARATE_BUILD= simple
USE_X11= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--with-tcl="${LOCALBASE}/lib/tcl8.0"
CONFIGURE_ENV= PORTSDIR="${PORTSDIR}" \
LIBtk80_VERSION="${LIBtk80_VERSION}"
WRKSRC= ${WRKDIST}/unix
REGRESS_TARGET= test
REGRESS_DEPENDS=::lang/tcl/8.3:regress
REGRESS_FLAGS=TCL_BIN_DIR=`cd ${PORTSDIR}/lang/tcl/8.3 && ${MAKE} show=WRKBUILD`
# This regression test wants an X11 display
REGRESS_FLAGS+=DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
REGRESS_IS_INTERACTIVE=Yes
post-install:
@strip ${PREFIX}/bin/wish8.0
.include <bsd.port.mk>