diff --git a/lang/icc/Makefile b/lang/icc/Makefile index 857b7cee8002..097056d6a138 100644 --- a/lang/icc/Makefile +++ b/lang/icc/Makefile @@ -7,6 +7,7 @@ PORTNAME= icc PORTVERSION= 5.0.1 +PORTREVISION= 1 CATEGORIES= lang linux MASTER_SITES= http://www.intel.com/software/products/compilers/c50/linux/ DISTNAME= cc010911rh71 @@ -31,6 +32,8 @@ NO_CDROM= yes .include +ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//' + .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) IGNORE= "Please manually download the version for RedHat 7.1 from ${MASTER_SITES}, put it into ${DISTDIR} and run make again" .endif @@ -51,15 +54,6 @@ pre-patch: xargs -0 ${CHMOD} a-x,g-w .endfor @${FIND} ${WRKSRC}/opt -type d -print0 | xargs -0 ${CHMOD} go-w -.for i in ia32/bin/iccvars.csh ia32/bin/iccvars.sh ia32/bin/icc.cfg \ - ia32/bin/icpc.cfg docs/iccsupport - @${SED} 's@\@${PREFIX}/intel@g' \ - ${WRKSRC}/opt/intel/compiler50/${i} \ - >${WRKSRC}/opt/intel/compiler50/${i}.seded - @${MV} -f ${WRKSRC}/opt/intel/compiler50/${i}.seded \ - ${WRKSRC}/opt/intel/compiler50/${i} - @${CHMOD} 755 ${WRKSRC}/opt/intel/compiler50/${i} -.endfor .for i in icc iccfilt icid icpc icpi mcpcom profmerge proforder @brandelf -t Linux ${WRKSRC}/opt/intel/compiler50/ia32/bin/${i} .endfor @@ -68,10 +62,20 @@ pre-patch: .endfor post-patch: +.for i in ia32/bin/iccvars.csh ia32/bin/iccvars.sh ia32/bin/icc.cfg \ + ia32/bin/icpc.cfg docs/iccsupport + @${SED} 's@\@${PREFIX}/intel@g; s@-tp p6@@' \ + ${WRKSRC}/opt/intel/compiler50/${i} \ + >${WRKSRC}/opt/intel/compiler50/${i}.seded + @${MV} -f ${WRKSRC}/opt/intel/compiler50/${i}.seded \ + ${WRKSRC}/opt/intel/compiler50/${i} + @${CHMOD} 755 ${WRKSRC}/opt/intel/compiler50/${i} +.endfor @${RM} ${WRKSRC}/opt/intel/compiler50/ia32/include/yvals.h.orig .if defined(NOPORTDOCS) @${RM} -rf ${WRKSRC}/opt/intel/compiler50/docs .endif + @${ECHO} -e "\n-Ulinux\n-U__linux__\n-U__linux\n\n-D__FreeBSD__=${ICCCFGVAL}\n-D__ELF__=1\n" >>${WRKSRC}/opt/intel/compiler50/ia32/bin/icc.cfg do-install: @cd ${WRKSRC}/opt && ${TAR} -chf - . | \ diff --git a/lang/icc/files/patch-iccvars.csh b/lang/icc/files/patch-iccvars.csh new file mode 100644 index 000000000000..3f3e6906f747 --- /dev/null +++ b/lang/icc/files/patch-iccvars.csh @@ -0,0 +1,16 @@ +--- opt/intel/compiler50/ia32/bin/iccvars.csh.orig Sun Mar 31 11:14:54 2002 ++++ opt/intel/compiler50/ia32/bin/iccvars.csh Sun Mar 31 11:16:11 2002 +@@ -1,4 +1,4 @@ +-#! /bin/tcsh ++#! /bin/csh + if ! ($?IA32ROOT) then + setenv IA32_SAVE_PATH $PATH + if ($?LD_LIBRARY_PATH) then +@@ -24,6 +24,6 @@ + setenv LD_LIBRARY_PATH $IA32ROOT/lib:$IA32_SAVE_LD_LIBRARY_PATH + endif + +-setenv INTEL_FLEXLM_LICENSE=/licenses ++setenv INTEL_FLEXLM_LICENSE /licenses + + diff --git a/lang/icc/pkg-descr b/lang/icc/pkg-descr index 1b668787fdd6..601a1ca57758 100644 --- a/lang/icc/pkg-descr +++ b/lang/icc/pkg-descr @@ -1,5 +1,5 @@ This is Intels C/C++ compiler, it is set up so produce native FreeBSD objects. -This port is not able to produce native executables on its own, you need to do -it yourself with gcc. +This port is not able to produce native executables on its own, you need to +use gcc to link the final binary. WWW: http://www.intel.com/software/products/compilers/c50/linux diff --git a/lang/icc7/Makefile b/lang/icc7/Makefile index 857b7cee8002..097056d6a138 100644 --- a/lang/icc7/Makefile +++ b/lang/icc7/Makefile @@ -7,6 +7,7 @@ PORTNAME= icc PORTVERSION= 5.0.1 +PORTREVISION= 1 CATEGORIES= lang linux MASTER_SITES= http://www.intel.com/software/products/compilers/c50/linux/ DISTNAME= cc010911rh71 @@ -31,6 +32,8 @@ NO_CDROM= yes .include +ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//' + .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) IGNORE= "Please manually download the version for RedHat 7.1 from ${MASTER_SITES}, put it into ${DISTDIR} and run make again" .endif @@ -51,15 +54,6 @@ pre-patch: xargs -0 ${CHMOD} a-x,g-w .endfor @${FIND} ${WRKSRC}/opt -type d -print0 | xargs -0 ${CHMOD} go-w -.for i in ia32/bin/iccvars.csh ia32/bin/iccvars.sh ia32/bin/icc.cfg \ - ia32/bin/icpc.cfg docs/iccsupport - @${SED} 's@\@${PREFIX}/intel@g' \ - ${WRKSRC}/opt/intel/compiler50/${i} \ - >${WRKSRC}/opt/intel/compiler50/${i}.seded - @${MV} -f ${WRKSRC}/opt/intel/compiler50/${i}.seded \ - ${WRKSRC}/opt/intel/compiler50/${i} - @${CHMOD} 755 ${WRKSRC}/opt/intel/compiler50/${i} -.endfor .for i in icc iccfilt icid icpc icpi mcpcom profmerge proforder @brandelf -t Linux ${WRKSRC}/opt/intel/compiler50/ia32/bin/${i} .endfor @@ -68,10 +62,20 @@ pre-patch: .endfor post-patch: +.for i in ia32/bin/iccvars.csh ia32/bin/iccvars.sh ia32/bin/icc.cfg \ + ia32/bin/icpc.cfg docs/iccsupport + @${SED} 's@\@${PREFIX}/intel@g; s@-tp p6@@' \ + ${WRKSRC}/opt/intel/compiler50/${i} \ + >${WRKSRC}/opt/intel/compiler50/${i}.seded + @${MV} -f ${WRKSRC}/opt/intel/compiler50/${i}.seded \ + ${WRKSRC}/opt/intel/compiler50/${i} + @${CHMOD} 755 ${WRKSRC}/opt/intel/compiler50/${i} +.endfor @${RM} ${WRKSRC}/opt/intel/compiler50/ia32/include/yvals.h.orig .if defined(NOPORTDOCS) @${RM} -rf ${WRKSRC}/opt/intel/compiler50/docs .endif + @${ECHO} -e "\n-Ulinux\n-U__linux__\n-U__linux\n\n-D__FreeBSD__=${ICCCFGVAL}\n-D__ELF__=1\n" >>${WRKSRC}/opt/intel/compiler50/ia32/bin/icc.cfg do-install: @cd ${WRKSRC}/opt && ${TAR} -chf - . | \ diff --git a/lang/icc7/files/patch-iccvars.csh b/lang/icc7/files/patch-iccvars.csh new file mode 100644 index 000000000000..3f3e6906f747 --- /dev/null +++ b/lang/icc7/files/patch-iccvars.csh @@ -0,0 +1,16 @@ +--- opt/intel/compiler50/ia32/bin/iccvars.csh.orig Sun Mar 31 11:14:54 2002 ++++ opt/intel/compiler50/ia32/bin/iccvars.csh Sun Mar 31 11:16:11 2002 +@@ -1,4 +1,4 @@ +-#! /bin/tcsh ++#! /bin/csh + if ! ($?IA32ROOT) then + setenv IA32_SAVE_PATH $PATH + if ($?LD_LIBRARY_PATH) then +@@ -24,6 +24,6 @@ + setenv LD_LIBRARY_PATH $IA32ROOT/lib:$IA32_SAVE_LD_LIBRARY_PATH + endif + +-setenv INTEL_FLEXLM_LICENSE=/licenses ++setenv INTEL_FLEXLM_LICENSE /licenses + + diff --git a/lang/icc7/pkg-descr b/lang/icc7/pkg-descr index 1b668787fdd6..601a1ca57758 100644 --- a/lang/icc7/pkg-descr +++ b/lang/icc7/pkg-descr @@ -1,5 +1,5 @@ This is Intels C/C++ compiler, it is set up so produce native FreeBSD objects. -This port is not able to produce native executables on its own, you need to do -it yourself with gcc. +This port is not able to produce native executables on its own, you need to +use gcc to link the final binary. WWW: http://www.intel.com/software/products/compilers/c50/linux