aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-07-02 09:29:19 +0800
committervanilla <vanilla@FreeBSD.org>2014-07-02 09:29:19 +0800
commit1767d78d2f7d4b0ace331450d25ef82cf587d55f (patch)
tree65f496b063c1cdef2cfd2d188655f0876fd6e9bc /x11-toolkits
parent7c73f53449a3652124922b1285e7570962ed3992 (diff)
downloadfreebsd-ports-graphics-1767d78d2f7d4b0ace331450d25ef82cf587d55f.tar.gz
freebsd-ports-graphics-1767d78d2f7d4b0ace331450d25ef82cf587d55f.tar.zst
freebsd-ports-graphics-1767d78d2f7d4b0ace331450d25ef82cf587d55f.zip
1: Stagify.
2: use options helper to handle PORTSEXAMPLES Approved by: portmgr@ (blanket approval)
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/py-wax/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/x11-toolkits/py-wax/Makefile b/x11-toolkits/py-wax/Makefile
index 29f85867561..683fb7c0498 100644
--- a/x11-toolkits/py-wax/Makefile
+++ b/x11-toolkits/py-wax/Makefile
@@ -22,22 +22,18 @@ DATADIR= ${PYTHON_SITELIBDIR}
FIND_DIRS= -type d \! -empty
FIND_DATA= -type f
FIND_DELETE= \( -name "*.txt" -and -maxdepth 2 \)
+OPTIONS_DEFINE= EXAMPLES
-.if !defined(WITH_EXAMPLES)
-PLIST_SUB= PORTEXAMPLES="@comment "
-.else
-PLIST_SUB= PORTEXAMPLES=""
-.endif
+.include <bsd.port.options.mk>
-NO_STAGE= yes
do-install:
- @cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${DATADIR}/{} \;
+ @cd ${WRKSRC} && ${FIND} . ${FIND_DIRS} -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \;
@cd ${WRKSRC} && ${FIND} . ${FIND_DELETE} -delete
- @cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
-.if !defined(WITH_EXAMPLES)
- ${RM} -r ${DATADIR}/${PORTNAME}/examples
+ @cd ${WRKSRC} && ${FIND} . ${FIND_DATA} -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}/examples ${STAGEDIR}${EXAMPLESDIR}
.else
- ${MV} ${DATADIR}/${PORTNAME}/examples ${EXAMPLESDIR}
+ ${RM} -r ${STAGEDIR}${DATADIR}/${PORTNAME}/examples
.endif
.include <bsd.port.mk>