From 15f510895764d0ca91b3b5e0ff00062062228a82 Mon Sep 17 00:00:00 2001 From: stephen Date: Mon, 21 Nov 2011 01:17:40 +0000 Subject: - Cosmetic change to Makefile. Use the variable OCTSRC to describe where the contents of the package are stored. This should make it easier if other people take over maintainership of the octave-forge-* ports. Feature safe: yes --- math/octave-forge-octcdf/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'math/octave-forge-octcdf') diff --git a/math/octave-forge-octcdf/Makefile b/math/octave-forge-octcdf/Makefile index c314d6e6a961..84da2fb638e1 100644 --- a/math/octave-forge-octcdf/Makefile +++ b/math/octave-forge-octcdf/Makefile @@ -13,7 +13,11 @@ CATEGORIES= math MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} -WRKSRC= ${WRKDIR}/${OCTAVE_PKGNAME}/src +# OCTSRC is the name of the directory of the package. +# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}. +OCTSRC= ${OCTAVE_PKGNAME} + +WRKSRC= ${WRKDIR}/${OCTSRC}/src LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf @@ -21,6 +25,6 @@ LIB_DEPENDS+= netcdf:${PORTSDIR}/science/netcdf .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 -- cgit