diff options
author | asau <asau@pkgsrc.org> | 2012-10-27 13:01:35 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2012-10-27 13:01:35 +0000 |
commit | d520e0f60361d5ab7182cff5ea80c21463014849 (patch) | |
tree | 32a5ce2c19e6007caf9e1163b87775801838d3a7 /math | |
parent | a8e4ffec9500a56a44c86ba1816e38cb18601365 (diff) | |
download | pkgsrc-d520e0f60361d5ab7182cff5ea80c21463014849.tar.gz |
Let users install packages from OctaveForge:
provide path to GNU make which is assumed there.
Diffstat (limited to 'math')
-rw-r--r-- | math/octave/Makefile | 12 | ||||
-rw-r--r-- | math/octave/distinfo | 3 | ||||
-rw-r--r-- | math/octave/patches/patch-scripts_pkg_pkg.m | 16 |
3 files changed, 27 insertions, 4 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile index ac2abcf3640..ea5c7404e0d 100644 --- a/math/octave/Makefile +++ b/math/octave/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.104 2012/10/03 21:56:36 wiz Exp $ +# $NetBSD: Makefile,v 1.105 2012/10/27 13:01:35 asau Exp $ DISTNAME= octave-${OCTAVE_VER} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= math MASTER_SITES= $(MASTER_SITE_GNU:=octave/) \ ftp://ftp.octave.org/pub/octave/ \ @@ -24,7 +24,7 @@ BROKEN= Internal compiler error occurs on arm32 (even with gcc-2.95.3) USE_GNU_READLINE= yes USE_LIBTOOL= yes -USE_TOOLS+= autoconf gsed gmake makeinfo perl pkg-config bison +USE_TOOLS+= autoconf gsed gmake:run makeinfo perl pkg-config bison GNU_CONFIGURE= yes GCC_REQD+= 3.0 @@ -71,6 +71,12 @@ SUBST_MESSAGE.unwrapping= Unwrapping wrapper scripts. SUBST_FILES.unwrapping= src/mkoctfile SUBST_SED.unwrapping= -e 's:$(DESTDIR)::g' -e 's:$(BUILDLINK_DIR)/lib:$(PREFIX)/lib:g' +SUBST_CLASSES+= fix-make +SUBST_STAGE.fix-make= post-patch +SUBST_MESSAGE.fix-make= Fixing path to gmake. +SUBST_FILES.fix-make= scripts/pkg/pkg.m +SUBST_SED.fix-make= -e 's:@GMAKE@:$(GMAKE):g' + post-extract: find ${WRKSRC}/doc -type f -name '*.info*' -print | xargs rm -f mkdir ${WRKSRC}/src/pic diff --git a/math/octave/distinfo b/math/octave/distinfo index 50a1dc643ea..797e1f4ac11 100644 --- a/math/octave/distinfo +++ b/math/octave/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.34 2012/09/13 23:39:14 asau Exp $ +$NetBSD: distinfo,v 1.35 2012/10/27 13:01:35 asau Exp $ SHA1 (octave-3.6.3.tar.bz2) = e8bd0c0b33ab9714ddb524f2258546c3536f0628 RMD160 (octave-3.6.3.tar.bz2) = 1b0f75da1efc77cef0698a7affe56a477430cc1f @@ -7,4 +7,5 @@ SHA1 (patch-fflush-fpos_t.c) = 24ed7f95f8431b59bc5ee0dfb0e6624b8029f512 SHA1 (patch-fseeko-fpos_t.c) = ca846a014f9adfd47f7bbcf6557bf26a53f4a8e9 SHA1 (patch-libgnu_string.in.h) = 4af39b76faa3ac90454a9d664919b7a6cd45fa9d SHA1 (patch-liboctave_oct-time.cc) = 40c21f509b6c95942e6ba43c52494d1d707ed515 +SHA1 (patch-scripts_pkg_pkg.m) = e6fa838e3910d52164d7cb3ca084c748cd68abb9 SHA1 (patch-src_oct-conf.h.in) = d3fa5166db289fbd9eba355911341e891fb6d822 diff --git a/math/octave/patches/patch-scripts_pkg_pkg.m b/math/octave/patches/patch-scripts_pkg_pkg.m new file mode 100644 index 00000000000..3b949808ab1 --- /dev/null +++ b/math/octave/patches/patch-scripts_pkg_pkg.m @@ -0,0 +1,16 @@ +$NetBSD: patch-scripts_pkg_pkg.m,v 1.1 2012/10/27 13:01:35 asau Exp $ + +Provide path to GNU make, since this is what assumed here. + +--- scripts/pkg/pkg.m.orig 2012-03-09 21:20:48.000000000 +0000 ++++ scripts/pkg/pkg.m +@@ -1379,7 +1379,8 @@ function configure_make (desc, packdir, + + ## Make. + if (exist (fullfile (src, "Makefile"), "file")) +- [status, output] = shell (cstrcat (scenv, "make -C '", src, "'")); ++ make = "@GMAKE@" ++ [status, output] = shell (cstrcat (scenv, make, " -C '", src, "'")); + if (status != 0) + rm_rf (desc.dir); + error ("'make' returned the following error: %s", output); |