pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/octave-forge - don't hard code /bin/sh (use the c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1d3204ea9b0
branches:  trunk
changeset: 490511:d1d3204ea9b0
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Mon Mar 14 04:08:42 2005 +0000

description:
- don't hard code /bin/sh (use the configured shell).  Needed to
  get a working shell on solaris.
- fix a header file
- avoid passing invalid parameters to mkoctfile.

octave-forge now works on solaris too.

diffstat:

 math/octave-forge/Makefile         |   3 ++-
 math/octave-forge/distinfo         |   7 ++++++-
 math/octave-forge/patches/patch-ac |  13 +++++++++++++
 math/octave-forge/patches/patch-ae |  13 +++++++++++++
 math/octave-forge/patches/patch-ah |  13 +++++++++++++
 math/octave-forge/patches/patch-ai |  13 +++++++++++++
 math/octave-forge/patches/patch-al |  37 +++++++++++++++++++++++++++++++++++++
 7 files changed, 97 insertions(+), 2 deletions(-)

diffs (147 lines):

diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/Makefile
--- a/math/octave-forge/Makefile        Sun Mar 13 16:48:43 2005 +0000
+++ b/math/octave-forge/Makefile        Mon Mar 14 04:08:42 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2004/12/05 09:03:42 adam Exp $
+# $NetBSD: Makefile,v 1.7 2005/03/14 04:08:42 dmcmahill Exp $
 
 DISTNAME=      octave-forge-2004.11.16
 CATEGORIES=    cad
@@ -30,6 +30,7 @@
 
 GCC_REQD=      3.0
 USE_LANGUAGES= c c++ fortran
+F77=   ${FC}
 
 .include "../../math/octave-current/octave.mk"
 
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/distinfo
--- a/math/octave-forge/distinfo        Sun Mar 13 16:48:43 2005 +0000
+++ b/math/octave-forge/distinfo        Mon Mar 14 04:08:42 2005 +0000
@@ -1,11 +1,16 @@
-$NetBSD: distinfo,v 1.5 2005/03/13 15:49:03 dmcmahill Exp $
+$NetBSD: distinfo,v 1.6 2005/03/14 04:08:42 dmcmahill Exp $
 
 SHA1 (octave-forge-2004.11.16.tar.gz) = a27dbccd1665eb99b1457d23c1ac6b75eb3a9800
 RMD160 (octave-forge-2004.11.16.tar.gz) = 9356864920a5a4d4a4c1786c3ea74be0ec1e760d
 Size (octave-forge-2004.11.16.tar.gz) = 3639093 bytes
 SHA1 (patch-aa) = 1723f94e7532dd8ddd691bf5a348c5447b4d312b
 SHA1 (patch-ab) = a9c46217e12f9278dfa9123707183c6d9e702070
+SHA1 (patch-ac) = fdd01692f5f762da42551a816972a80eb27a3819
 SHA1 (patch-ad) = 463f05f1061f4ff0e28f91f04be0aee348044ef8
+SHA1 (patch-ae) = 03a320acda082e968868795298de0424871d327b
 SHA1 (patch-af) = f3920b982014a06ecc5aac8d99e527918bf5e4c1
 SHA1 (patch-ag) = 3a9f2dede5f5b59b7997b76357707385806d7873
+SHA1 (patch-ah) = f772adbe28cacfb865f88a741797de117903d1cf
+SHA1 (patch-ai) = 6a6e49edd42115952203ebf33f0bd110e5e908a2
 SHA1 (patch-ak) = 49c63b4b2a92cb971410f325a077152d7b5ebcd8
