2758756c1c
make it into the package -> no bump.
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.6 2009/10/13 01:35:06 sthen Exp $
|
|
|
|
COMMENT = high-level widget set for Tcl/Tk
|
|
|
|
DISTNAME = BWidget-1.9.0
|
|
PKGNAME = ${DISTNAME:L}
|
|
CATEGORIES = x11
|
|
HOMEPAGE = http://sourceforge.net/projects/tcllib/
|
|
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
|
|
|
# BSD style
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tcllib/}
|
|
MODULES = x11/tk
|
|
RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
|
|
REGRESS_FLAGS += TCLLIBPATH="${WRKSRC}"
|
|
REGRESS_IS_INTERACTIVE =x11
|
|
NO_BUILD = Yes
|
|
PKG_ARCH = *
|
|
|
|
BW_LIB_DIR = ${PREFIX}/lib/bwidget
|
|
BW_DOC_DIR = ${PREFIX}/share/doc/bwidget
|
|
BW_EXA_DIR = ${PREFIX}/share/examples/bwidget
|
|
|
|
do-configure:
|
|
@${MODTCL_WISH_ADJ} ${WRKSRC}/demo/demo.tcl
|
|
|
|
do-regress:
|
|
@env -i ${MAKE_ENV} ${ALL_REGRESS_FLAGS} \
|
|
${MODTCL_BIN} ${WRKSRC}/tests/entry.test
|
|
|
|
do-install:
|
|
.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
|
|
|
|
.include <bsd.port.mk>
|