2012-05-23 10:17:49 +02:00
|
|
|
#-*- tab-width: 4; -*-
|
2008-09-08 02:23:03 +02:00
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# 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 18:23:51 +02:00
|
|
|
MASTER_SITES= SF/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases \
|
2020-08-11 02:34:06 +02:00
|
|
|
SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-06-07 \
|
|
|
|
SF/octave/Octave%20Forge%20Packages/Old%20Monolithic%20Releases/R2009-05-08
|
2019-12-02 00:56:24 +01:00
|
|
|
DISTNAME= ${OCTAVE_PKGNAME}-${DISTVERSIONFULL}
|
2008-09-08 02:23:03 +02:00
|
|
|
|
2011-06-28 06:51:50 +02:00
|
|
|
bsd_octave_mk_MAINTAINER= stephen@FreeBSD.org
|
2008-09-08 02:23:03 +02:00
|
|
|
|
2016-03-27 03:23:25 +02:00
|
|
|
BUILD_DEPENDS+= octave:math/octave
|
|
|
|
RUN_DEPENDS+= octave:math/octave \
|
|
|
|
${LOCALBASE}/libexec/octave/load-octave-pkg:math/octave-forge-base
|
|
|
|
LIB_DEPENDS+= libpcre.so:devel/pcre
|
2008-09-08 02:23:03 +02:00
|
|
|
|
2018-02-25 23:23:45 +01:00
|
|
|
USES+= fortran gmake compiler:c++14-lang
|
2018-02-24 22:55:43 +01:00
|
|
|
CXXFLAGS+= -std=gnu++11
|
2008-09-08 02:23:03 +02:00
|
|
|
|
|
|
|
DIST_SUBDIR= octave-forge
|
|
|
|
OCTAVE_PKGNAME= ${PORTNAME:S/octave-forge-//}
|
2014-01-12 23:39:23 +01:00
|
|
|
TARBALLS_DIR= ${LOCALBASE}/share/octave/tarballs
|
|
|
|
INSTALL_TARBALLS_DIR= ${STAGEDIR}${PREFIX}/share/octave/tarballs
|
2008-09-08 02:23:03 +02:00
|
|
|
|
2019-12-20 05:30:01 +01:00
|
|
|
.include "${.CURDIR}/../../math/octave/Makefile.version"
|
|
|
|
|
2008-09-08 02:23:03 +02:00
|
|
|
MAKE_ENV+= PACKAGE=${WRKDIR}/${DISTNAME}.tar.gz
|
2019-12-20 05:30:01 +01:00
|
|
|
MAKE_ARGS= CC="${CC}" CXX="${CXX}" LD_CXX="${CXX}" DL_LD="${CXX}" MKOCTFILE="${LOCALBASE}/bin/mkoctfile" OCTAVE_VERSION=-${OCTAVE_VERSION}
|
2008-09-08 02:23:03 +02:00
|
|
|
|
2011-06-30 22:52:08 +02:00
|
|
|
LOAD_OCTAVE_PKG_CMD= ${LOCALBASE}/libexec/octave/load-octave-pkg
|
|
|
|
|
2008-09-08 02:23:03 +02:00
|
|
|
do-install:
|
2014-01-12 23:39:23 +01:00
|
|
|
${MKDIR} ${INSTALL_TARBALLS_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}.tar.gz ${INSTALL_TARBALLS_DIR}/.
|
|
|
|
${LN} -s -f ${DISTNAME}.tar.gz ${INSTALL_TARBALLS_DIR}/${OCTAVE_PKGNAME}.tar.gz
|
2008-09-08 02:23:03 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_CMD} "share/octave/tarballs/${DISTNAME}.tar.gz" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "share/octave/tarballs/${OCTAVE_PKGNAME}.tar.gz" >> ${TMPPLIST}
|
2015-09-26 10:39:49 +02:00
|
|
|
@${ECHO_CMD} "@postunexec if [ -x ${LOAD_OCTAVE_PKG_CMD} ]; then ${LOAD_OCTAVE_PKG_CMD}; fi" >> ${TMPPLIST}
|
|
|
|
@${ECHO_CMD} "@postexec if [ -x ${LOAD_OCTAVE_PKG_CMD} ]; then ${LOAD_OCTAVE_PKG_CMD}; fi" >> ${TMPPLIST}
|