+SHA1 (patch-al) = 716612d9cb33c4f384f1d40c5c48943e6f71b84e
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-forge/patches/patch-ac        Mon Mar 14 04:08:42 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.4 2005/03/14 04:08:42 dmcmahill Exp $
+
+--- FIXES/randmtzig.c.orig     2004-11-08 06:41:25.000000000 -0500
++++ FIXES/randmtzig.c
+@@ -147,7 +147,7 @@
+       unsigned long long uint64_t;
+    instead.
+ */ 
+-#include <stdint.h>
++#include <sys/types.h>
+ 
+    
+ /* XXX FIXME XXX may want to suppress X86 if sizeof(long)>4 */
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-forge/patches/patch-ae        Mon Mar 14 04:08:42 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.4 2005/03/14 04:08:42 dmcmahill Exp $
+
+--- Makeconf.base.orig 2004-11-16 05:31:57.000000000 -0500
++++ Makeconf.base
+@@ -6,7 +6,7 @@
+ 
+ OCTAVE_FORGE = 1
+ 
+-SHELL = /bin/sh
++SHELL = @SHELL@
+ 
+ canonical_host_type = @canonical_host_type@
+ prefix = @prefix@
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/patches/patch-ah
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-forge/patches/patch-ah        Mon Mar 14 04:08:42 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ah,v 1.4 2005/03/14 04:08:42 dmcmahill Exp $
+
+--- main/gsl/Makefile.orig     2004-07-14 15:59:13.000000000 -0400
++++ main/gsl/Makefile
+@@ -21,7 +21,7 @@ endif
+ $(PROGS): Makefile
+ 
+ gsl_sf.cc: $(SF_BUILDSCRIPT)
+-      /bin/sh $(SF_BUILDSCRIPT)
++      ${SHELL} $(SF_BUILDSCRIPT)
+ 
+ $(SF_LINKS):
+       -$(RM) -f $@
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/patches/patch-ai
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-forge/patches/patch-ai        Mon Mar 14 04:08:42 2005 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.4 2005/03/14 04:08:42 dmcmahill Exp $
+
+--- Makeconf.in.orig   2004-11-16 20:02:36.000000000 -0500
++++ Makeconf.in
+@@ -6,7 +6,7 @@
+ 
+ OCTAVE_FORGE = 1
+ 
+-SHELL = /bin/sh
++SHELL = @SHELL@
+ 
+ canonical_host_type = @canonical_host_type@
+ prefix = @prefix@
diff -r 8cd467326eb7 -r d1d3204ea9b0 math/octave-forge/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/octave-forge/patches/patch-al        Mon Mar 14 04:08:42 2005 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-al,v 1.1 2005/03/14 04:08:42 dmcmahill Exp $
+
+sometimes X_LIBS ends up with "-Rpath" in it but mkoctfile doesn't
+understand that (yet).  In an upcoming octave-current release, that
+should be fixed.
+
+--- main/plot/Makefile.orig    2004-01-12 02:39:09.000000000 -0500
++++ main/plot/Makefile
+@@ -9,6 +9,7 @@ ifndef OCTAVE_FORGE
+       X_LIBS = -L/usr/X11R6/lib
+ endif
+ 
++X_LIBS2=      $(filter-out -R%, ${X_LIBS})
+ 
+ %.o: %.cc ; $(MKOCTFILE) -c $(X_CFLAGS) $<
+ 
+@@ -22,16 +23,16 @@ endif
+ $(PROGS:.oct=.o): graphics.h
+ 
+ grab.oct: grab.o graphics.o
+-      $(MKOCTFILE) $< graphics.o $(X_LIBS) -o $@
++      $(MKOCTFILE) $< graphics.o $(X_LIBS2) -o $@
+ 
+ gpick.oct: gpick.o graphics.o
+-      $(MKOCTFILE) $< graphics.o $(X_LIBS) -o $@
++      $(MKOCTFILE) $< graphics.o $(X_LIBS2) -o $@
+ 
+ gtext.oct: gtext.o graphics.o
+-      $(MKOCTFILE) $< graphics.o $(X_LIBS) -o $@
++      $(MKOCTFILE) $< graphics.o $(X_LIBS2) -o $@
+ 
+ gzoom.oct: gzoom.o graphics.o
+-      $(MKOCTFILE) $< graphics.o $(X_LIBS) -o $@
++      $(MKOCTFILE) $< graphics.o $(X_LIBS2) -o $@
+ 
+ clean: ; -$(RM) *.o octave-core core *~ *.oct
+ 



Home | Main Index | Thread Index | Old Index