diff options
author | netchild <netchild@FreeBSD.org> | 2005-02-13 18:20:59 +0800 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2005-02-13 18:20:59 +0800 |
commit | 81bb01b7ac25daaf04b81cae90edb977b84100ff (patch) | |
tree | d86f9b920f57d4894d2fa7f12df6e4ff669cbc84 /lang | |
parent | f41d735f64120611bc65513af917b777b1cef5bd (diff) | |
download | freebsd-ports-gnome-81bb01b7ac25daaf04b81cae90edb977b84100ff.tar.gz freebsd-ports-gnome-81bb01b7ac25daaf04b81cae90edb977b84100ff.tar.zst freebsd-ports-gnome-81bb01b7ac25daaf04b81cae90edb977b84100ff.zip |
Fix a system (all supported OS versions) header (stdbool.h) for the use with
icc.
Hint by: Ulrich Spoerlein <q@uni.de>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/icc/Makefile | 7 | ||||
-rw-r--r-- | lang/icc/pkg-plist | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lang/icc/Makefile b/lang/icc/Makefile index fb6dc7294d3e..cd7b248eb23f 100644 --- a/lang/icc/Makefile +++ b/lang/icc/Makefile @@ -7,6 +7,7 @@ PORTNAME= icc PORTVERSION= 8.1.026 +PORTREVISION= 1 CATEGORIES= lang linux devel MASTER_SITES= DISTNAME= l_cc_pc_${PORTVERSION:C/p.+$//} @@ -169,6 +170,10 @@ post-patch: @${MKDIR} ${WRKSRC}/opt/${COMPILERDIR}/include/machine @${CP} ${FILESDIR}/_types.h ${WRKSRC}/opt/${COMPILERDIR}/include/machine .endif +# 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 .if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \ ( ${OSVERSION} >= 500042 ) @@ -224,7 +229,7 @@ post-install: @${ECHO} @${ECHO} "On FreeBSD 5 with __FreeBSD_version >= 502108 icpc is set up to use the GNU libstdc++ from the base as STL by default. Alternatively you can use the \"-cxxlib-icc\" option with icpc to use devel/stlport-icc as STL instead. In order to be able to compile C++ source with icpc on FreeBSD 4 or FreeBSD 5 with __FreeBSD_version < 502108 you have to install devel/stlport-icc. No further options to icpc to use devel/stlport-icc are required there." | fmt @${ECHO} - @${ECHO} "If you use icc on a Pentium 4 you may have to use 'options CPU_ENABLE_SSE' (depending on the OS version, if in doubt try if it works) in your kernel config (have a look at http://www.FreeBSD.org/handbook/ if you do not know how to do this), else icc will hang forever." | fmt + @${ECHO} "If you use icc on a Pentium 4 you may have to use 'options CPU_ENABLE_SSE' (depending on the OS version, if in doubt try if it works) in your kernel config (have a look at http://www.FreeBSD.org/handbook/ if you do not know how to do this), else icc will hang forever or crashes with an 'Illegal instruction'." | fmt @${ECHO} @${ECHO} "WARNING: If you use icc while having linux_devtools installed, icc will use the wrong includes and therefore will generate bogus (not working) binaries!" | fmt @${ECHO} diff --git a/lang/icc/pkg-plist b/lang/icc/pkg-plist index 6170d089ae0a..fa00166b5340 100644 --- a/lang/icc/pkg-plist +++ b/lang/icc/pkg-plist @@ -922,6 +922,7 @@ %%COMPILERDIR%%/include/proto.h %%COMPILERDIR%%/include/sse2mmx.h %%STDARG_H%%%%COMPILERDIR%%/include/stdarg.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 |