diff options
author | dmcmahill <dmcmahill> | 2004-11-24 00:54:10 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2004-11-24 00:54:10 +0000 |
commit | 403d538716bdd2ef600883a0253135d5a97c72b2 (patch) | |
tree | 0c05454897e43788e980503acd2ce2ab28dd65c0 /math | |
parent | 5d1932dfff21673e67c1ae4058353c482ff618df (diff) | |
download | pkgsrc-403d538716bdd2ef600883a0253135d5a97c72b2.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')
-rw-r--r-- | math/octave-current/Makefile | 14 |
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 |