d0d4470826
installed even if a newer one is already installed ok pval@
52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.18 2004/03/13 15:48:54 sturm Exp $
|
|
|
|
COMMENT= "graphical toolkit for Tcl"
|
|
|
|
VERSION= 8.3.5
|
|
|
|
DISTNAME= tk${VERSION}-src
|
|
PKGNAME= tk-${VERSION}
|
|
CATEGORIES= x11 x11/tk
|
|
MASTER_SITES= ${MASTER_SITE_TCLTK:=tcl8_3/}
|
|
|
|
HOMEPAGE= http://dev.scriptics.com/software/tcltk/
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
LIB_DEPENDS= tcl83.1.3:tcl-${VERSION}:lang/tcl/8.3
|
|
|
|
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= concurrent
|
|
USE_X11= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
|
CONFIGURE_ARGS+= --enable-static --with-tcl="${LOCALBASE}/lib/tcl8.3"
|
|
CONFIGURE_ENV= PORTSDIR="${PORTSDIR}"
|
|
|
|
WRKDIST= ${WRKDIR}/tk${VERSION}/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.3
|
|
|
|
.include <bsd.port.mk>
|