58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.12 2013/03/11 11:46:13 espie Exp $
|
|
|
|
COMMENT= build mega-widgets using the Itcl object system
|
|
|
|
VERSION= 3.3
|
|
DISTNAME= itk${VERSION}
|
|
PKGNAME= itk-${VERSION}
|
|
REVISION= 3
|
|
SHARED_LIBS= itk33 0.0
|
|
|
|
CATEGORIES= x11 devel
|
|
|
|
HOMEPAGE= http://incrtcl.sourceforge.net/itk/
|
|
|
|
# BSD style
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MODULES = x11/tk
|
|
WANTLIB += X11 ${MODTK_WANTLIB} itcl34
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=incrtcl/}
|
|
|
|
LIB_DEPENDS= ${MODTK_LIB_DEPENDS} \
|
|
devel/itcl
|
|
RUN_DEPENDS= ${MODTK_RUN_DEPENDS} \
|
|
devel/itcl
|
|
|
|
SUBST_VARS= VERSION
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
--with-tcl=${MODTCL_LIBDIR} \
|
|
--with-tk=${MODTK_LIBDIR} \
|
|
--with-itcl=${MODTCL_TCLDIR}/itcl \
|
|
--libdir=${MODTCL_TCLDIR}/itcl \
|
|
--includedir=${LOCALBASE}/include/itk
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${MODTCL_INCDIR}/generic \
|
|
-I${MODTCL_INCDIR}/unix \
|
|
-I${MODTK_INCDIR}/generic \
|
|
-I${MODTK_INCDIR}/unix \
|
|
-I${MODTK_INCDIR} \
|
|
-I${MODTCL_INCDIR} \
|
|
-I${LOCALBASE}/include/itcl" \
|
|
LIBitk33_VERSION=${LIBitk33_VERSION}
|
|
FAKE_FLAGS = libdir=${MODTCL_TCLDIR}/itk
|
|
|
|
# This regression test wants an X11 display
|
|
TEST_IS_INTERACTIVE=Yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && env ITK_LIBRARY=${WRKSRC}/library \
|
|
${MODTK_BIN} tests/all.tcl -load \
|
|
"load ./libitk33.so.${LIBitk33_VERSION}; package require Tk"
|
|
|
|
.include <bsd.port.mk>
|