1 # Created by: nivit@users.sourceforge.net
7 CATEGORIES= x11-toolkits
8 MASTER_SITES= http://www.cs.man.ac.uk/~fellowsd/tcl/ \
9 http://nivi.interfree.it/distfiles/${PORTNAME}/${PORTVERSION}/
10 DISTNAME= shape${PORTVERSION:S/.//g}
12 MAINTAINER= nivit@FreeBSD.org
13 COMMENT= Tk library to access to X Shaped Window Extension
19 PLIST_SUB= PORTNAME="${PORTNAME}"
23 OPTIONS_DEFINE= MANPAGES
24 OPTIONS_DEFAULT= MANPAGES
25 MANPAGES_DESC= Install manual pages
27 .include <bsd.port.options.mk>
29 .if ${PORT_OPTIONS:MMANPAGES}
32 PLIST_SUB+= MAN="@comment "
35 WRKSRC= ${WRKDIR}/${PORTNAME:C/^tk//1}${PORTVERSION}
38 CONFIGURE_ARGS= --with-tclconf=${TCL_LIBDIR} \
39 --with-tkconf=${TK_LIBDIR}
40 CONFIGURE_WRKSRC= ${WRKSRC}/unix
41 BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
43 WHERE_REPLACE= ${WRKSRC}/demos
44 REPLACE_FILES= ${WHERE_REPLACE}/dragger.tcl \
45 ${WHERE_REPLACE}/fancytext.tcl \
46 ${WHERE_REPLACE}/fingerprint.tcl
49 for FILE in ${REPLACE_FILES}; do \
50 ${REINPLACE_CMD} -e "/%%WISH%%/s//${WISH:S/\//\\\//g}/g" \
53 ${REINPLACE_CMD} -E 's,(^CFLAGS = )-g,\1${CFLAGS},' \
54 ${BUILD_WRKSRC}/Makefile.in
56 FIND_DIRS= -type d \! -empty
57 FIND_DEMOS= demos -type f -and -name "*.tcl" -maxdepth 1
58 FIND_IMAGES= demos/images -type f \
59 -and \( -name "*.gif" -or -name "*.xbm" \
62 TARGET_DIR= ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
63 MANPAGES= CombShape.3 QuryShape.3 shape.n
68 ${MKDIR} ${TARGET_DIR}/demos; \
69 FILES=$$(${FIND} ${FIND_DEMOS}); \
70 for FILE in $${FILES}; do \
71 ${INSTALL_SCRIPT} $${FILE} ${TARGET_DIR}/$${FILE}; \
73 ${INSTALL_SCRIPT} unix/libshape04.so.1.0 ${TARGET_DIR}/libshape04.so.1;
75 # images, pkgIndex.tcl
77 ${MKDIR} ${TARGET_DIR}/demos/images; \
78 FILES=$$(${FIND} ${FIND_IMAGES}); \
79 for FILE in $${FILES}; do \
80 ${INSTALL_DATA} $${FILE} ${TARGET_DIR}/$${FILE}; \
82 ${INSTALL_DATA} unix/pkgIndex.tcl ${TARGET_DIR}/pkgIndex.tcl;
85 .if ${PORT_OPTIONS:MMANPAGES}
87 for m in ${MANPAGES} ; do \
89 ${INSTALL_MAN} doc/$${m} ${STAGEDIR}${PREFIX}/man/man$${s}/$${m}; \
93 .include <bsd.port.mk>