2002-03-26 17:01:09 +00:00
# New ports collection makefile for: icc
# Date created: 24.Jan.2002
# Whom: netchild@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME = icc
2002-07-13 14:57:15 +00:00
PORTVERSION = 6.0.159
2002-03-26 17:01:09 +00:00
CATEGORIES = lang linux
2002-06-08 10:16:20 +00:00
MASTER_SITES =
2002-07-13 14:57:15 +00:00
DISTNAME = l_cc_pu_6.0.159
2002-03-26 17:01:09 +00:00
EXTRACT_SUFX = .tar
MAINTAINER = netchild@FreeBSD.org
BUILD_DEPENDS = rpm2cpio:${ PORTSDIR } /archivers/rpm2cpio
RESTRICTED = Intel forbids any redistribution
2002-04-16 15:03:49 +00:00
NO_PACKAGE = ${ RESTRICTED }
NO_CDROM = ${ RESTRICTED }
2002-03-26 17:01:09 +00:00
ONLY_FOR_ARCHS = i386
2002-05-28 03:22:32 +00:00
USE_LINUX = yes
2002-04-16 15:03:49 +00:00
NO_WRKSUBDIR = yes
2002-03-26 17:01:09 +00:00
NO_BUILD = yes
NO_FILTER_SHLIBS = yes
2002-06-08 10:16:20 +00:00
ICC_SITE = http://www.intel.com/software/products/compilers/
2002-03-26 17:01:09 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2002-03-31 19:00:05 +00:00
ICCCFGVAL != ${ UNAME } -r | ${ SED } -e 's/\..*//'
2002-06-14 15:54:18 +00:00
. 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 } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2002-07-01 17:25:31 +00:00
IGNORE = " Please manually download ${ DISTFILES } from ${ ICC_SITE } , e.g. from ${ ICC_SITE } c60l/noncom.htm or from https://premier.intel.com/. Put it into ${ DISTDIR } and run make again. "
2002-03-26 17:01:09 +00:00
. e n d i f
post-extract :
2002-04-16 15:03:49 +00:00
. f o r i i n \
2002-07-13 14:57:15 +00:00
intel-icc6-6.0-159.i386.rpm \
# intel-ildb6-6.0-228.i386.rpm \
# intel-isubh6-6.0-159.i386.rpm \
# intel-ecc6-6.0-159.ia64.rpm \
# intel-eldb6-6.0-228.ia64.rpm \
# intel-esubh6-6.0-159.ia64.rpm
2002-05-13 13:58:21 +00:00
@cd ${ WRKSRC } ; rpm2cpio ${ i } | cpio -idu --quiet
2002-03-26 17:01:09 +00:00
. e n d f o r
pre-patch :
2002-05-14 13:15:20 +00:00
# Allow everyone to use it
2002-03-26 17:01:09 +00:00
@${ CHMOD } a+rx ${ WRKSRC } /opt
2002-05-14 13:15:20 +00:00
# Remove unneded/unsafe access rights
2002-03-26 17:01:09 +00: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
2002-05-13 13:58:21 +00:00
@${ FIND } ${ WRKSRC } /opt/intel/compiler60/${ i } -type f -print0 | \
2002-03-26 17:01:09 +00:00
xargs -0 ${ CHMOD } a-x,g-w
. e n d f o r
@${ FIND } ${ WRKSRC } /opt -type d -print0 | xargs -0 ${ CHMOD } go-w
2002-05-14 13:15:20 +00:00
# Use the Linux ABI for the binaries
2002-05-13 13:58:21 +00:00
. f o r i i n I N T E L 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 l m g r d . i n t e l l m u t i l m c p c o m \
profmerge proforder xiar xild
@brandelf -t Linux ${ WRKSRC } /opt/intel/compiler60/ia32/bin/${ i }
2002-03-26 17:01:09 +00:00
. e n d f o r
post-patch :
2002-05-14 13:15:20 +00:00
# Correct some paths and patch some files
2002-05-13 13:58:21 +00: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 . c f g i a 3 2 / b i n / i c c v a r s . c s h \
2002-06-08 10:16:20 +00:00
ia32/bin/iccvars.sh ia32/bin/icpc ia32/bin/icpc.cfg docs/csupport
@${ SED } 's@export -n IA32ROOT; unset IA32ROOT;@@g; s@-a "<INSTALLDIR>/compiler60/ia32/bin/icc" @@g; s@-a "<INSTALLDIR>/compiler60/ia32/bin/icpc" @@g; s@\<INSTALLDIR\>@${PREFIX}/intel@g; s@-tp p6@@; s@man -w@manpath -q@g; s:\<INSTALLTIMECOMBOPACKAGEID\>:Intel(R) C++ Compiler for Linux:g' \
2002-05-13 13:58:21 +00:00
${ WRKSRC } /opt/intel/compiler60/${ i } \
>${ WRKSRC } /opt/intel/compiler60/${ i } .seded
@${ MV } -f ${ WRKSRC } /opt/intel/compiler60/${ i } .seded \
${ WRKSRC } /opt/intel/compiler60/${ i }
@${ CHMOD } 755 ${ WRKSRC } /opt/intel/compiler60/${ i }
2002-03-31 19:00:05 +00:00
. e n d f o r
2002-05-14 13:15:20 +00:00
# Remove unneeded files
2002-05-13 13:58:21 +00:00
@${ RM } ${ WRKSRC } /opt/intel/compiler60/ia32/include/yvals.h.orig
2002-03-26 17:01:09 +00:00
. i f d e f i n e d ( N O P O R T D O C S )
2002-05-13 13:58:21 +00:00
@${ RM } -rf ${ WRKSRC } /opt/intel/compiler60/docs
2002-03-26 17:01:09 +00:00
. e n d i f
2002-05-14 13:15:20 +00:00
# Provide a more FreeBSD'ish compile environment
2002-05-13 13:58:21 +00:00
@${ ECHO } -e " \n-Ulinux\n-U__linux__\n-U__linux\n\n-D__FreeBSD__= ${ ICCCFGVAL } \n-D__ELF__=1\n " >>${ WRKSRC } /opt/intel/compiler60/ia32/bin/icc.cfg
# \n-Qlocation,ld,/usr/bin\n\n-sox-\n
2002-05-14 13:15:20 +00:00
# Some magic to be able to link
@${ SED } 's:@@PREFIX@@:${PREFIX}:g' ${ FILESDIR } /ld >${ WRKSRC } /opt/intel/compiler60/ia32/bin/ld
@${ CHMOD } 755 ${ WRKSRC } /opt/intel/compiler60/ia32/bin/ld
@${ MKDIR } ${ WRKSRC } /opt/intel/compiler60/ia32/bin/real
# Do not use the linux ld if it exists
@${ LN } -s /usr/bin/ld ${ WRKSRC } /opt/intel/compiler60/ia32/bin/real
2002-03-26 17:01:09 +00:00
do-install :
2002-05-14 13:15:20 +00:00
@cd ${ WRKSRC } /opt && ${ TAR } -cf - . | \
2002-03-26 17:01:09 +00:00
${ TAR } -xf - -C ${ PREFIX }
post-install :
@${ ECHO_CMD } " ${ PKGNAME } is now installed in ${ PREFIX } /intel, to use it you have to "
2002-05-13 13:58:21 +00:00
@${ ECHO_CMD } " put your license into your \$ ${ INTEL_FLEXLM_LICENSE } (default: "
2002-05-14 13:15:20 +00:00
@${ ECHO_CMD } " ${ PREFIX } /intel/licenses) directory and add "
@${ ECHO_CMD } " ${ PREFIX } /intel/compiler60/ia32/bin to your PATH. "
2002-03-26 17:01:09 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >