2002-03-26 18:01:09 +01:00
# New ports collection makefile for: icc
# Date created: 24.Jan.2002
# Whom: netchild@FreeBSD.org
#
# $FreeBSD$
#
2004-01-11 16:34:17 +01:00
PORTNAME = icc7
2004-10-16 19:04:51 +02:00
PORTVERSION = 7.1.042
Say hello to the linux mega patch, it consolidates our linux bits a
little bit and allows to proceed to a more recent linux_base from
a stable (read as: the major bugs should be ironed out or identified
and most linux ports build just fine) source.
It also allows to ship 4.11 with a working linuxolator (the EOLed
linux_base is marked forbidden because of a security hole).
This is a major update, please read UPDATING (and CHANGES if you
develop linux ports).
Changes:
- change the default linux_base from v7 to v8
- add a newer freetype to linux_base-8 for nicer fonts display [1]
- don't let cpio use hardlinks in the linux_base-8 port to quiet some
warnings in some cases [2]
- fix a cut&past error in the linux_base-8 pkg-install script [3]
- convert the binary knob "USE_LINUX" to a version specifier, e.g.
USE_LINUX=<value> specifies a dependency upon
emulators/linux_base-<value>, exceptions are a value of "7" (which
does what you want and adds a dependency to linux_base) and any
value without a corresponding port in
PORTSDIR/emulators/linux_base-<value> (which adds a dependency to
the default linux_base)
- don't implicitly add USE_LINUX with the USE_LINUX_PREFIX knob,
this allows us to use the USE_LINUX_PREFIX knob for linux_base and
paves the way for splitting up future linux base ports into
individual pieces
- remove RESTRICTED from some GPL licensed ports, even when we only
distribute binaries, we get them from official linux sites, so
anyone can grab them there if he needs to
- add a dependency upon the linux X11 bits where necessary (based upon
guesswork)
- don't use USE_X_PREFIX in some linux ports since it adds a dependency
to the FreeBSD X11 libs, as a workaround use PREFIX?= (the clean
solution would be to remove the implicit USE_XLIB from USE_X_PREFIX)
- bump the portrevision of the linux ports ("better safe than sorry"
algorithm)
- pass maintainership of the important linux infrastructure to a
mailinglist, hijack freebsd-emulation@ for this purpose (if somebody
doesn't like this: tell us your bikeshed color at freebsd-emulation@,
my color would be "linuxolator@" in case someone cares...)
- add a pkg-install script for linux-fontconfig, but don't use it;
everything should work without it (the FreeBSD fc-cache program should
do all the work), but in case we need it we just need to decomment the
pkg-install part in the Makefile
- fix some dependencies
- fix some bugs
- add some static plists
- unbreak the ports with dependecies to more than one linux_base
This also fixes some ports which are marked BROKEN because of dependencies
to v7 and v8 of linux_base at the same time.
Known bugs:
- the linux-mesa and linux-devtools ports install libGL*.so symlinks
- some "minor" plist bugs (e.g. ld.so.{conf,cache} are modified by
the linux X11 port, so linx_Base-8 moans at deinstall time)
Future work (interested souls should coordinate with freebsd-emulation@):
- add some kind of USE_LINUX_X11 knob to streamline the X11 dependencies,
or modify the behavior of USE_XLIB in the USE_LINUX case
AFAIK trevor has some patches.
- make USE_XLIB and USE_X_PREFIX orthogonal to be able to get rid of
the PREFIX?= workaround in some linux ports
Should be discussed/coordinated on/with x11@.
- move the RPM bits from x11-toolkits/linux-gtk/Makefile to PORTSDIR/Mk/
- update to a more recent linux base
PR: 69997, 70539 (and maybe others)
Discussed with/on: java@, x11@, trevor, portmgr
Tested by: mezz, portmgr, pointyhat
RPM hunted down by: Joseph Gelinas <scirocco@tasam.com> [1]
Requested by: portmgr [2]
Submitted by: kris [3]
Approved by: portmgr
2004-12-31 19:24:10 +01:00
PORTREVISION = 1
2002-08-20 12:01:58 +02:00
CATEGORIES = lang linux devel
2002-06-08 12:16:20 +02:00
MASTER_SITES =
2003-06-04 20:37:07 +02:00
DISTNAME = l_cc_pc_${ PORTVERSION }
2002-03-26 18:01:09 +01:00
EXTRACT_SUFX = .tar
MAINTAINER = netchild@FreeBSD.org
2003-03-28 11:45:57 +01:00
COMMENT = Intels C/C++ compiler, set up to produce native FreeBSD binaries
2002-03-26 18:01:09 +01:00
2003-12-12 14:43:05 +01:00
EXTRACT_DEPENDS = rpm2cpio.pl:${ PORTSDIR } /archivers/rpm2cpio
2002-03-26 18:01:09 +01:00
RESTRICTED = Intel forbids any redistribution
ONLY_FOR_ARCHS = i386
2003-08-15 15:00:08 +02:00
CONFLICTS = linux_devtools* ifc*
2002-03-26 18:01:09 +01:00
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
- If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
be marked as IGNORE. [1]
- Readd USE_LINUX knobs into several ports and make several uses of a
conditional dependency ("USE_LINUX?=") into an unconditional one
("USE_LINUX=") which where removed/changed by Trevor to allow the use of
alternative linux_base ports. While this is a nice goal, the implementation
resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
in this commit is supposed to fix the problem while keeping the feature.
Basicaly this includes a backout of Trevor's commit, to prevent confusion
I mention it here explicitely.
- Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
Chase dependencies for this.
- Changes to make linux_devtools installable on amd64, remove some stray
device nodes (they don't work on recent OS versions and aren't really
needed).
- Make linux_base-8 PREFIX clean and remove some stray device nodes.
Additionally tell a little bit more about how to setup NIS/YP [2].
- Update the PGSQL dependency in the linux-opengroupware port to a recent
version (the old one isn't available anymore), I don't know if this
works (at least it isn't more broken than before).
- Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
ports, the former path exists already and gets populated by other
packages too (PREFIX=LINUXPREFIX!).
- Fix some obvious (non-linuxolator) bugs in some linux ports while being
there.
- Bump PORTREVISION where neccesary.
Requested by: portmgr (linimon) [1]
Submittted by: Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by: portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on: ports cluster (kris)
Reviewed by: silence on emulation@
Superseedes PR: 69997
Maintainer approval from:
chris@chrisburkert.de
cracauer@cons.org
des
girgen
jamie@bishopston.net
mezz
mi
nivit@users.sf.net
pat
simond@irrelevant.org
riggs@rrr.de
Udo.Schweigert@Siemens.com
2005-06-18 00:59:29 +02:00
USE_LINUX = yes
2002-04-16 17:03:49 +02:00
NO_WRKSUBDIR = yes
2002-03-26 18:01:09 +01:00
2003-01-11 18:21:41 +01:00
COMPILERDIR = compiler70
PLIST_SUB = COMPILERDIR = ${ COMPILERDIR }
PATCH_WRKSRC = ${ WRKSRC } /opt/intel/${ COMPILERDIR }
MAN1 = icc.1
2006-08-04 14:34:50 +02:00
MANPREFIX = ${ TARGETDIR } /intel/${ COMPILERDIR } /
2002-08-20 12:01:58 +02:00
2002-06-08 12:16:20 +02:00
ICC_SITE = http://www.intel.com/software/products/compilers/
2002-03-26 18:01:09 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2003-10-22 15:21:30 +02:00
EXTRACT_AFTER_ARGS = | tar -xf - \
2004-02-01 14:37:13 +01:00
--exclude intel-iidb\* .rpm \
2003-10-22 15:21:30 +02:00
--exclude intel-isubh\* .rpm \
--exclude \* ia64.rpm \
--exclude flexlm64
2002-03-31 21:00:05 +02:00
ICCCFGVAL != ${ UNAME } -r | ${ SED } -e 's/\..*//'
2004-03-13 11:33:18 +01:00
. i f ( $ { O S V E R S I O N } < 5 0 2 1 0 8 )
PLIST_SUB += STDARG_H = "" SYS_CDEFS_H = ""
. e l s e
PLIST_SUB += STDARG_H = "@comment " SYS_CDEFS_H = "@comment "
. e n d i f
2002-11-08 16:59:38 +01:00
2004-01-11 16:34:17 +01:00
. f o r f i l e i n $ { D I S T N A M E }
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T _ S U B D I R } / $ { f i l e } $ { E X T R A C T _ S U F X } )
2003-10-11 12:59:45 +02:00
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 "
2002-03-26 18:01:09 +01:00
. e n d i f
2004-01-11 16:34:17 +01:00
. e n d f o r
2002-03-26 18:01:09 +01:00
2002-11-08 21:17:54 +01:00
. i f e x i s t s ( $ { L I N U X B A S E } / b o o t / k e r n e l . h ) | | \
2003-01-11 18:21:41 +01:00
exists( ${ PREFIX } /intel/compiler60/bin/ifc) || \
exists( ${ PREFIX } /intel/compiler70/bin/ifc)
2002-11-13 15:39:52 +01:00
BROKEN = Cannot coexist with linux_devtools or ifc
2002-11-08 21:17:54 +01:00
. e n d i f
2002-03-26 18:01:09 +01:00
post-extract :
2003-01-11 18:21:41 +01:00
@${ SED } 's:%%COMPILERDIR%%:${COMPILERDIR}:' ${ FILESDIR } /cpio-exclude \
>${ WRKDIR } /cpio-exclude
2002-11-08 16:59:38 +01:00
. i f d e f i n e d ( N O P O R T D O C S )
2003-01-11 18:21:41 +01:00
@${ SED } 's:%%COMPILERDIR%%:${COMPILERDIR}:' \
${ FILESDIR } /cpio-exclude_noportdocs >>${ WRKDIR } /cpio-exclude
2002-11-08 16:59:38 +01:00
. e n d i f
2004-03-20 17:16:37 +01:00
@cd ${ WRKSRC } && rpm2cpio.pl 2>/dev/null *.rpm | \
2003-03-28 11:45:57 +01:00
${ CPIO } -idfuE ${ WRKDIR } /cpio-exclude --quiet
2002-03-26 18:01:09 +01:00
pre-patch :
2002-05-14 15:15:20 +02:00
# Allow everyone to use it
2002-03-26 18:01:09 +01:00
@${ CHMOD } a+rx ${ WRKSRC } /opt
2002-08-20 12:01:58 +02:00
# Remove unneeded/unsafe access rights
2002-03-26 18:01:09 +01:00
. f o r i i n d o c s i a 3 2 / i n c l u d e i a 3 2 / l i b
2003-01-11 18:21:41 +01:00
@${ FIND } ${ WRKSRC } /opt/intel/${ COMPILERDIR } /${ i } -type f -print0 | \
2003-11-13 14:30:42 +01:00
${ XARGS } -0 ${ CHMOD } a-x,g-w
2002-03-26 18:01:09 +01:00
. e n d f o r
2003-11-13 14:30:42 +01:00
@${ FIND } ${ WRKSRC } /opt -type d -print0 | ${ XARGS } -0 ${ CHMOD } go-w
2003-01-11 18:21:41 +01:00
@${ CHMOD } a-x ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/Errormatch.txt
2002-05-14 15:15:20 +02:00
# Use the Linux ABI for the binaries
2003-01-11 18:21:41 +01:00
. f o r i i n i c c b i n i c c f i l t i c i d i c p c b i n i c p i m c p c o m p r o f m e r g e p r o f o r d e r x i a r x i l d
2004-03-13 11:33:18 +01:00
@${ BRANDELF } -t Linux ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2002-03-26 18:01:09 +01:00
. e n d f o r
post-patch :
2002-05-14 15:15:20 +02:00
# Correct some paths and patch some files
2003-01-11 18:21:41 +01:00
. f o r i i n i a 3 2 / b i n / i c c i a 3 2 / b i n / i c c v a r s . c s h i a 3 2 / b i n / i c c v a r s . s h i a 3 2 / b i n / i c p c
2004-01-11 16:34:17 +01:00
@${ REINPLACE_CMD } -i "" -e ' s:%%ICC_LOCALBASE%%:${ LOCALBASE } :g; \
s@\< INSTALLDIR\> @${ PREFIX } /intel@g; s@man -w@manpath -q@g' \
2003-01-11 18:21:41 +01:00
${ WRKSRC } /opt/intel/${ COMPILERDIR } /${ i }
@${ CHMOD } 755 ${ WRKSRC } /opt/intel/${ COMPILERDIR } /${ i }
2002-08-20 12:01:58 +02:00
. e n d f o r
2003-01-11 18:21:41 +01:00
@${ REINPLACE_CMD } -i "" -e 's:\<INSTALLTIMECOMBOPACKAGEID\>:${DISTNAME}:g' \
${ WRKSRC } /opt/intel/${ COMPILERDIR } /docs/csupport
@${ RM } ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/include/*.orig
2002-11-08 16:59:38 +01:00
. f o r i i n i c c . o r i g i c p c . o r i g
2003-01-11 18:21:41 +01:00
@${ RM } ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2002-08-20 12:01:58 +02:00
. e n d f o r
2002-05-14 15:15:20 +02:00
# Provide a more FreeBSD'ish compile environment
2002-08-04 22:40:14 +02:00
. f o r i i n i c c . c f g i c p c . c f g
2003-01-11 18:21:41 +01:00
@${ REINPLACE_CMD } -i "" -e 's:-Xlinker -rpath -Xlinker <INSTALLDIR>/${COMPILERDIR}/ia32/lib::g' \
${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2004-02-01 14:37:13 +01:00
@${ 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 }
2004-03-13 11:33:18 +01:00
. i f ( $ { O S V E R S I O N } > = 5 0 0 0 3 9 )
2004-02-01 14:37:13 +01:00
@${ ECHO_CMD } -e "-D__wchar_t=__ct_rune_t\n" >>${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2004-03-13 11:33:18 +01:00
. e n d i f
. i f ( $ { O S V E R S I O N } > = 5 0 2 1 0 8 )
@${ ECHO_CMD } -e "-restrict\n" >>${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2003-01-11 18:21:41 +01:00
. e n d i f
@${ CHMOD } a-x,g-w ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/${ i }
2002-08-04 22:40:14 +02:00
. e n d f o r
2002-09-17 14:10:46 +02:00
# C++ hack for icpc
2004-02-01 14:37:13 +01:00
@${ ECHO_CMD } -e " \n-I ${ PREFIX } /include/stlport\n-Qoption,ld,-CPLUSPLUS\n " >>${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/icpc.cfg
2003-01-11 18:21:41 +01:00
@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.
2004-03-13 11:33:18 +01:00
. i f ( $ { O S V E R S I O N } < 5 0 2 1 0 8 )
2003-01-11 18:21:41 +01:00
@${ CP } ${ FILESDIR } /stdarg.h ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/include
2004-03-13 11:33:18 +01:00
. e l s e
@${ RM } -rf ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/include/sys
. e n d i f
2002-09-17 14:10:46 +02:00
2003-10-22 15:21:30 +02:00
. i f ( $ { O S V E R S I O N } > = 4 7 0 1 0 1 & & $ { O S V E R S I O N } < 5 0 0 0 0 0 ) | | \
( ${ OSVERSION } >= 500042 )
OBJCOPY_OPS = --redefine-sym stdin = __stdinp \
--redefine-sym stdout = __stdoutp \
--redefine-sym stderr = __stderrp
. e n d i f
2002-09-17 14:10:46 +02:00
do-build :
2002-09-22 15:05:51 +02:00
# Fix unresolved references
@cd ${ WRKSRC } && ${ CC } ${ CFLAGS } -c ${ FILESDIR } /assert_fail.c \
2002-11-08 16:59:38 +01:00
${ FILESDIR } /errno_location.c ${ FILESDIR } /mcount.S
2003-12-22 16:03:23 +01:00
. i f ( $ { O S V E R S I O N } < 5 0 2 1 0 1 )
2004-03-20 17:16:37 +01:00
@cd ${ WRKSRC } && ${ CC } ${ CFLAGS } -c ${ FILESDIR } /cxa_atexit.c
2003-12-22 16:03:23 +01:00
. e n d i f
2002-11-13 15:39:52 +01:00
. i f ( $ { O S V E R S I O N } < 4 7 0 1 0 1 ) | | \
( ${ OSVERSION } >= 500000 && ${ OSVERSION } < 500042 )
2003-01-11 18:21:41 +01:00
@${ CC } ${ CFLAGS } -c -o ${ WRKSRC } /stdin.o ${ FILESDIR } /stdin.c
@${ CC } ${ CFLAGS } -c -o ${ WRKSRC } /stdout.o ${ FILESDIR } /stdout.c
2002-11-08 16:59:38 +01:00
@${ CC } ${ CFLAGS } -c -o ${ WRKSRC } /stderr.o ${ FILESDIR } /stderr.c
2003-10-22 15:21:30 +02:00
. e n d i f
2003-02-10 15:04:11 +01:00
. f o r i i n l i b c x a . a l i b i m f . a l i b i r c . a l i b i r c m t . a l i b u n w i n d . a
2003-08-22 13:20:38 +02:00
@${ OBJCOPY } --redefine-sym __sigsetjmp = sigsetjmp \
2003-10-22 15:21:30 +02:00
${ OBJCOPY_OPS } \
2003-01-11 18:21:41 +01:00
${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/lib/${ i }
2002-11-08 16:59:38 +01:00
. e n d f o r
2003-01-11 18:21:41 +01:00
@${ AR } q ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/lib/libcxa.a ${ WRKSRC } /*.o
2002-05-14 15:15:20 +02:00
# Some magic to be able to link
2003-01-11 18:21:41 +01:00
@${ MKDIR } ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/ldwrapper
@${ CC } ${ CFLAGS } -o \
${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/ldwrapper/ld \
${ FILESDIR } /ld.c
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
- If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
be marked as IGNORE. [1]
- Readd USE_LINUX knobs into several ports and make several uses of a
conditional dependency ("USE_LINUX?=") into an unconditional one
("USE_LINUX=") which where removed/changed by Trevor to allow the use of
alternative linux_base ports. While this is a nice goal, the implementation
resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
in this commit is supposed to fix the problem while keeping the feature.
Basicaly this includes a backout of Trevor's commit, to prevent confusion
I mention it here explicitely.
- Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
Chase dependencies for this.
- Changes to make linux_devtools installable on amd64, remove some stray
device nodes (they don't work on recent OS versions and aren't really
needed).
- Make linux_base-8 PREFIX clean and remove some stray device nodes.
Additionally tell a little bit more about how to setup NIS/YP [2].
- Update the PGSQL dependency in the linux-opengroupware port to a recent
version (the old one isn't available anymore), I don't know if this
works (at least it isn't more broken than before).
- Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
ports, the former path exists already and gets populated by other
packages too (PREFIX=LINUXPREFIX!).
- Fix some obvious (non-linuxolator) bugs in some linux ports while being
there.
- Bump PORTREVISION where neccesary.
Requested by: portmgr (linimon) [1]
Submittted by: Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by: portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on: ports cluster (kris)
Reviewed by: silence on emulation@
Superseedes PR: 69997
Maintainer approval from:
chris@chrisburkert.de
cracauer@cons.org
des
girgen
jamie@bishopston.net
mezz
mi
nivit@users.sf.net
pat
simond@irrelevant.org
riggs@rrr.de
Udo.Schweigert@Siemens.com
2005-06-18 00:59:29 +02:00
# We can't use STRIP_CMD, since we need the FreeBSD one, not the Linux one.
@/usr/bin/strip ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/ldwrapper/ld
2003-01-11 18:21:41 +01:00
@${ CHMOD } 755 ${ WRKSRC } /opt/intel/${ COMPILERDIR } /ia32/bin/ldwrapper/ld
2002-03-26 18:01:09 +01:00
do-install :
2003-03-28 11:45:57 +01:00
@cd ${ WRKSRC } /opt && ${ FIND } . -print | \
${ CPIO } -pdu -R ${ BINOWN } :${ BINGRP } --quiet ${ PREFIX }
2002-03-26 18:01:09 +01:00
post-install :
2004-02-01 14:37:13 +01:00
@${ ECHO } " ${ PKGNAME } is now installed in ${ PREFIX } /intel, to use it you have to "
@${ ECHO } " put your license into your \$ ${ INTEL_FLEXLM_LICENSE } (default: "
@${ ECHO } " ${ PREFIX } /intel/licenses) directory and add "
@${ ECHO } " ${ PREFIX } /intel/ ${ COMPILERDIR } /ia32/bin to your PATH. "
@${ ECHO }
@${ ECHO } "In order to be able to compile C++ source with icpc you have to install"
@${ ECHO } "devel/stlport-icc."
@${ ECHO }
@${ ECHO } "If you use icc on a Pentium 4 make sure you have 'options CPU_ENABLE_SSE'"
@${ ECHO } "in your kernel config (have a look at http://www.FreeBSD.org/handbook/"
@${ ECHO } "if you do not know how to do this), else icc will hang forever."
@${ ECHO }
@${ ECHO } "WARNING: If you use icc while having linux_devtools installed, icc will use"
@${ ECHO } "the wrong includes and therefore will generate bogus (not working) binaries!"
@${ ECHO }
@${ ECHO } "If you encounter further problems with icc please consult the errata at"
@${ ECHO } "http://support.intel.com/support/performancetools/c/C_Compiler_Errata.htm"
@${ ECHO } "first."
@${ ECHO }
@${ ECHO } "Call for benchmarks:"
@${ ECHO } "Intel is interested to see some benchmark numbers which compare gcc with icc."
@${ ECHO } "If you have a CPU produced by Intel and are able to do benchmarks with"
@${ ECHO } "either your own source or with one of our major ports (e.g. with"
@${ ECHO } "a webserver, a mailserver, a database system, an important graphics"
@${ ECHO } "suite/program or some important math tool, ...) please try to spend some time"
@${ ECHO } " to do a benchmark and send me ( ${ MAINTAINER } ) the result. You should "
@${ ECHO } "include your system specs (CPU: speed/model, RAM: amount/speed, used disks"
@${ ECHO } "(if necessary), chipset/mainboard type, ...), the version of the used"
@${ ECHO } "software (OS, gcc, icc, ...), non default tuning options (kernel, sysctl) and"
@${ ECHO } "the used compiler switches. If you don't use some 'standard' benchmark"
@${ ECHO } "(e.g. the official MySQL benchmark, or the performance test suite of your"
@${ ECHO } "prefered scripting language), please include a description about the"
@${ ECHO } "benchmark too."
@${ ECHO }
@${ ECHO } "Please use FreeBSD as the name of your OS in communications with the support,"
@${ ECHO } "the larger the FreeBSD userbase is, the more work gets done on FreeBSD"
@${ ECHO } "specific issues by Intel. And please thank them for the FreeBSD support,"
@${ ECHO } "they are already spending some time to improve icc on FreeBSD."
@${ ECHO }
@${ ECHO } "To read the entire post install message again, just run"
@${ ECHO } "'make post-install | less'."
2002-03-26 18:01:09 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >