aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/tkshape
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-01-09 16:59:44 +0800
committergahr <gahr@FreeBSD.org>2014-01-09 16:59:44 +0800
commit4b4e801201d6e28860ebec9de5e251a86d0d29cc (patch)
tree4acd8c6f0f2f223bd2dc2eb70b4008324bd2ce69 /x11-toolkits/tkshape
parent61bd020061e7d190924ffdeb0578eacbacc40a16 (diff)
downloadfreebsd-ports-gnome-4b4e801201d6e28860ebec9de5e251a86d0d29cc.tar.gz
freebsd-ports-gnome-4b4e801201d6e28860ebec9de5e251a86d0d29cc.tar.zst
freebsd-ports-gnome-4b4e801201d6e28860ebec9de5e251a86d0d29cc.zip
- Convert to USES=tk
- Convert to USES=gmake - STAGE-clean MFH: 2014Q1
Diffstat (limited to 'x11-toolkits/tkshape')
-rw-r--r--x11-toolkits/tkshape/Makefile15
-rw-r--r--x11-toolkits/tkshape/pkg-plist3
2 files changed, 10 insertions, 8 deletions
diff --git a/x11-toolkits/tkshape/Makefile b/x11-toolkits/tkshape/Makefile
index b32223cb50d5..6284c3e30acb 100644
--- a/x11-toolkits/tkshape/Makefile
+++ b/x11-toolkits/tkshape/Makefile
@@ -12,7 +12,7 @@ DISTNAME= shape${PORTVERSION:S/.//g}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A Tk library to access to X Shaped Window Extension
-USE_TK= yes
+USES= gmake tk:85+
USE_XORG= x11 xext
@@ -24,17 +24,16 @@ OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT= MANPAGES
MANPAGES_DESC= Install manual pages
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMANPAGES}
-MAN3= CombShape.3 QuryShape.3
-MANN= shape.n
+PLIST_SUB+= MAN=""
+.else
+PLIST_SUB+= MAN="@comment "
.endif
WRKSRC= ${WRKDIR}/${PORTNAME:C/^tk//1}${PORTVERSION}
-USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tclconf=${TCL_LIBDIR} \
--with-tkconf=${TK_LIBDIR}
@@ -60,8 +59,8 @@ FIND_IMAGES= demos/images -type f \
-and \( -name "*.gif" -or -name "*.xbm" \
-or -name "*.cur" \)
-TARGET_DIR= ${PREFIX}/lib/${PORTNAME}
-MANPAGES= ${MAN3} ${MANN}
+TARGET_DIR= ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
+MANPAGES= CombShape.3 QuryShape.3 shape.n
do-install:
# script, library
@@ -87,7 +86,7 @@ do-install:
cd ${WRKSRC}; \
for m in ${MANPAGES} ; do \
s=$${m##*.}; \
- ${INSTALL_MAN} doc/$${m} ${MANPREFIX}/man/man$${s}/$${m}; \
+ ${INSTALL_MAN} doc/$${m} ${STAGEDIR}${PREFIX}/man/man$${s}/$${m}; \
done;
.endif
diff --git a/x11-toolkits/tkshape/pkg-plist b/x11-toolkits/tkshape/pkg-plist
index 51de76df6f54..02c1b43a4435 100644
--- a/x11-toolkits/tkshape/pkg-plist
+++ b/x11-toolkits/tkshape/pkg-plist
@@ -10,6 +10,9 @@ lib/%%PORTNAME%%/demos/images/none.cur
lib/%%PORTNAME%%/demos/images/ptr-green.gif
lib/%%PORTNAME%%/demos/images/ptr-mask.xbm
lib/%%PORTNAME%%/demos/images/ptr-red.gif
+%%MAN%%man/man3/CombShape.3.gz
+%%MAN%%man/man3/QuryShape.3.gz
+%%MAN%%man/mann/shape.n.gz
@dirrm lib/%%PORTNAME%%/demos/images
@dirrm lib/%%PORTNAME%%/demos
@dirrm lib/%%PORTNAME%%