summaryrefslogtreecommitdiff
path: root/lang/icc
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2004-03-13 10:33:18 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2004-03-13 10:33:18 +0000
commitbaa8612f1ddaa3e387fadb28ca60660b05f7042a (patch)
treead4a6c797a9629a1f665788d26f3d2ec8bd9fc8e /lang/icc
parentUpdate to 1.2 (diff)
- some base system headers know about icc now, don't override them
where appropriate [1] - make portlint happy [1] - sync icc7 and icc [1] - add linux_base as a patch depends for icc v8 Submitted by: Marius Strobl <marius@alchemy.franken.de> [1] Requested by: maintainer [1]
Notes
Notes: svn path=/head/; revision=103873
Diffstat (limited to 'lang/icc')
-rw-r--r--lang/icc/Makefile17
-rw-r--r--lang/icc/pkg-plist6
2 files changed, 18 insertions, 5 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile
index 0995a1f64a73..d88cd3ae9515 100644
--- a/lang/icc/Makefile
+++ b/lang/icc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= icc
PORTVERSION= 8.0.058.p060
+PORTREVISION= 1
CATEGORIES= lang linux devel
MASTER_SITES=
DISTNAME= l_cc_pc_${PORTVERSION:C/\.p.+$//}
@@ -21,6 +22,7 @@ DISTFILES+= ${DISTNAME}_${PATCHLEVEL}${EXTRACT_SUFX}
.endif
EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
+PATCH_DEPENDS= ${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
RESTRICTED= Intel forbids any redistribution
NO_PACKAGE= ${RESTRICTED}
@@ -53,6 +55,12 @@ EXTRACT_AFTER_ARGS= | tar -xf - \
ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//'
+.if ( ${OSVERSION} < 502108 )
+PLIST_SUB+= STDARG_H="" SYS_CDEFS_H=""
+.else
+PLIST_SUB+= STDARG_H="@comment " SYS_CDEFS_H="@comment "
+.endif
+
.for file in ${DISTFILES}
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${file})
IGNORE= "Go to Intel Premier Support, https://premier.intel.com, to obtain ${DISTFILES}. Product updates such as this compiler are posted regularly on Premier Support. You must have a license to obtain access to Premier Support. If you do not already have a license go to ${ICC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again"
@@ -119,9 +127,12 @@ post-patch:
# Provide a more FreeBSD'ish compile environment
.for i in icc.cfg icpc.cfg
@${ECHO_CMD} -e "-no-gcc\n-Qlocation,ld,${PREFIX}/${COMPILERDIR}/bin/ldwrapper\n\n-wr1125\n-we140\n\n-Ulinux\n-U__linux__\n-U__linux\n-U__gnu_linux__\n\n-D__FreeBSD__=${ICCCFGVAL}\n\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.if ${OSVERSION} >= 500039
+.if ( ${OSVERSION} >= 500039 )
@${ECHO_CMD} -e "-D__wchar_t=__ct_rune_t\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endif
+.if ( ${OSVERSION} >= 502108 )
+ @${ECHO_CMD} -e "-restrict\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
+.endif
@${CHMOD} a-x,g-w ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
# C++ hack for icpc
@@ -130,9 +141,11 @@ post-patch:
@cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s icc.cfg iccbin.cfg \
&& ${LN} -s icpc.cfg icpcbin.cfg
# Hack while there's no support for icc in the stdarg.h and sys/cdefs.h.
+.if ( ${OSVERSION} < 502108 )
@${CP} ${FILESDIR}/stdarg.h ${WRKSRC}/opt/${COMPILERDIR}/include
@${MKDIR} ${WRKSRC}/opt/${COMPILERDIR}/include/sys
@${CP} ${FILESDIR}/cdefs.h ${WRKSRC}/opt/${COMPILERDIR}/include/sys
+.endif
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )
@@ -142,7 +155,7 @@ OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
.endif
do-build:
-# Use the Linux ABI for the binaries
+# Use the Linux ABI for the binaries
.for i in codecov iccbin iccfilt icpcbin icpi mcpcom profmerge proforder tselect xiar xild
@${BRANDELF} -t Linux ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
diff --git a/lang/icc/pkg-plist b/lang/icc/pkg-plist
index 0d6f25b3a3d3..5be7f0dcc782 100644
--- a/lang/icc/pkg-plist
+++ b/lang/icc/pkg-plist
@@ -1445,9 +1445,9 @@
%%COMPILERDIR%%/include/pmmintrin.h
%%COMPILERDIR%%/include/proto.h
%%COMPILERDIR%%/include/sse2mmx.h
-%%COMPILERDIR%%/include/stdarg.h
-%%COMPILERDIR%%/include/sys/cdefs.h
-@dirrm %%COMPILERDIR%%/include/sys
+%%STDARG_H%%%%COMPILERDIR%%/include/stdarg.h
+%%SYS_CDEFS_H%%%%COMPILERDIR%%/include/sys/cdefs.h
+%%SYS_CDEFS_H%%@dirrm %%COMPILERDIR%%/include/sys
%%COMPILERDIR%%/include/xmm_func.h
%%COMPILERDIR%%/include/xmm_utils.h
%%COMPILERDIR%%/include/xmmintrin.h