aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorstephen <stephen@FreeBSD.org>2014-01-13 00:35:23 +0800
committerstephen <stephen@FreeBSD.org>2014-01-13 00:35:23 +0800
commit34158f7171c303f33667a7564a66e96a286e638a (patch)
tree6f58fe520cc98f01a5b1f35e4542a5a46734e55e /Mk
parente78ad73406a13bbaa2ea27f37057a9e73897d77f (diff)
downloadfreebsd-ports-graphics-34158f7171c303f33667a7564a66e96a286e638a.tar.gz
freebsd-ports-graphics-34158f7171c303f33667a7564a66e96a286e638a.tar.zst
freebsd-ports-graphics-34158f7171c303f33667a7564a66e96a286e638a.zip
- Implement staging for octave-forge ports.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.octave.mk6
1 files changed, 2 insertions, 4 deletions
diff --git a/Mk/bsd.octave.mk b/Mk/bsd.octave.mk
index 55c0435ca3a..c128905aab9 100644
--- a/Mk/bsd.octave.mk
+++ b/Mk/bsd.octave.mk
@@ -26,7 +26,7 @@ USES+= gmake
DIST_SUBDIR= octave-forge
OCTAVE_PKGNAME= ${PORTNAME:S/octave-forge-//}
-TARBALLS_DIR= ${LOCALBASE}/share/octave/tarballs
+TARBALLS_DIR= ${STAGEDIR}${PREFIX}/share/octave/tarballs
MAKE_ENV+= PACKAGE=${WRKDIR}/${DISTNAME}.tar.gz
@@ -36,11 +36,9 @@ do-install:
${MKDIR} ${TARBALLS_DIR}
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.tar.gz ${TARBALLS_DIR}/.
${LN} -s -f ${DISTNAME}.tar.gz ${TARBALLS_DIR}/${OCTAVE_PKGNAME}.tar.gz
- ${LOAD_OCTAVE_PKG_CMD}
post-install:
+ @${ECHO_CMD} "@unexec if [ -x ${LOAD_OCTAVE_PKG_CMD} ]; then ${LOAD_OCTAVE_PKG_CMD}; fi" >> ${TMPPLIST}
@${ECHO_CMD} "share/octave/tarballs/${DISTNAME}.tar.gz" >> ${TMPPLIST}
@${ECHO_CMD} "share/octave/tarballs/${OCTAVE_PKGNAME}.tar.gz" >> ${TMPPLIST}
@${ECHO_CMD} "@exec if [ -x ${LOAD_OCTAVE_PKG_CMD} ]; then ${LOAD_OCTAVE_PKG_CMD}; fi" >> ${TMPPLIST}
- @${ECHO_CMD} "@unexec if [ -x ${LOAD_OCTAVE_PKG_CMD} ]; then ${LOAD_OCTAVE_PKG_CMD}; fi" >> ${TMPPLIST}
- @if [ -e ${.CURDIR}/pkg-message ]; then ${CAT} ${.CURDIR}/pkg-message; fi