diff options
author | netchild <netchild@FreeBSD.org> | 2004-03-13 10:33:18 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2004-03-13 10:33:18 +0000 |
commit | 0d4342c909c7dc99f61d3638d3bab3d7e088da31 (patch) | |
tree | 088908af41470bc42108d408501ad5ea584d8a28 /lang/icc/Makefile | |
parent | 0920536511e0c309d6d8ed5af6b23f633cc0d0f5 (diff) | |
download | FreeBSD-ports-0d4342c909c7dc99f61d3638d3bab3d7e088da31.zip FreeBSD-ports-0d4342c909c7dc99f61d3638d3bab3d7e088da31.tar.gz |
- 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]
Diffstat (limited to 'lang/icc/Makefile')
-rw-r--r-- | lang/icc/Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile index 0995a1f..d88cd3a 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 |