2009-10-12 21:35:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2009/10/13 01:35:06 sthen Exp $
|
2007-10-22 15:09:55 -04:00
|
|
|
|
2009-10-12 08:33:59 -04:00
|
|
|
COMMENT = high-level widget set for Tcl/Tk
|
2007-10-22 15:09:55 -04:00
|
|
|
|
2009-10-12 08:33:59 -04:00
|
|
|
DISTNAME = BWidget-1.9.0
|
2009-10-12 21:35:06 -04:00
|
|
|
PKGNAME = ${DISTNAME:L}
|
2009-10-12 08:33:59 -04:00
|
|
|
CATEGORIES = x11
|
|
|
|
HOMEPAGE = http://sourceforge.net/projects/tcllib/
|
|
|
|
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
2007-10-22 15:09:55 -04:00
|
|
|
|
|
|
|
# BSD style
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2009-10-12 08:33:59 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tcllib/}
|
|
|
|
MODULES = x11/tk
|
|
|
|
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
|
2009-10-12 21:35:06 -04:00
|
|
|
REGRESS_FLAGS += TCLLIBPATH="${WRKSRC}"
|
|
|
|
REGRESS_IS_INTERACTIVE =x11
|
2009-10-12 08:33:59 -04:00
|
|
|
NO_BUILD = Yes
|
|
|
|
PKG_ARCH = *
|
2008-08-31 06:44:10 -04:00
|
|
|
|
2009-10-12 08:33:59 -04:00
|
|
|
BW_LIB_DIR = ${PREFIX}/lib/bwidget
|
|
|
|
BW_DOC_DIR = ${PREFIX}/share/doc/bwidget
|
|
|
|
BW_EXA_DIR = ${PREFIX}/share/examples/bwidget
|
2007-10-22 15:09:55 -04:00
|
|
|
|
2009-10-12 08:33:59 -04:00
|
|
|
do-configure:
|
|
|
|
@${MODTCL_WISH_ADJ} ${WRKSRC}/demo/demo.tcl
|
2007-10-22 15:09:55 -04:00
|
|
|
|
2009-10-12 21:35:06 -04:00
|
|
|
do-regress:
|
|
|
|
@env -i ${MAKE_ENV} ${ALL_REGRESS_FLAGS} \
|
|
|
|
${MODTCL_BIN} ${WRKSRC}/tests/entry.test
|
|
|
|
|
2007-10-22 15:09:55 -04:00
|
|
|
do-install:
|
2009-10-12 08:33:59 -04:00
|
|
|
.for SRC GLOB DEST in \
|
|
|
|
. *.tcl ${BW_LIB_DIR} \
|
|
|
|
lang *.rc ${BW_LIB_DIR}/lang \
|
|
|
|
images *.gif ${BW_LIB_DIR}/images \
|
|
|
|
images *.xbm ${BW_LIB_DIR}/images \
|
|
|
|
BWman *.htm* ${BW_DOC_DIR} \
|
|
|
|
. README.txt ${BW_DOC_DIR} \
|
|
|
|
. LICENSE.txt ${BW_DOC_DIR} \
|
|
|
|
demo *.tcl ${BW_EXA_DIR} \
|
|
|
|
demo *.xbm ${BW_EXA_DIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DEST}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${SRC}/${GLOB} ${DEST}
|
|
|
|
.endfor
|
|
|
|
chmod 555 ${BW_EXA_DIR}/demo.tcl
|
2007-10-22 15:09:55 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|