2011-01-05 14:15:09 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2011/01/05 19:15:09 sebastia Exp $
|
2006-10-27 03:19:34 -04:00
|
|
|
|
2007-09-15 16:04:18 -04:00
|
|
|
COMMENT= build mega-widgets using the Itcl object system
|
2006-10-27 03:19:34 -04:00
|
|
|
|
|
|
|
VERSION= 3.3
|
|
|
|
DISTNAME= itk${VERSION}
|
2010-07-30 02:58:57 -04:00
|
|
|
PKGNAME= itk-${VERSION}
|
2011-01-05 14:15:09 -05:00
|
|
|
REVISION= 3
|
2006-10-27 03:19:34 -04:00
|
|
|
SHARED_LIBS= itk33 0.0
|
|
|
|
|
2009-03-13 08:59:47 -04:00
|
|
|
CATEGORIES= x11 devel
|
2006-10-27 03:19:34 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://incrtcl.sourceforge.net/itk/
|
|
|
|
|
|
|
|
# BSD style
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2011-01-05 14:15:09 -05:00
|
|
|
MODULES = x11/tk
|
|
|
|
WANTLIB += X11 ${MODTK_WANTLIB} itcl34
|
2006-10-27 03:19:34 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=incrtcl/}
|
|
|
|
|
2009-03-13 08:59:47 -04:00
|
|
|
LIB_DEPENDS= ${MODTK_LIB_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/itcl
|
2009-03-13 08:59:47 -04:00
|
|
|
RUN_DEPENDS= ${MODTK_RUN_DEPENDS} \
|
2010-11-22 03:36:47 -05:00
|
|
|
devel/itcl
|
2006-10-27 03:19:34 -04:00
|
|
|
|
2006-10-28 13:52:18 -04:00
|
|
|
SUBST_VARS= VERSION
|
|
|
|
|
2006-10-27 03:19:34 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2009-03-13 08:59:47 -04:00
|
|
|
--with-tcl=${MODTCL_LIBDIR} \
|
|
|
|
--with-tk=${MODTK_LIBDIR} \
|
2011-01-05 14:15:09 -05:00
|
|
|
--with-itcl=${MODTCL_TCLDIR}/itcl \
|
|
|
|
--libdir=${MODTCL_TCLDIR}/itcl \
|
|
|
|
--includedir=${LOCALBASE}/include/itk
|
2006-10-28 13:52:18 -04:00
|
|
|
|
2009-03-13 08:59:47 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${MODTCL_INCDIR}/generic \
|
|
|
|
-I${MODTCL_INCDIR}/unix \
|
|
|
|
-I${MODTK_INCDIR}/generic \
|
|
|
|
-I${MODTK_INCDIR}/unix \
|
2011-01-05 14:15:09 -05:00
|
|
|
-I${MODTK_INCDIR} \
|
|
|
|
-I${MODTCL_INCDIR} \
|
|
|
|
-I${LOCALBASE}/include/itcl" \
|
2006-10-27 03:19:34 -04:00
|
|
|
LIBitk33_VERSION=${LIBitk33_VERSION}
|
2011-01-05 14:15:09 -05:00
|
|
|
FAKE_FLAGS = libdir=${MODTCL_TCLDIR}/itk
|
2006-10-27 03:19:34 -04:00
|
|
|
|
|
|
|
# This regression test wants an X11 display
|
|
|
|
REGRESS_IS_INTERACTIVE=Yes
|
|
|
|
|
|
|
|
do-regress:
|
2006-10-28 13:52:18 -04:00
|
|
|
@cd ${WRKSRC} && env ITK_LIBRARY=${WRKSRC}/library \
|
2009-03-13 08:59:47 -04:00
|
|
|
${MODTK_BIN} tests/all.tcl -load \
|
2006-10-27 03:19:34 -04:00
|
|
|
"load ./libitk33.so.${LIBitk33_VERSION}; package require Tk"
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|