diff options
author | stephen <stephen@FreeBSD.org> | 2011-07-01 04:52:08 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2011-07-01 04:52:08 +0800 |
commit | ff61be1523ad90380a4bd3bca83c2bacea0dbd33 (patch) | |
tree | 816f48907debe72e94701e86172ec126eb856fe8 /Mk | |
parent | cc126b9a210f41b261ab5ef3cd3252fd20962cb4 (diff) | |
download | freebsd-ports-graphics-ff61be1523ad90380a4bd3bca83c2bacea0dbd33.tar.gz freebsd-ports-graphics-ff61be1523ad90380a4bd3bca83c2bacea0dbd33.tar.zst freebsd-ports-graphics-ff61be1523ad90380a4bd3bca83c2bacea0dbd33.zip |
- Update math/octave-forge-base to 1.1. Now includes the script
load-octave-pkg to link the octave packaging system to the FreeBSD ports.
- Update Mk/bsd.octave.mk so that octave-forge-* ports use this script.
Approved by: gabor (mentor)
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.octave.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Mk/bsd.octave.mk b/Mk/bsd.octave.mk index 92a2243dd63..f97e02aae77 100644 --- a/Mk/bsd.octave.mk +++ b/Mk/bsd.octave.mk @@ -18,11 +18,10 @@ bsd_octave_mk_MAINTAINER= stephen@FreeBSD.org BUILD_DEPENDS+= octave:${PORTSDIR}/math/octave RUN_DEPENDS+= octave:${PORTSDIR}/math/octave \ - gmake:${PORTSDIR}/devel/gmake -RUN_DEPENDS+= ${LOCALBASE}/share/octave/tarballs:${PORTSDIR}/math/octave-forge-base + ${LOCALBASE}/libexec/octave/load-octave-pkg:${PORTSDIR}/math/octave-forge-base LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre -USE_FORTRAN= yes +USE_FORTRAN= yes USE_GMAKE= yes DIST_SUBDIR= octave-forge @@ -31,16 +30,17 @@ TARBALLS_DIR= ${LOCALBASE}/share/octave/tarballs MAKE_ENV+= PACKAGE=${WRKDIR}/${DISTNAME}.tar.gz +LOAD_OCTAVE_PKG_CMD= ${LOCALBASE}/libexec/octave/load-octave-pkg + do-install: ${MKDIR} ${TARBALLS_DIR} ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.tar.gz ${TARBALLS_DIR}/. - ${RM} -f ${TARBALLS_DIR}/${OCTAVE_PKGNAME}.tar.gz - PATH=${PREFIX}/bin:/usr/bin:/bin octave -H -q --no-site-file --eval "pkg('install','${TARBALLS_DIR}/${DISTNAME}.tar.gz')" ${LN} -s ${DISTNAME}.tar.gz ${TARBALLS_DIR}/${OCTAVE_PKGNAME}.tar.gz + ${LOAD_OCTAVE_PKG_CMD} post-install: @${ECHO_CMD} "share/octave/tarballs/${DISTNAME}.tar.gz" >> ${TMPPLIST} - @${ECHO_CMD} "@exec octave -H -q --no-site-file --eval \"pkg('install','${LOCALBASE}/share/octave/tarballs/${DISTNAME}.tar.gz')\" > /dev/null" >> ${TMPPLIST} @${ECHO_CMD} "share/octave/tarballs/${OCTAVE_PKGNAME}.tar.gz" >> ${TMPPLIST} - @${ECHO_CMD} "@unexec octave -H -q --no-site-file --eval \"pkg('uninstall','${OCTAVE_PKGNAME}')\" > /dev/null" >> ${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 |