From df56e1f431553fe11f5a8e45d94d71e5bc584ad4 Mon Sep 17 00:00:00 2001 From: Stephen Montgomery-Smith 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-general/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'math/octave-forge-general') diff --git a/math/octave-forge-general/Makefile b/math/octave-forge-general/Makefile index 0cf65db6d40b..fcb7b447454b 100644 --- a/math/octave-forge-general/Makefile +++ b/math/octave-forge-general/Makefile @@ -13,12 +13,16 @@ 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 .include .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 v1.2.3