diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2002-06-17 04:21:08 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2002-06-17 04:21:08 +0000 |
commit | e8a657337172d6f452e8d284e3b398ada0c570bc (patch) | |
tree | 5a2fde8d3864e092e809d8decec83ca644d5221d /lang/f2c/Makefile | |
parent | 33867ff2f18bfb71ffd870b1334f97021ab39533 (diff) | |
download | pkgsrc-e8a657337172d6f452e8d284e3b398ada0c570bc.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/Makefile | 11 |
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: |