aboutsummaryrefslogtreecommitdiffstats
path: root/math/plplot
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-09-28 04:13:16 +0800
committersteve <steve@FreeBSD.org>1998-09-28 04:13:16 +0800
commit32d174660a79cada92a38721149b27da2d09d927 (patch)
tree2eb0568567fde72064ff18eaed982b8145df5217 /math/plplot
parent37b11f108860fca099315a5bf772aa51eed5f864 (diff)
downloadfreebsd-ports-gnome-32d174660a79cada92a38721149b27da2d09d927.tar.gz
freebsd-ports-gnome-32d174660a79cada92a38721149b27da2d09d927.tar.zst
freebsd-ports-gnome-32d174660a79cada92a38721149b27da2d09d927.zip
Convert to ELF.
Diffstat (limited to 'math/plplot')
-rw-r--r--math/plplot/Makefile9
-rw-r--r--math/plplot/files/patch-aa20
-rw-r--r--math/plplot/files/patch-ac13
-rw-r--r--math/plplot/pkg-plist3
4 files changed, 37 insertions, 8 deletions
diff --git a/math/plplot/Makefile b/math/plplot/Makefile
index f19e0049f1d8..1a5f28b022e1 100644
--- a/math/plplot/Makefile
+++ b/math/plplot/Makefile
@@ -3,7 +3,7 @@
# Date created: 03 Oct 1997
# Whom: Thomas Gellekum <tg@FreeBSD.ORG>
#
-# $Id: Makefile,v 1.3 1997/11/30 21:12:15 jseger Exp $
+# $Id: Makefile,v 1.4 1997/12/24 01:21:31 alex Exp $
#
DISTNAME= plplot4p99j
@@ -20,4 +20,11 @@ post-patch:
@perl -pi.bak -e "s|/usr/local/plplot/lib|${PREFIX}/lib/plplot|g;" \
${WRKSRC}/src/plctrl.c
+post-install:
+ if [ "${PORTOBJFORMAT}" = "elf" ]; then \
+ ${LN} -sf libplplotdX.so.4 ${PREFIX}/lib/libplplotdX.so; \
+ else \
+ ${LN} -sf libplplotdX.so.4.99 ${PREFIX}/lib/libplplotdX.so; \
+ fi
+
.include <bsd.port.mk>
diff --git a/math/plplot/files/patch-aa b/math/plplot/files/patch-aa
index 95be93460cde..341419dd1e15 100644
--- a/math/plplot/files/patch-aa
+++ b/math/plplot/files/patch-aa
@@ -1,5 +1,5 @@
---- configure.orig Tue Jun 6 21:58:50 1995
-+++ configure Fri Oct 3 14:59:52 1997
+--- configure.orig Tue Jun 6 14:58:50 1995
++++ configure Sat Sep 26 23:34:48 1998
@@ -1472,13 +1472,13 @@
# ----------------------------------------------------------------------------
@@ -17,22 +17,28 @@
LDC_FLAGS=\
"$PROF_FLAG_LC $SYS_FLAGS_LC $DEBUG_FLAG_LC"
-@@ -3062,6 +3062,14 @@
+@@ -3062,6 +3062,20 @@
# Hmm, would be good to replace that trailing .0 with the
# compilation number or some such. Have to think about that.
;;
+ FreeBSD*|NetBSD*|OpenBSD* )
-+ SO='.so.$(MAJOR_VERSION).$(MINOR_VERSION)'
+ SHLIB_CCFLAGS="-fpic -DPIC"
+ SHLIB_CXXFLAGS="-fpic -DPIC"
-+ SHLIB_BUILD="ld -Bshareable -o"
-+ SOVERSION='$(MAJOR_VERSION).$(MINOR_VERSION)'
++ if [ "${PORTOBJFORMAT}" = "elf" ]; then
++ SO='.so.$(MAJOR_VERSION)'
++ SHLIB_BUILD="ld -shared -soname \$@ -o"
++ SOVERSION='$(MAJOR_VERSION)'
++ else
++ SO='.so.$(MAJOR_VERSION).$(MINOR_VERSION)'
++ SHLIB_BUILD="ld -Bshareable -o"
++ SOVERSION='$(MAJOR_VERSION).$(MINOR_VERSION)'
++ fi
+ echo "$ac_t""okay" 1>&6
+ ;;
HP-UX-* )
SO=".sl"
SHLIB_F77FLAGS="+z"
-@@ -4192,16 +4200,16 @@
+@@ -4192,16 +4206,16 @@
fi
fi
if test -z "$DOC_DIR"; then
diff --git a/math/plplot/files/patch-ac b/math/plplot/files/patch-ac
new file mode 100644
index 000000000000..d2bc00e8b1ac
--- /dev/null
+++ b/math/plplot/files/patch-ac
@@ -0,0 +1,13 @@
+--- drivers/tek.c.orig Sat Sep 26 23:07:07 1998
++++ drivers/tek.c Sat Sep 26 23:07:28 1998
+@@ -79,8 +79,8 @@
+ static void tty_atexit (void);
+ #else
+ static void tty_setup (void) {};
+-static int tty_cbreak (void) {return 0};
+-static int tty_reset (void) {return 0};
++static int tty_cbreak (void) {return 0;};
++static int tty_reset (void) {return 0;};
+ static void tty_atexit (void) {};
+ #endif
+
diff --git a/math/plplot/pkg-plist b/math/plplot/pkg-plist
index 56e7bc94de34..9917717261de 100644
--- a/math/plplot/pkg-plist
+++ b/math/plplot/pkg-plist
@@ -10,7 +10,10 @@ include/plplot/plplot.h
include/plplot/plplotP.h
include/plplot/plstream.h
lib/libplplotdX.a
+lib/libplplotdX.so
lib/libplplotdX.so.4.99
+@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
+@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
lib/plplot/usaglobe.map
lib/plplot/usa.map
lib/plplot/globe.map