2008-09-07 20:23:03 -04:00
|
|
|
#-*- mode: makefile; tab-width: 4; -*-
|
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# bsd.octave.mk - Octave related macro
|
|
|
|
# Common code to install octave-forge packages.
|
|
|
|
# It is, in effect, a wrapper using the package handling already built
|
|
|
|
# into math/octave.
|
|
|
|
|
|
|
|
|
2010-06-02 12:23:51 -04:00
|
|
|
MASTER_SITES= SF/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases \
|
|
|
|
SF/octave/Octave%20Forge%20Packages/R2009-06-07 \
|
2009-11-13 19:56:23 -05:00
|
|
|
SF/octave/Octave%20Forge%20Packages/R2009-05-08
|
2008-09-07 20:23:03 -04:00
|
|
|
DISTNAME= ${OCTAVE_PKGNAME}-${PORTVERSION}
|
|
|
|
|
2011-06-28 00:51:50 -04:00
|
|
|
bsd_octave_mk_MAINTAINER= stephen@FreeBSD.org
|
2008-09-07 20:23:03 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS+= octave:${PORTSDIR}/math/octave
|
2011-03-17 13:14:09 -04:00
|
|
|
RUN_DEPENDS+= octave:${PORTSDIR}/math/octave \
|
2011-06-30 16:52:08 -04:00
|
|
|
${LOCALBASE}/libexec/octave/load-octave-pkg:${PORTSDIR}/math/octave-forge-base
|
2008-09-07 20:23:03 -04:00
|
|
|
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
|
|
|
|
|
2011-06-30 16:52:08 -04:00
|
|
|
USE_FORTRAN= yes
|
2008-09-07 20:23:03 -04:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
DIST_SUBDIR= octave-forge
|
|
|
|
OCTAVE_PKGNAME= ${PORTNAME:S/octave-forge-//}
|
|
|
|
TARBALLS_DIR= ${LOCALBASE}/share/octave/tarballs
|
|
|
|
|
|
|
|
MAKE_ENV+= PACKAGE=${WRKDIR}/${DISTNAME}.tar.gz
|
|
|
|
|
2011-06-30 16:52:08 -04:00
|
|
|
LOAD_OCTAVE_PKG_CMD= ${LOCALBASE}/libexec/octave/load-octave-pkg
|
|
|
|
|
2008-09-07 20:23:03 -04:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${TARBALLS_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.tar.gz ${TARBALLS_DIR}/.
|
2012-01-31 09:50:12 -05:00
|
|
|
${LN} -s -f ${DISTNAME}.tar.gz ${TARBALLS_DIR}/${OCTAVE_PKGNAME}.tar.gz
|
2011-06-30 16:52:08 -04:00
|
|
|
${LOAD_OCTAVE_PKG_CMD}
|
2008-09-07 20:23:03 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD} "share/octave/tarballs/${DISTNAME}.tar.gz" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "share/octave/tarballs/${OCTAVE_PKGNAME}.tar.gz" >> ${TMPPLIST}
|
2011-06-30 16:52:08 -04:00
|
|
|
@${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}
|
2008-09-07 20:23:03 -04:00
|
|
|
@if [ -e ${.CURDIR}/pkg-message ]; then ${CAT} ${.CURDIR}/pkg-message; fi
|