summaryrefslogtreecommitdiff
path: root/cad/mex-wcalc
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-01 13:52:17 +0000
committerrillig <rillig>2006-10-01 13:52:17 +0000
commite1d8dbb2159f255840eedf92ea067d569305b0f9 (patch)
tree744934dc70384674d748d7f6d2a957680110c50f /cad/mex-wcalc
parentf806d94826055cb2268c4a8a922630194df6994b (diff)
downloadpkgsrc-e1d8dbb2159f255840eedf92ea067d569305b0f9.tar.gz
Replaced mv/sed with SUBST_*. Reindented some Makefile directives.
Diffstat (limited to 'cad/mex-wcalc')
-rw-r--r--cad/mex-wcalc/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/cad/mex-wcalc/Makefile b/cad/mex-wcalc/Makefile
index 816d777f57f..dd28a48e347 100644
--- a/cad/mex-wcalc/Makefile
+++ b/cad/mex-wcalc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2006/07/10 22:59:26 jlam Exp $
+# $NetBSD: Makefile,v 1.7 2006/10/01 13:52:17 rillig Exp $
#
.include "../../cad/wcalc/Makefile.common"
@@ -18,12 +18,10 @@ CONFIGURE_ARGS+= --with-matlab
CONFIGURE_ARGS+= --without-octave
CONFIGURE_ARGS+= --without-scilab
-post-patch:
- ${MV} ${WRKSRC}/mex-wcalc/mexopts.sh.in \
- ${WRKSRC}/mex-wcalc/mexopts.sh.in.orig
- ${SED} 's;\.\./libwcalc;${BUILDLINK_DIR}/lib;g' \
- ${WRKSRC}/mex-wcalc/mexopts.sh.in.orig \
- > ${WRKSRC}/mex-wcalc/mexopts.sh.in
+SUBST_CLASSES+= mwc
+SUBST_STAGE.mwc= post-patch
+SUBST_FILES.mwc= mex-wcalc/mexopts.sh.in
+SUBST_SED.mwc= -e 's;\.\./libwcalc;${BUILDLINK_DIR}/lib;g'
# This depends on an installation of Matlab which pkgsrc does
# not have. We should find a sane way to deal with this. It is
@@ -50,15 +48,15 @@ DEF_MATLAB_ARCH= unknown
DEF_MATLAB_MEX= mex
DEF_MEX_SUFX= unknown
.if ${OPSYS} == "Linux"
-. if (${MACHINE_ARCH} == "i386")
+. if (${MACHINE_ARCH} == "i386")
DEF_MATLAB_ARCH= glnx86
DEF_MEX_SUFX= mexglx
-. endif
+. endif
.elif ${OPSYS} == "SunOS"
-. if (${MACHINE_ARCH} == "sparc")
+. if (${MACHINE_ARCH} == "sparc")
DEF_MATLAB_ARCH= sol2
DEF_MEX_SUFX= mexsol
-. endif
+. endif
.endif
MATLAB_ARCH?= ${DEF_MATLAB_ARCH}
MEX_SUFX?= ${DEF_MEX_SUFX}