summaryrefslogtreecommitdiff
path: root/lang/g95/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-09-07 01:33:51 +0000
committerdholland <dholland@pkgsrc.org>2008-09-07 01:33:51 +0000
commitd7b4f9c02a2009652363ee560bd3d4fe1d35cee4 (patch)
tree88d7fe97acb929787ac3fbb5d48ee939795c479c /lang/g95/patches
parent6bc6de5c5d221c6d5ea912bb25b4e0e3b7ccd2b3 (diff)
downloadpkgsrc-d7b4f9c02a2009652363ee560bd3d4fe1d35cee4.tar.gz
Add DESTDIR support.
Diffstat (limited to 'lang/g95/patches')
-rw-r--r--lang/g95/patches/patch-ab30
1 files changed, 26 insertions, 4 deletions
diff --git a/lang/g95/patches/patch-ab b/lang/g95/patches/patch-ab
index 2f7caf13639..1ecb9c538ec 100644
--- a/lang/g95/patches/patch-ab
+++ b/lang/g95/patches/patch-ab
@@ -1,8 +1,17 @@
-$NetBSD: patch-ab,v 1.2 2008/04/04 21:24:49 markd Exp $
+$NetBSD: patch-ab,v 1.3 2008/09/07 01:33:51 dholland Exp $
---- Makefile.in.orig 2008-01-29 18:01:26.000000000 +1300
-+++ Makefile.in
-@@ -1340,8 +1340,9 @@ install-data-hook:
+--- Makefile.in.orig 2008-01-29 00:01:26.000000000 -0500
++++ Makefile.in 2008-09-06 20:55:28.000000000 -0400
+@@ -1329,7 +1329,7 @@ clean-local:
+ rm -f options.tmp options.c options.h version.c
+
+ install-exec-hook:
+- mv $(bindir)/g95$(EXEEXT) $(bindir)/$(host)-g95$(EXEEXT)
++ mv ${DESTDIR}$(bindir)/g95$(EXEEXT) ${DESTDIR}$(bindir)/$(host)-g95$(EXEEXT)
+
+ install-data-hook:
+ -ln -sf f951$(EXEEXT) @DEST_LIBDIR@/cc1
+@@ -1340,19 +1340,20 @@ install-data-hook:
ranlib @DEST_LIBDIR@/libgcc_eh.a ; \
ranlib @DEST_LIBDIR@/libgcc.a ; \
fi
@@ -14,3 +23,16 @@ $NetBSD: patch-ab,v 1.2 2008/04/04 21:24:49 markd Exp $
if test -n "`ls @GCC_DIR@/g95/gcc/libgcc_s.*`" ; then \
(cd @GCC_DIR@/g95/gcc; tar cf - libgcc_s.*) | \
(cd @DEST_LIBDIR@; tar xf -) ; \
+ fi
+ if test -n "`ls @GCC_DIR@/g95/gcc/libunwind.*`" ; then \
+ (cd @GCC_DIR@/g95/gcc; tar cf - libunwind.*) | \
+- (cd @DEST_LIBDIR@; tar xf -) ; \
++ (cd ${DESTDIR}@DEST_LIBDIR@; tar xf -) ; \
+ fi
+ if test -n "`ls @GCC_DIR@/g95/gcc/libgcc_eh.*`" ; then \
+ (cd @GCC_DIR@/g95/gcc; tar cf - libgcc_eh.*) | \
+- (cd @DEST_LIBDIR@; tar xf -) ; \
++ (cd ${DESTDIR}@DEST_LIBDIR@; tar xf -) ; \
+ fi
+
+ ggc-page.o: ggc-page40.c ggc-page41.c