diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-07-02 01:29:19 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-07-02 01:29:19 +0000 |
commit | 2da3686e2f572d6a2566866913a70fc45b23357b (patch) | |
tree | 65f496b063c1cdef2cfd2d188655f0876fd6e9bc /x11-toolkits | |
parent | Explicitly set MANCOMPRESSED to no. The new way of dealing with (diff) |
1: Stagify.
2: use options helper to handle PORTSEXAMPLES
Approved by: portmgr@ (blanket approval)
Notes
Notes:
svn path=/head/; revision=360123
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/py-wax/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/x11-toolkits/py-wax/Makefile b/x11-toolkits/py-wax/Makefile index 29f85867561d..683fb7c0498a 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> |