aboutsummaryrefslogtreecommitdiff
path: root/math/octave-forge-symbolic/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave-forge-symbolic/Makefile')
-rw-r--r--math/octave-forge-symbolic/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/math/octave-forge-symbolic/Makefile b/math/octave-forge-symbolic/Makefile
index b166409cc1d5..64cedc147bf6 100644
--- a/math/octave-forge-symbolic/Makefile
+++ b/math/octave-forge-symbolic/Makefile
@@ -13,14 +13,18 @@ CATEGORIES= math
MAINTAINER= stephen@FreeBSD.org
COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
+# OCTSRC is the name of the directory of the package.
+# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
+OCTSRC= ${OCTAVE_PKGNAME}
+
LIB_DEPENDS+= ginac:${PORTSDIR}/math/GiNaC
-WRKSRC= ${WRKDIR}/${OCTAVE_PKGNAME}/src
+WRKSRC= ${WRKDIR}/${OCTSRC}/src
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/Mk/bsd.octave.mk"
post-build:
${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/configure
- cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTAVE_PKGNAME}
+ cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
.include <bsd.port.post.mk>