diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2014-05-10 08:23:49 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2014-05-10 08:23:49 +0800 |
commit | 203de638cf1c5c022b647d1a99d9261cad095b2b (patch) | |
tree | c954f85339bbf3424322cde7bfe7e252d952b564 /lang | |
parent | d3c6f56765632bb1d42da233616b8de695248dfc (diff) | |
download | freebsd-ports-gnome-203de638cf1c5c022b647d1a99d9261cad095b2b.tar.gz freebsd-ports-gnome-203de638cf1c5c022b647d1a99d9261cad095b2b.tar.zst freebsd-ports-gnome-203de638cf1c5c022b647d1a99d9261cad095b2b.zip |
- Support staging
- Optionize
Diffstat (limited to 'lang')
-rw-r--r-- | lang/sisc/Makefile | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lang/sisc/Makefile b/lang/sisc/Makefile index 64f3ab3cf93d..f9038315a431 100644 --- a/lang/sisc/Makefile +++ b/lang/sisc/Makefile @@ -16,7 +16,8 @@ JAVA_VERSION= 1.6+ NO_BUILD= yes PORTDOCS= COPYING README -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e 's|\(SISC_HOME=\).*$$|\1${DATADIR}|' \ -e 's|\(JAVA=\)java|\1"${LOCALBASE}/bin/java" ; export JAVA_VERSION="${JAVA_VERSION}"|' \ @@ -25,18 +26,15 @@ post-patch: ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/sisc ${PREFIX}/bin - ${MKDIR} ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/*.jar ${WRKSRC}/*.shp ${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/scheme-src/*.scm ${DATADIR} - ${INSTALL_SCRIPT} ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/sisc ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/*.jar ${WRKSRC}/*.shp ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/scheme-src/*.scm ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/scheme-src/srfi-22/srfi-22.sh ${STAGEDIR}${PREFIX}/bin .for i in r4rs r5rs srfi-0 srfi-7 ieee-1178-1900 - ${LN} -sf ${PREFIX}/bin/srfi-22.sh ${PREFIX}/bin/scheme-${i} + ${LN} -sf ${PREFIX}/bin/srfi-22.sh ${STAGEDIR}${PREFIX}/bin/scheme-${i} .endfor - -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - cd ${WRKSRC}; ${INSTALL_DATA} COPYING README ${DOCSDIR} -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |