summaryrefslogtreecommitdiff
path: root/lang/f2c/Makefile
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-06-17 04:21:08 +0000
committerdmcmahill <dmcmahill>2002-06-17 04:21:08 +0000
commit3f9022447c2a0f038767bc806aeea192c4d35ce1 (patch)
tree5a2fde8d3864e092e809d8decec83ca644d5221d /lang/f2c/Makefile
parentd00cb9ea976a00c6b74b4a1a025767cf60988439 (diff)
downloadpkgsrc-3f9022447c2a0f038767bc806aeea192c4d35ce1.tar.gz
fix PLIST and build on mipsel machines where all code is PIC so we don't
need to build a _pic lib. fixed PR pkg/16302 submitted by Daniel Senderowicz <daniel@mispibes.SynchroDS.COM>
Diffstat (limited to 'lang/f2c/Makefile')
-rw-r--r--lang/f2c/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/f2c/Makefile b/lang/f2c/Makefile
index e172b9e71d5..283a564d12c 100644
--- a/lang/f2c/Makefile
+++ b/lang/f2c/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2002/01/22 16:47:22 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.20 2002/06/17 04:21:08 dmcmahill Exp $
DISTNAME= f2c-20001205
PKGREVISION= 5
@@ -29,6 +29,7 @@ F2CMAJOR= 0
F2CMINOR= 0
MAKE_ENV+= F2CMAJOR=${F2CMAJOR} F2CMINOR=${F2CMINOR}
PLIST_SUBST+= F2CMAJOR=${F2CMAJOR} F2CMINOR=${F2CMINOR}
+PLIST_SRC= ${WRKDIR}/PLIST
USE_BUILDLINK_ONLY= # defined
@@ -53,6 +54,14 @@ post-patch:
# for OBJECT_FMT
.include "../../mk/bsd.prefs.mk"
+MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
+
+pre-install:
+.if (${MACHINE_ARCH} == "mipsel")
+ ${SED} '/lib.*_pic/d' ${PKGDIR}/PLIST > ${PLIST_SRC}
+.else
+ ${CP} ${PKGSRCDIR}/PLIST ${PLIST_SRC}
+.endif
.if (${OBJECT_FMT} == "ELF")
post-install: