1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- 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]
This commit is contained in:
Alexander Leidinger 2004-03-13 10:33:18 +00:00
parent 2c8ba2f7ff
commit baa8612f1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103873
5 changed files with 41 additions and 14 deletions

View File

@ -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,8 +127,11 @@ 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
@ -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

View File

@ -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

View File

@ -7,7 +7,7 @@
PORTNAME= icc7
PORTVERSION= 7.1.035
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= lang linux devel
MASTER_SITES=
DISTNAME= l_cc_pc_${PORTVERSION}
@ -27,7 +27,6 @@ CONFLICTS= linux_devtools* ifc*
USE_LINUX= yes
USE_REINPLACE= yes
USE_SIZE= yes
NO_WRKSUBDIR= yes
NO_FILTER_SHLIBS= yes
@ -50,7 +49,11 @@ EXTRACT_AFTER_ARGS= | tar -xf - \
ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//'
OBJCOPY?= /usr/bin/objcopy
.if ( ${OSVERSION} < 502108 )
PLIST_SUB+= STDARG_H="" SYS_CDEFS_H=""
.else
PLIST_SUB+= STDARG_H="@comment " SYS_CDEFS_H="@comment "
.endif
.for file in ${DISTNAME}
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${file}${EXTRACT_SUFX})
@ -90,7 +93,7 @@ pre-patch:
@${CHMOD} a-x ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/Errormatch.txt
# Use the Linux ABI for the binaries
.for i in iccbin iccfilt icid icpcbin icpi mcpcom profmerge proforder xiar xild
@brandelf -t Linux ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
@${BRANDELF} -t Linux ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endfor
post-patch:
@ -112,8 +115,11 @@ post-patch:
@${REINPLACE_CMD} -i "" -e 's:-Xlinker -rpath -Xlinker <INSTALLDIR>/${COMPILERDIR}/ia32/lib::g' \
${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
@${ECHO_CMD} -e "-Qlocation,ld,${PREFIX}/intel/${COMPILERDIR}/ia32/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-D__ELF__=1\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.if ${OSVERSION} >= 500039
.if ( ${OSVERSION} >= 500039 )
@${ECHO_CMD} -e "-D__wchar_t=__ct_rune_t\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endif
.if ( ${OSVERSION} >= 502108 )
@${ECHO_CMD} -e "-restrict\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endif
@${CHMOD} a-x,g-w ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endfor
@ -121,7 +127,11 @@ post-patch:
@${ECHO_CMD} -e "\n-I${PREFIX}/include/stlport\n-Qoption,ld,-CPLUSPLUS\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/icpc.cfg
@cd ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/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 of FreeBSD.
.if ( ${OSVERSION} < 502108 )
@${CP} ${FILESDIR}/stdarg.h ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/include
.else
@${RM} -rf ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/include/sys
.endif
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
( ${OSVERSION} >= 500042 )

View File

@ -1,3 +1,5 @@
#ifndef __INTEL_COMPILER_STDARG_H_
#define __INTEL_COMPILER_STDARG_H_
#include_next <stdarg.h>
@ -7,3 +9,5 @@
#define va_copy(dest, src) ((dest) = (src))
#endif
#endif
#endif /* !__INTEL_COMPILER_STDARG_H_ */

View File

@ -1124,9 +1124,9 @@ intel/%%COMPILERDIR%%/ia32/include/pgouser.h
intel/%%COMPILERDIR%%/ia32/include/pmmintrin.h
intel/%%COMPILERDIR%%/ia32/include/proto.h
intel/%%COMPILERDIR%%/ia32/include/sse2mmx.h
intel/%%COMPILERDIR%%/ia32/include/stdarg.h
intel/%%COMPILERDIR%%/ia32/include/sys/cdefs.h
@dirrm intel/%%COMPILERDIR%%/ia32/include/sys
%%STDARG_H%%intel/%%COMPILERDIR%%/ia32/include/stdarg.h
%%SYS_CDEFS_H%%intel/%%COMPILERDIR%%/ia32/include/sys/cdefs.h
%%SYS_CDEFS_H%%@dirrm intel/%%COMPILERDIR%%/ia32/include/sys
intel/%%COMPILERDIR%%/ia32/include/typeinfo
intel/%%COMPILERDIR%%/ia32/include/xmmintrin.h
intel/%%COMPILERDIR%%/ia32/include/xmtx.h
@ -1354,5 +1354,5 @@ intel/%%COMPILERDIR%%/ia32/lib/libunwind.a
%%PORTDOCS%%@dirrm intel/%%COMPILERDIR%%/training/templ_im
%%PORTDOCS%%@dirrm intel/%%COMPILERDIR%%/training
@dirrm intel/%%COMPILERDIR%%
@unexec rmdir %D/intel/licenses >/dev/null 2>&1 || echo '*** license directory (%D/intel/licenses/) not removed, it may contain a license'
@unexec rmdir %D/intel/licenses >/dev/null 2>&1 || echo '*** License directory (%D/intel/licenses/) not removed, it may contain a license.'
@unexec rmdir %D/intel >/dev/null 2>&1 || true