diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2005-03-13 02:52:10 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2005-03-13 02:52:10 +0000 |
commit | c5f15e9f3b7ef50748b6b559ed009c1c1f6df21b (patch) | |
tree | 484e9e687a23498439bdb9b9bae202cd9eb9d8cd /math/octave-current | |
parent | deef7094acbaed3094573d5554e38b6fcb4c1938 (diff) | |
download | pkgsrc-c5f15e9f3b7ef50748b6b559ed009c1c1f6df21b.tar.gz |
make sure that we don't end up with the buildlink directory as part
of the full path to sed in the installed mkoctfile otherwise we
end up with a broken mkoctfile.
Diffstat (limited to 'math/octave-current')
-rw-r--r-- | math/octave-current/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/math/octave-current/Makefile b/math/octave-current/Makefile index 6d19af37107..788071303cb 100644 --- a/math/octave-current/Makefile +++ b/math/octave-current/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.42 2005/02/24 03:20:57 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.43 2005/03/13 02:52:10 dmcmahill Exp $ DISTNAME= octave-${OCTAVE_VER} PKGNAME= octave-current-${OCTAVE_VER} +PKGREVISION= 1 CATEGORIES= math MASTER_SITES= ftp://ftp.che.wisc.edu/pub/octave/ \ ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/ \ @@ -57,13 +58,16 @@ post-extract: # 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 +# at the same compilers as were used in building octave. We also +# fix up the path to sed otherwise we end up with the buildlink directory +# in mkoctfile post-build: ${MV} ${WRKSRC}/mkoctfile ${WRKSRC}/mkoctfile.bak ${SED} \ -e 's;"${CC}";"${CCPATH}";g' \ -e 's;"${CXX}";"${CXXPATH}";g' \ -e 's;"${FC}";"${FCPATH}";g' \ + -e 's@^:[ \t]*\$${SED=.*@: \$$\{SED="${SED}"\}@g' \ ${WRKSRC}/mkoctfile.bak > ${WRKSRC}/mkoctfile ${CHMOD} a+x ${WRKSRC}/mkoctfile |