aboutsummaryrefslogtreecommitdiffstats
path: root/lang/icc
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-01-06 04:36:33 +0800
committerpav <pav@FreeBSD.org>2009-01-06 04:36:33 +0800
commit460836ff23b6dcedf0492f75495022dc42f6eb99 (patch)
tree5c97de462ec70569d72e34d640782d1b9348d6de /lang/icc
parentfbbcbe4a59e1074c58bbdabf056cd9c13db27392 (diff)
downloadfreebsd-ports-gnome-460836ff23b6dcedf0492f75495022dc42f6eb99.tar.gz
freebsd-ports-gnome-460836ff23b6dcedf0492f75495022dc42f6eb99.tar.zst
freebsd-ports-gnome-460836ff23b6dcedf0492f75495022dc42f6eb99.zip
- Remove conditional checks for FreeBSD 5.x and older
Diffstat (limited to 'lang/icc')
-rw-r--r--lang/icc/Makefile54
-rw-r--r--lang/icc/pkg-plist6
2 files changed, 0 insertions, 60 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile
index 9e5c0dc8c93c..93251e43aded 100644
--- a/lang/icc/Makefile
+++ b/lang/icc/Makefile
@@ -57,24 +57,8 @@ EXTRACT_AFTER_ARGS= | tar -xf - \
ICCCFGVAL!= ${UNAME} -r | ${SED} -e 's/\..*//'
-.if ( ${OSVERSION} < 502108 )
-PLIST_SUB+= MACHINE__TYPES_H="@comment " STDARG_H="" SYS_CDEFS_H="" \
- STDBOOL_H=""
-.else
-PLIST_SUB+= STDARG_H="@comment " SYS_CDEFS_H="@comment "
-.if ( ${OSVERSION} < 503103 || ( ${OSVERSION} >= 600000 && ${OSVERSION} < 600013 ) )
-PLIST_SUB+= MACHINE__TYPES_H="" STDBOOL_H=""
-.else
-PLIST_SUB+= MACHINE__TYPES_H="@comment " STDBOOL_H="@comment "
-.endif
-.if ${OSVERSION} < 502126
-GCCCOMPATVER= 330
-.endif
-.if ${OSVERSION} >= 502126
GCCCOMPATVER= 340
-.endif
GXXINCLUDE= /usr/include/c++/${GCCCOMPATVER:C/([0-9])([0-9]).+/\1.\2/}
-.endif
.for file in ${DISTFILES}
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${file})
@@ -143,49 +127,19 @@ post-patch:
# Provide a more FreeBSD'ish compile environment
.for i in icc.cfg icpc.cfg
@${ECHO_CMD} -e "-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 )
@${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}
-.else
- @${ECHO_CMD} -e "-no-gcc\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.endif
@${CHMOD} a-x,g-w ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
# C++ hack for icpc
-.if ( ${OSVERSION} >= 502108 )
@${ECHO_CMD} -e "-gcc-version=${GCCCOMPATVER}\n-cxxlib-gcc\n" \
>>${WRKSRC}/opt/${COMPILERDIR}/bin/icpc.cfg
-.else
- @${ECHO_CMD} -e "\n-I${PREFIX}/include/stlport\n-Qoption,ld,-CPLUSPLUS\n" \
- >>${WRKSRC}/opt/${COMPILERDIR}/bin/icpc.cfg
-.endif
@cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s icc.cfg iccbin.cfg \
&& ${LN} -s icpc.cfg icpcbin.cfg
-.if ( ${OSVERSION} < 502108 )
-# Hack while there's no support for ICC in the stdarg.h and sys/cdefs.h.
- @${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} >= 502108 && ${OSVERSION} < 503103 ) || ( ${OSVERSION} >= 600000 && ${OSVERSION} < 600013 ) )
-# Work around bug for ICC support in src/sys/i386/include/_types.h.
- @${MKDIR} ${WRKSRC}/opt/${COMPILERDIR}/include/machine
- @${CP} ${FILESDIR}/_types.h ${WRKSRC}/opt/${COMPILERDIR}/include/machine
-.endif
-.if ( ${OSVERSION} < 503103 || ( ${OSVERSION} >= 600000 && ${OSVERSION} < 600013 ) )
-# Work around a bug in stdbool.h
- @${SED} -e 's:__STDC_VERSION__ < 199901L.*:__STDC_VERSION__ < 199901L \&\& defined(__GNUC__) \&\& __GNUC__ < 3 \&\& !defined(__INTEL_COMPILER):g' \
- </usr/include/stdbool.h \
- >${WRKSRC}/opt/${COMPILERDIR}/include/stdbool.h
-.endif
-.if ( ${OSVERSION} >= 500042 )
OBJCOPY_OPS= --redefine-sym stdin=__stdinp \
--redefine-sym stdout=__stdoutp \
--redefine-sym stderr=__stderrp
-.endif
do-build:
# Use the Linux ABI for the binaries
@@ -196,14 +150,6 @@ do-build:
# Fix unresolved references
@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \
${FILESDIR}/errno_location.c ${FILESDIR}/mcount.S
-.if ( ${OSVERSION} < 502101 )
- @cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c
-.endif
-.if ( ${OSVERSION} < 500042 )
- @${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
-.endif
.for i in libcxa.a libcxaguard.a libimf.a libirc.a libirc_s.a libsvml.a \
libunwind.a
@${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
diff --git a/lang/icc/pkg-plist b/lang/icc/pkg-plist
index 243c5e48e42e..cfc34c58f1a2 100644
--- a/lang/icc/pkg-plist
+++ b/lang/icc/pkg-plist
@@ -910,18 +910,12 @@
%%COMPILERDIR%%/include/fvec.h
%%COMPILERDIR%%/include/ivec.h
%%COMPILERDIR%%/include/ia32intrin.h
-%%MACHINE__TYPES_H%%%%COMPILERDIR%%/include/machine/_types.h
-%%MACHINE__TYPES_H%%@dirrm %%COMPILERDIR%%/include/machine
%%COMPILERDIR%%/include/mathimf.h
%%COMPILERDIR%%/include/mmintrin.h
%%COMPILERDIR%%/include/pgouser.h
%%COMPILERDIR%%/include/pmmintrin.h
%%COMPILERDIR%%/include/proto.h
%%COMPILERDIR%%/include/sse2mmx.h
-%%STDARG_H%%%%COMPILERDIR%%/include/stdarg.h
-%%STDBOOL_H%%%%COMPILERDIR%%/include/stdbool.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