diff options
author | netchild <netchild@FreeBSD.org> | 2003-10-22 21:21:30 +0800 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2003-10-22 21:21:30 +0800 |
commit | a6300b5c4cfc669b953cc6000c139cff550c7d44 (patch) | |
tree | 3588c22e4f0e632d557fb50e874f5de9d6d1b95f | |
parent | 35eaa92e12115e7d5fbd251c21a49b1d958ce0f1 (diff) | |
download | freebsd-ports-gnome-a6300b5c4cfc669b953cc6000c139cff550c7d44.tar.gz freebsd-ports-gnome-a6300b5c4cfc669b953cc6000c139cff550c7d44.tar.zst freebsd-ports-gnome-a6300b5c4cfc669b953cc6000c139cff550c7d44.zip |
- Fix icc and icpc scripts (variable overriding) [1]
- Don't extract ia64 RPMs [2]
- Fix bug on some 4.7 systems [3]
Noticed by: mi [1]
Suggested by: mi [2]
Tested by: Clint Olsen <clint@0lsen.net>
-rw-r--r-- | lang/icc/Makefile | 21 | ||||
-rw-r--r-- | lang/icc/files/patch-ia32::bin::icc | 13 | ||||
-rw-r--r-- | lang/icc/files/patch-ia32::bin::icpc | 13 | ||||
-rw-r--r-- | lang/icc7/Makefile | 21 | ||||
-rw-r--r-- | lang/icc7/files/patch-ia32::bin::icc | 13 | ||||
-rw-r--r-- | lang/icc7/files/patch-ia32::bin::icpc | 13 |
6 files changed, 62 insertions, 32 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile index 0f5ead6f9a25..0844e7d4dace 100644 --- a/lang/icc/Makefile +++ b/lang/icc/Makefile @@ -7,7 +7,7 @@ PORTNAME= icc PORTVERSION= 7.1.031 -#PORTREVISION= 1 +PORTREVISION= 1 CATEGORIES= lang linux devel MASTER_SITES= DISTNAME= l_cc_pc_${PORTVERSION} @@ -41,6 +41,11 @@ ICC_SITE= http://www.intel.com/software/products/compilers/ .include <bsd.port.pre.mk> +EXTRACT_AFTER_ARGS= | tar -xf - \ + --exclude intel-isubh\*.rpm \ + --exclude \*ia64.rpm \ + --exclude flexlm64 + ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//' CPIO?= /usr/bin/cpio @@ -118,6 +123,13 @@ post-patch: # Hack while there's no support for icc in the stdarg.h of FreeBSD. @${CP} ${FILESDIR}/stdarg.h ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/include +.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \ + ( ${OSVERSION} >= 500042 ) +OBJCOPY_OPS= --redefine-sym stdin=__stdinp \ + --redefine-sym stdout=__stdoutp \ + --redefine-sym stderr=__stderrp +.endif + do-build: # Fix unresolved references @cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \ @@ -128,15 +140,12 @@ do-build: @${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c @${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c @${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c -.else +.endif .for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a @${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \ - --redefine-sym stdin=__stdinp \ - --redefine-sym stdout=__stdoutp \ - --redefine-sym stderr=__stderrp \ + ${OBJCOPY_OPS} \ ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i} .endfor -.endif @${AR} q ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/libcxa.a ${WRKSRC}/*.o # Some magic to be able to link @${MKDIR} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper diff --git a/lang/icc/files/patch-ia32::bin::icc b/lang/icc/files/patch-ia32::bin::icc index 20854225ee39..69b3e4ff1c13 100644 --- a/lang/icc/files/patch-ia32::bin::icc +++ b/lang/icc/files/patch-ia32::bin::icc @@ -1,12 +1,13 @@ ---- ia32/bin/icc.orig Fri Jan 10 16:57:18 2003 -+++ ia32/bin/icc Fri Jan 10 17:09:38 2003 +--- ia32/bin/icc.orig Tue Oct 21 18:57:00 2003 ++++ ia32/bin/icc Tue Oct 21 19:12:23 2003 @@ -1,34 +1,72 @@ #!/bin/sh +-if [ -z INTEL_LICENSE_FILE ] +PREFIX=@@PREFIX@@ +export PREFIX; + - if [ -z INTEL_LICENSE_FILE ] ++if [ -z "$INTEL_LICENSE_FILE" ] then -INTEL_LICENSE_FILE=<INSTALLDIR>/licenses; +INTEL_LICENSE_FILE=${PREFIX}/intel/licenses; @@ -16,7 +17,8 @@ fi export INTEL_LICENSE_FILE; - if [ -z LD_LIBRARY_PATH ] +-if [ -z LD_LIBRARY_PATH ] ++if [ -z "$LD_LIBRARY_PATH" ] then - LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib; + LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib; @@ -26,7 +28,8 @@ fi export LD_LIBRARY_PATH; - if [ -z PATH ] +-if [ -z PATH ] ++if [ -z "$PATH" ] then - PATH=<INSTALLDIR>/compiler70/ia32/bin; + PATH=${PREFIX}/intel/compiler70/ia32/bin; diff --git a/lang/icc/files/patch-ia32::bin::icpc b/lang/icc/files/patch-ia32::bin::icpc index a1539954756f..0557997d9a8b 100644 --- a/lang/icc/files/patch-ia32::bin::icpc +++ b/lang/icc/files/patch-ia32::bin::icpc @@ -1,12 +1,13 @@ ---- ia32/bin/icpc.orig Fri Jan 10 16:47:29 2003 -+++ ia32/bin/icpc Fri Jan 10 17:19:03 2003 +--- ia32/bin/icpc.orig Tue Oct 21 18:57:00 2003 ++++ ia32/bin/icpc Tue Oct 21 19:11:54 2003 @@ -1,34 +1,65 @@ #!/bin/sh +-if [ -z INTEL_LICENSE_FILE ] +PREFIX=@@PREFIX@@ +export PREFIX; + - if [ -z INTEL_LICENSE_FILE ] ++if [ -z "$INTEL_LICENSE_FILE" ] then -INTEL_LICENSE_FILE=<INSTALLDIR>/licenses; +INTEL_LICENSE_FILE=${PREFIX}/intel/licenses; @@ -16,7 +17,8 @@ fi export INTEL_LICENSE_FILE; - if [ -z LD_LIBRARY_PATH ] +-if [ -z LD_LIBRARY_PATH ] ++if [ -z "$LD_LIBRARY_PATH" ] then - LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib; + LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib; @@ -26,7 +28,8 @@ fi export LD_LIBRARY_PATH; - if [ -z PATH ] +-if [ -z PATH ] ++if [ -z "$PATH" ] then - PATH=<INSTALLDIR>/compiler70/ia32/bin; + PATH=${PREFIX}/intel/compiler70/ia32/bin; diff --git a/lang/icc7/Makefile b/lang/icc7/Makefile index 0f5ead6f9a25..0844e7d4dace 100644 --- a/lang/icc7/Makefile +++ b/lang/icc7/Makefile @@ -7,7 +7,7 @@ PORTNAME= icc PORTVERSION= 7.1.031 -#PORTREVISION= 1 +PORTREVISION= 1 CATEGORIES= lang linux devel MASTER_SITES= DISTNAME= l_cc_pc_${PORTVERSION} @@ -41,6 +41,11 @@ ICC_SITE= http://www.intel.com/software/products/compilers/ .include <bsd.port.pre.mk> +EXTRACT_AFTER_ARGS= | tar -xf - \ + --exclude intel-isubh\*.rpm \ + --exclude \*ia64.rpm \ + --exclude flexlm64 + ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//' CPIO?= /usr/bin/cpio @@ -118,6 +123,13 @@ post-patch: # Hack while there's no support for icc in the stdarg.h of FreeBSD. @${CP} ${FILESDIR}/stdarg.h ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/include +.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \ + ( ${OSVERSION} >= 500042 ) +OBJCOPY_OPS= --redefine-sym stdin=__stdinp \ + --redefine-sym stdout=__stdoutp \ + --redefine-sym stderr=__stderrp +.endif + do-build: # Fix unresolved references @cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \ @@ -128,15 +140,12 @@ do-build: @${CC} ${CFLAGS} -c -o ${WRKSRC}/stdin.o ${FILESDIR}/stdin.c @${CC} ${CFLAGS} -c -o ${WRKSRC}/stdout.o ${FILESDIR}/stdout.c @${CC} ${CFLAGS} -c -o ${WRKSRC}/stderr.o ${FILESDIR}/stderr.c -.else +.endif .for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a @${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \ - --redefine-sym stdin=__stdinp \ - --redefine-sym stdout=__stdoutp \ - --redefine-sym stderr=__stderrp \ + ${OBJCOPY_OPS} \ ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i} .endfor -.endif @${AR} q ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/libcxa.a ${WRKSRC}/*.o # Some magic to be able to link @${MKDIR} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper diff --git a/lang/icc7/files/patch-ia32::bin::icc b/lang/icc7/files/patch-ia32::bin::icc index 20854225ee39..69b3e4ff1c13 100644 --- a/lang/icc7/files/patch-ia32::bin::icc +++ b/lang/icc7/files/patch-ia32::bin::icc @@ -1,12 +1,13 @@ ---- ia32/bin/icc.orig Fri Jan 10 16:57:18 2003 -+++ ia32/bin/icc Fri Jan 10 17:09:38 2003 +--- ia32/bin/icc.orig Tue Oct 21 18:57:00 2003 ++++ ia32/bin/icc Tue Oct 21 19:12:23 2003 @@ -1,34 +1,72 @@ #!/bin/sh +-if [ -z INTEL_LICENSE_FILE ] +PREFIX=@@PREFIX@@ +export PREFIX; + - if [ -z INTEL_LICENSE_FILE ] ++if [ -z "$INTEL_LICENSE_FILE" ] then -INTEL_LICENSE_FILE=<INSTALLDIR>/licenses; +INTEL_LICENSE_FILE=${PREFIX}/intel/licenses; @@ -16,7 +17,8 @@ fi export INTEL_LICENSE_FILE; - if [ -z LD_LIBRARY_PATH ] +-if [ -z LD_LIBRARY_PATH ] ++if [ -z "$LD_LIBRARY_PATH" ] then - LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib; + LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib; @@ -26,7 +28,8 @@ fi export LD_LIBRARY_PATH; - if [ -z PATH ] +-if [ -z PATH ] ++if [ -z "$PATH" ] then - PATH=<INSTALLDIR>/compiler70/ia32/bin; + PATH=${PREFIX}/intel/compiler70/ia32/bin; diff --git a/lang/icc7/files/patch-ia32::bin::icpc b/lang/icc7/files/patch-ia32::bin::icpc index a1539954756f..0557997d9a8b 100644 --- a/lang/icc7/files/patch-ia32::bin::icpc +++ b/lang/icc7/files/patch-ia32::bin::icpc @@ -1,12 +1,13 @@ ---- ia32/bin/icpc.orig Fri Jan 10 16:47:29 2003 -+++ ia32/bin/icpc Fri Jan 10 17:19:03 2003 +--- ia32/bin/icpc.orig Tue Oct 21 18:57:00 2003 ++++ ia32/bin/icpc Tue Oct 21 19:11:54 2003 @@ -1,34 +1,65 @@ #!/bin/sh +-if [ -z INTEL_LICENSE_FILE ] +PREFIX=@@PREFIX@@ +export PREFIX; + - if [ -z INTEL_LICENSE_FILE ] ++if [ -z "$INTEL_LICENSE_FILE" ] then -INTEL_LICENSE_FILE=<INSTALLDIR>/licenses; +INTEL_LICENSE_FILE=${PREFIX}/intel/licenses; @@ -16,7 +17,8 @@ fi export INTEL_LICENSE_FILE; - if [ -z LD_LIBRARY_PATH ] +-if [ -z LD_LIBRARY_PATH ] ++if [ -z "$LD_LIBRARY_PATH" ] then - LD_LIBRARY_PATH=<INSTALLDIR>/compiler70/ia32/lib; + LD_LIBRARY_PATH=${PREFIX}/intel/compiler70/ia32/lib; @@ -26,7 +28,8 @@ fi export LD_LIBRARY_PATH; - if [ -z PATH ] +-if [ -z PATH ] ++if [ -z "$PATH" ] then - PATH=<INSTALLDIR>/compiler70/ia32/bin; + PATH=${PREFIX}/intel/compiler70/ia32/bin; |