# $OpenBSD: Makefile,v 1.22 2010/11/06 23:49:20 espie Exp $ COMMENT = graphical toolkit for Tcl V = 8.4.19 DISTNAME = tk${V} PKGNAME = tk-${V} REVISION= 0 SHARED_LIBS = tk84 1.1 CATEGORIES = x11 x11/tk HOMEPAGE = http://www.tcl.tk/ MAINTAINER = Stuart Cassoff # BSD PERMIT_PACKAGE_CDROM = Yes PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM =Yes PERMIT_DISTFILES_FTP = Yes WANTLIB = X11 c m pthread-stubs xcb MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tcl/} DISTFILES = ${DISTNAME}-src.tar.gz LIB_DEPENDS = :tcl-${V}:lang/tcl/8.4 WANTLIB += tcl84 .if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax" MAKE_FLAGS += TK_BUILD_EXP_FILE="libtk84.a" \ TK_EXP_FILE="libtk84.a" .endif FAKE_FLAGS = INSTALL_DATA_DIR="${INSTALL_DATA_DIR}" \ INSTALL_LIBRARY="${INSTALL_DATA}" \ INSTALL_DATA="${INSTALL_DATA}" \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" REGRESS_FLAGS = HOME=${TESTHOME} SEPARATE_BUILD = concurrent USE_GROFF = Yes AUTOCONF_VERSION = 2.13 CONFIGURE_STYLE = autoconf no-autoheader old CONFIGURE_ARGS += ${CONFIGURE_SHARED} \ --includedir="${LOCALBASE}/include/tk8.4" \ --mandir="${LOCALBASE}/lib/tk8.4/man" \ --sysconfdir="${SYSCONFDIR}" \ --enable-man-symlinks \ --with-tcl="${LOCALBASE}/lib/tcl8.4" CONFIGURE_ENV += SHLIB_VERSION="${LIBtk84_VERSION}" \ CFLAGS="" REGRESS_IS_INTERACTIVE = x11 WRKSRC = ${WRKDIST}/unix REGRESS_TARGET = test TESTHOME = ${WRKDIR}/testhome pre-regress: @mkdir -p ${TESTHOME} post-install: .if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax" ln -s libtk84.a ${PREFIX}/lib/libtk84_pic.a ln -s libtkstub84.a ${PREFIX}/lib/libtkstub84_pic.a .endif .include