summaryrefslogtreecommitdiff
path: root/math/octave-current
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2004-11-24 00:54:10 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2004-11-24 00:54:10 +0000
commitaf30f792873ea47f0b3d2d073beb6271c9c7a623 (patch)
tree0c05454897e43788e980503acd2ce2ab28dd65c0 /math/octave-current
parent71e3f217048aece09a0adbb43bef1c322e88013b (diff)
downloadpkgsrc-af30f792873ea47f0b3d2d073beb6271c9c7a623.tar.gz
substitute in the complete path to the C and C++ compilers to the mkoctfile
script. This is needed if you want to use mkoctfile once the package is installed. For example, on NetBSD-1.6* systems, it is important to point to the gcc3 package tools instead of the base system compilers.
Diffstat (limited to 'math/octave-current')
-rw-r--r--math/octave-current/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/math/octave-current/Makefile b/math/octave-current/Makefile
index a16bde03be4..1bb0abf111a 100644
--- a/math/octave-current/Makefile
+++ b/math/octave-current/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2004/10/03 00:12:57 tv Exp $
+# $NetBSD: Makefile,v 1.36 2004/11/24 00:54:10 dmcmahill Exp $
#
DISTNAME= octave-${OCTAVE_VER}
@@ -57,6 +57,18 @@ post-extract:
${FIND} ${WRKSRC}/doc -type f -name '*.info*' -exec ${RM} -f {} \;
${MKDIR} ${WRKSRC}/src/pic
+# substitute in the real path to various bits of the toolchain because
+# mkoctfile will be used potentially by users and it needs to point
+# at the same compilers as were used in building octave
+post-build:
+ ${MV} ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak
+ ${SED} \
+ -e 's;"${CC}";"${CCPATH}";g' \
+ -e 's;"${CXX}";"${CXXPATH}";g' \
+ -e 's;"${FC}";"${FCPATH}";g' \
+ ${WRKSRC}/mkoctfile.bak > ${WRKSRC}/mkoctfile
+ ${CHMOD} a+x ${WRKSRC}/mkoctfile
+
post-install:
.for f in ${LIBOCTAVE_INFO}
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/$f ${PREFIX}/info