openbsd-ports/x11/bwidget/Makefile
2011-11-04 10:30:47 +00:00

54 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2011/11/04 10:30:47 stu Exp $
COMMENT = high-level widget set for Tcl/Tk
DISTNAME = bwidget-1.9.5
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/tcl/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:
${SETENV} ${MAKE_ENV} ${ALL_REGRESS_FLAGS} \
${MODTCL_BIN} ${WRKSRC}/tests/entry.test
do-install:
.for DEST in ${BW_LIB_DIR}/lang ${BW_LIB_DIR}/images ${BW_DOC_DIR} ${BW_EXA_DIR}
${INSTALL_DATA_DIR} ${DEST}
.endfor
.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} ${WRKSRC}/${SRC}/${GLOB} ${DEST}
.endfor
chmod ${BINMODE} ${BW_EXA_DIR}/demo.tcl
.include <bsd.port.mk>