head	1.54;
access;
symbols
	RELEASE_8_3_0:1.52
	RELEASE_9_0_0:1.52
	RELEASE_7_4_0:1.52
	RELEASE_8_2_0:1.52
	RELEASE_6_EOL:1.52
	RELEASE_8_1_0:1.52
	RELEASE_7_3_0:1.51
	RELEASE_8_0_0:1.51
	RELEASE_7_2_0:1.51
	RELEASE_7_1_0:1.50
	RELEASE_6_4_0:1.50
	RELEASE_5_EOL:1.50
	RELEASE_7_0_0:1.50
	RELEASE_6_3_0:1.50
	PRE_XORG_7:1.48
	RELEASE_4_EOL:1.47
	RELEASE_6_2_0:1.47
	RELEASE_6_1_0:1.42
	RELEASE_5_5_0:1.42
	RELEASE_6_0_0:1.40
	RELEASE_5_4_0:1.37
	RELEASE_4_11_0:1.36
	RELEASE_5_3_0:1.34
	RELEASE_4_10_0:1.29
	RELEASE_5_2_1:1.20
	RELEASE_5_2_0:1.20
	RELEASE_4_9_0:1.16
	RELEASE_5_1_0:1.15
	RELEASE_4_8_0:1.13
	RELEASE_5_0_0:1.12
	RELEASE_4_7_0:1.6;
locks; strict;
comment	@# @;


1.54
date	2013.03.19.15.07.13;	author svnexp;	state Exp;
branches;
next	1.53;

1.53
date	2012.11.17.05.58.51;	author svnexp;	state Exp;
branches;
next	1.52;

1.52
date	2010.06.13.08.40.01;	author erwin;	state Exp;
branches;
next	1.51;

1.51
date	2009.01.05.20.36.30;	author pav;	state Exp;
branches;
next	1.50;

1.50
date	2007.10.03.23.22.02;	author edwin;	state Exp;
branches;
next	1.49;

1.49
date	2007.08.04.11.40.59;	author gabor;	state Exp;
branches;
next	1.48;

1.48
date	2007.01.30.04.23.56;	author kris;	state Exp;
branches;
next	1.47;

1.47
date	2006.09.03.17.30.12;	author kris;	state Exp;
branches;
next	1.46;

1.46
date	2006.08.04.12.34.44;	author erwin;	state Exp;
branches;
next	1.45;

1.45
date	2006.06.21.08.29.30;	author maho;	state Exp;
branches;
next	1.44;

1.44
date	2006.05.09.20.52.15;	author edwin;	state Exp;
branches;
next	1.43;

1.43
date	2006.03.15.06.58.16;	author maho;	state Exp;
branches;
next	1.42;

1.42
date	2005.10.30.10.06.24;	author maho;	state Exp;
branches;
next	1.41;

1.41
date	2005.09.05.03.17.54;	author maho;	state Exp;
branches;
next	1.40;

1.40
date	2005.06.17.22.59.19;	author netchild;	state Exp;
branches;
next	1.39;

1.39
date	2005.06.17.05.04.21;	author maho;	state Exp;
branches;
next	1.38;

1.38
date	2005.04.13.15.14.26;	author glewis;	state Exp;
branches;
next	1.37;

1.37
date	2005.03.01.21.51.39;	author trevor;	state Exp;
branches;
next	1.36;

1.36
date	2004.12.31.18.23.59;	author netchild;	state Exp;
branches;
next	1.35;

1.35
date	2004.12.17.05.40.55;	author maho;	state Exp;
branches;
next	1.34;

1.34
date	2004.08.15.02.53.34;	author maho;	state Exp;
branches;
next	1.33;

1.33
date	2004.07.10.09.50.50;	author maho;	state Exp;
branches;
next	1.32;

1.32
date	2004.07.07.02.22.38;	author maho;	state Exp;
branches;
next	1.31;

1.31
date	2004.07.06.10.08.44;	author maho;	state Exp;
branches;
next	1.30;

1.30
date	2004.05.26.14.45.20;	author maho;	state Exp;
branches;
next	1.29;

1.29
date	2004.04.09.15.19.25;	author maho;	state Exp;
branches;
next	1.28;

1.28
date	2004.01.31.23.47.03;	author maho;	state Exp;
branches;
next	1.27;

1.27
date	2004.01.31.23.41.46;	author maho;	state Exp;
branches;
next	1.26;

1.26
date	2004.01.31.23.41.07;	author maho;	state Exp;
branches;
next	1.25;

1.25
date	2004.01.31.23.35.49;	author maho;	state Exp;
branches;
next	1.24;

1.24
date	2004.01.31.23.32.41;	author maho;	state Exp;
branches;
next	1.23;

1.23
date	2004.01.22.12.18.35;	author trevor;	state Exp;
branches;
next	1.22;

1.22
date	2004.01.19.13.44.47;	author maho;	state Exp;
branches;
next	1.21;

1.21
date	2003.12.12.13.43.04;	author netchild;	state Exp;
branches;
next	1.20;

1.20
date	2003.11.13.13.30.38;	author trevor;	state Exp;
branches;
next	1.19;

1.19
date	2003.10.24.23.17.46;	author maho;	state Exp;
branches;
next	1.18;

1.18
date	2003.10.08.00.04.36;	author maho;	state Exp;
branches;
next	1.17;

1.17
date	2003.10.03.22.49.46;	author maho;	state Exp;
branches;
next	1.16;

1.16
date	2003.07.12.04.17.57;	author maho;	state Exp;
branches;
next	1.15;

1.15
date	2003.05.08.22.15.37;	author maho;	state Exp;
branches;
next	1.14;

1.14
date	2003.04.28.22.17.47;	author maho;	state Exp;
branches;
next	1.13;

1.13
date	2003.03.07.06.05.31;	author ade;	state Exp;
branches;
next	1.12;

1.12
date	2002.11.22.09.55.03;	author maho;	state Exp;
branches;
next	1.11;

1.11
date	2002.11.19.22.57.51;	author maho;	state Exp;
branches;
next	1.10;

1.10
date	2002.11.18.13.24.50;	author maho;	state Exp;
branches;
next	1.9;

1.9
date	2002.11.18.09.27.32;	author maho;	state Exp;
branches;
next	1.8;

1.8
date	2002.11.11.12.49.58;	author netchild;	state Exp;
branches;
next	1.7;

1.7
date	2002.11.08.20.28.25;	author netchild;	state Exp;
branches;
next	1.6;

1.6
date	2002.09.22.12.03.30;	author netchild;	state Exp;
branches;
next	1.5;

1.5
date	2002.08.20.11.03.14;	author netchild;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.20.09.00.57;	author netchild;	state Exp;
branches;
next	1.3;

1.3
date	2002.07.21.15.43.41;	author netchild;	state Exp;
branches;
next	1.2;

1.2
date	2002.07.18.13.05.10;	author netchild;	state Exp;
branches;
next	1.1;

1.1
date	2002.07.08.03.14.41;	author demon;	state Exp;
branches;
next	;


desc
@@


1.54
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314605
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: NAKATA Maho <maho@@FreeBSD.org>
# $FreeBSD: head/lang/ifc/Makefile 314605 2013-03-18 21:56:30Z eadler $

PORTNAME=	ifc
PORTVERSION=	8.1.034
CATEGORIES=	lang linux devel
MASTER_SITES=
DISTNAME=	l_fc_pc_${PORTVERSION:C/p.+$//}

MAINTAINER=	maho@@FreeBSD.org
COMMENT=	Intel's Fortran compiler, set up to produce native FreeBSD binaries

PATCHLEVEL=	${PORTVERSION:C/(.+p)(.+)$/pe\2/}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
.if ${PORTVERSION} != ${PATCHLEVEL}
DISTFILES+=	${DISTNAME}_${PATCHLEVEL}${EXTRACT_SUFX}
PATCH_DEPENDS=		${LINUX_BASE_PORT}
.endif

EXTRACT_DEPENDS=	rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio

RESTRICTED=	Intel forbids any redistribution

ONLY_FOR_ARCHS=		i386
CONFLICTS=		linux_devtools*

USE_LINUX=		yes

COMPILERDIR=	intel_fc_80
PLIST_SUB=	COMPILERDIR=${COMPILERDIR}
PATCH_WRKSRC=	${WRKSRC}/opt/${COMPILERDIR}

MAN1=		ifort.1
MANPREFIX=	${PREFIX}/${COMPILERDIR}/

IFC_SITE=	http://www.intel.com/software/products/compilers/

.include <bsd.port.pre.mk>

EXTRACT_AFTER_ARGS=	| tar -xf - \
			--exclude intel-iidb\*.rpm \
			--exclude \*ia64.rpm \
			--exclude chklic.64 \
			--exclude flexlm64

IFCCFGVAL!=	${UNAME} -r | ${SED} -e 's/\..*//'

.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 ${IFC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again
.endif
.endfor

.if exists(${LINUXBASE}/boot/kernel.h)
BROKEN=	Cannot coexist with linux_devtools
.endif

post-extract:
	@@cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null *.rpm | ${CPIO} -idu --quiet

intel-patch: extract
# Apply patches from Intel.
.if ${PORTVERSION} != ${PATCHLEVEL}
	@@${BRANDELF} -t Linux ${WRKSRC}_${PATCHLEVEL}/papply
	@@${WRKSRC}_${PATCHLEVEL}/papply ${WRKSRC}_${PATCHLEVEL}/ifort.rtp \
		${WRKSRC}/opt/${COMPILERDIR}
.endif

pre-patch: intel-patch
# Remove files we do not need on FreeBSD.
	@@for i in `${CAT} ${FILESDIR}/exclude`; do \
		${RM} -rf ${WRKSRC}/opt/${COMPILERDIR}/$$i; \
	done
.if defined(NOPORTDOCS)
# Remove docs.
	@@for i in `${CAT} ${FILESDIR}/exclude_noportdocs`; do \
		${RM} -rf ${WRKSRC}/opt/${COMPILERDIR}/$$i; \
	done
.endif
# Allow everyone to use it.
	@@${CHMOD} a+rx ${WRKSRC}/opt
# Remove unneeded/unsafe access rights.
.for i in doc include lib
	@@${FIND} ${WRKSRC}/opt/${COMPILERDIR}/${i} -type f -print0 | \
		${XARGS} -0 ${CHMOD} a-x,og-w
.endfor
	@@${FIND} ${WRKSRC}/opt -type d -print0 | ${XARGS} -0 ${CHMOD} go-w
#remove files
	@@${RM} -f ${WRKSRC}/opt/${COMPILERDIR}/bin/ifc
	@@${RM} -f ${WRKSRC}/opt/${COMPILERDIR}/bin/ifcbin
	@@${RM} -f ${WRKSRC}/opt/${COMPILERDIR}/bin/ifc.cfg
	@@${RM} -f ${WRKSRC}/opt/${COMPILERDIR}/man/man1/ifc.1

post-patch:
# Correct some paths and patch some files
.for i in ifort ifortvars.csh ifortvars.sh ifort.cfg
	@@${REINPLACE_CMD} -i "" -e 's:%%ICC_LOCALBASE%%:${LOCALBASE}:g; \
		s:\<INSTALLDIR\>:${PREFIX}/${COMPILERDIR}:g; \
		s:man -w:manpath -q:g' ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
	@@${CHMOD} 755 ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
.if ${PORTVERSION} != ${PATCHLEVEL}
	@@${REINPLACE_CMD} -i "" -e \
		's:\<installpackageid\>:${DISTNAME}_${PATCHLEVEL}:g' \
		${WRKSRC}/opt/${COMPILERDIR}/doc/fsupport
.else
	@@${REINPLACE_CMD} -i "" -e 's:\<installpackageid\>:${DISTNAME}:g' \
		${WRKSRC}/opt/${COMPILERDIR}/doc/fsupport
.endif
.for i in ifort.orig
	@@${RM} -f ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
# Provide a more FreeBSD'ish compile environment
.for i in ifort.cfg
	@@${ECHO_CMD} -e "-no-gcc\n-Qlocation,ld,${PREFIX}/${COMPILERDIR}/bin/ldwrapper\n-nothreads\n\n-Ulinux\n-U__linux__\n-U__linux\n-U__gnu_linux__\n\n-D__FreeBSD__=${IFCCFGVAL}\n\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
	@@${CHMOD} a-x,g-w ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
	@@cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s ifort.cfg ifortbin.cfg

OBJCOPY_OPS=	--redefine-sym stdin=__stdinp \
		--redefine-sym stdout=__stdoutp \
		--redefine-sym stderr=__stderrp

do-build:
# Use the Linux ABI for the binaries
.for i in codecov fortcom fpp ifortbin profmerge proforder profrun pronto_tool tselect xiar xild
	@@${BRANDELF} -t Linux ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
.endfor
# Fix unresolved references
	@@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \
		${FILESDIR}/linux_file.c ${FILESDIR}/linux_stat.c \
		${FILESDIR}/sysconf.c    \
		${FILESDIR}/errno_location.c ${FILESDIR}/mcount.S \
		${FILESDIR}/memalign.c
.for i in libcprts.a libcxa.a libifcore.a libifcore_pic.a libifcoremt.a libifport.a libimf.a libirc.a libirc_s.a libunwind.a
	@@${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
	        --redefine-sym __xpg_basename=basename \
		${OBJCOPY_OPS} \
		${WRKSRC}/opt/${COMPILERDIR}/lib/${i}
.endfor
.for i in ifcore ifcore_pic ifcoremt ifport
	@@${OBJCOPY} --strip-symbol=stat \
		--strip-symbol=fstat \
		--strip-symbol=lstat \
		--redefine-sym open=l_open \
		--redefine-sym lseek=l_lseek \
		${WRKSRC}/opt/${COMPILERDIR}/lib/lib${i}.a
.endfor
.for i in ifcore ifcoremt ifcore_pic
	@@${OBJCOPY} \
		--redefine-sym ftruncate=l_ftruncate \
		--redefine-sym lseek64=lseek \
		--redefine-sym fopen64=fopen \
		--redefine-sym freopen64=freopen \
		--redefine-sym creat64=creat \
		--redefine-sym ftruncate64=ftruncate \
		--redefine-sym mkstemp64=mkstemp \
		--redefine-sym __xpg_basename=basename \
		--redefine-sym __strtod_internal=strtod \
		--redefine-sym __strtof_internal=strtof \
		--redefine-sym __strtol_internal=strtol \
		--redefine-sym __strtold_internal=strtold \
		--redefine-sym __strtoll_internal=strtoll \
		--redefine-sym __strtoul_internal=strtoul \
		--redefine-sym __strtoull_internal=strtoull \
		--redefine-sym _IO_getc=getc \
		--redefine-sym _IO_putc=putc \
		${WRKSRC}/opt/${COMPILERDIR}/lib/lib${i}.a
.endfor
	@@${AR} q ${WRKSRC}/opt/${COMPILERDIR}/lib/libcxa.a ${WRKSRC}/*.o
	@@cd ${WRKSRC} && ${AR} x /usr/lib/libcompat.a ftime.o
	@@${AR} q ${WRKSRC}/opt/${COMPILERDIR}/lib/libifport.a ${WRKSRC}/ftime.o
# Some magic to be able to link
	@@${MKDIR} ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper
	@@${CC} ${CFLAGS} -o \
		${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld \
		${FILESDIR}/ld.c
# We can't use STRIP_CMD, since we need the FreeBSD one, not the Linux one.
	@@/usr/bin/strip ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld
	@@${CHMOD} 755 ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld

do-install:
	@@cd ${WRKSRC}/opt && ${FIND} . -print | \
		${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${PREFIX}

post-install:
	@@${ECHO} "${PKGNAME} is now installed in ${PREFIX}/${COMPILERDIR}, to use it you have to"
	@@${ECHO} "put your license into your \$${INTEL_FLEXLM_LICENSE} (default:"
	@@${ECHO} "${PREFIX}/${COMPILERDIR}/licenses) directory and add"
	@@${ECHO} "${PREFIX}/${COMPILERDIR}/bin to your PATH."
	@@${ECHO} "Invoking ${PKGNAME} by ifort, not ifc"
	@@${ECHO}
	@@${ECHO} "WARNING: If you use ifc while having linux_devtools installed, ifc will use"
	@@${ECHO} "the wrong includes and therefore will generate bogus (not working) binaries!"
	@@${ECHO}
	@@${ECHO} "If you encounter further problems with ifc please consult the errata at"
	@@${ECHO} "http://support.intel.com/support/performancetools/fortran/linux/"
	@@${ECHO} "first."

.include <bsd.port.post.mk>
@


1.53
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:    ifc
# Date created:         Oct 30, 2001
# Whom:                 NAKATA Maho <maho@@FreeBSD.org>
#
# $FreeBSD: head/lang/ifc/Makefile 300896 2012-07-14 13:54:48Z beat $
#
d22 1
a22 1
RESTRICTED=	"Intel forbids any redistribution"
@


1.52
log
@BROKEN should not be quoted.
No functional change.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.51
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d59 1
a59 1
BROKEN=	"Cannot coexist with linux_devtools"
@


1.50
log
@Remove support for OSVERSION < 5
@
text
@a123 1
.if ( ${OSVERSION} >= 500042 )
a126 1
.endif
a138 8
.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
@


1.49
log
@- Remove the DESTDIR modifications from individual ports as we have a new,
  fully chrooted DESTDIR, which does not need such any more.

Sponsored by:	Google Summer of Code 2007
Approved by:	portmgr (pav)
@
text
@d124 1
a124 2
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
	( ${OSVERSION} >= 500042 )
d144 1
a144 2
.if ( ${OSVERSION} < 470101 ) || \
	( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
@


1.48
log
@Retire NO_FILTER_SHLIBS now that it no longer serves a purpose
@
text
@d38 1
a38 1
MANPREFIX=	${TARGETDIR}/${COMPILERDIR}/
@


1.47
log
@NO_PACKAGE and NO_CDROM are superfluous here
@
text
@a31 1
NO_FILTER_SHLIBS=	yes
@


1.46
log
@Add support for DESTDIR part I.

This commit should largele be a NOOP as it only adds support
for DESTDIR undefined. This does allow us to start testing
ports with DESTDIR set, but this is as of yet not supported.

Although this has been extensively tested on pointyhat, this
is a very intrusive change and some cases may have been
overlooked. Please contact Gabor and me if you find any.

PR:             100555
Submitted by:   gabor
Sponsored by:   Google Summer of Code 2006
@
text
@a26 2
NO_PACKAGE=	"${RESTRICTED}"
NO_CDROM=	"${RESTRICTED}"
@


1.45
log
@update to 8.1.034

PR:		99199
Submitted by:	kib
@
text
@d41 1
a41 1
MANPREFIX=	${PREFIX}/${COMPILERDIR}/
@


1.44
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d9 1
a9 1
PORTVERSION=	8.1.031
@


1.43
log
@Remove legacy ifc stuffs since invoking by ifort is recommended
@
text
@a33 1
USE_REINPLACE=		yes
@


1.42
log
@update to 8.1.031
@
text
@d3 1
a3 1
# Whom:                 chat95@@mbox.kyoto-inet.or.jp
d26 3
a28 3
RESTRICTED=	Intel forbids any redistribution
NO_PACKAGE=	${RESTRICTED}
NO_CDROM=	${RESTRICTED}
d41 1
a41 1
MAN1=		ifc.1 ifort.1
d58 1
a58 1
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 ${IFC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again
d96 5
d104 1
a104 1
.for i in ifc ifort ifortvars.csh ifortvars.sh ifc.cfg ifort.cfg
d118 1
a118 1
.for i in ifc.orig ifort.orig
d122 1
a122 1
.for i in ifc.cfg ifort.cfg
d126 1
a126 2
	@@cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s ifc.cfg ifcbin.cfg \
		&& ${LN} -s ifort.cfg ifortbin.cfg
d137 1
a137 1
.for i in codecov fortcom fpp ifcbin ifortbin profmerge proforder profrun pronto_tool tselect xiar xild
d211 1
@


1.41
log
@1. update to 8.1.030
2. cleanup message
Submitted by:	Quincey Koziol <koziol@@ncsa.uiuc.edu>, netchild
                and Ali Faiez Taha <aftaha@@cirp.usp.br> [2]
@
text
@d9 1
a9 1
PORTVERSION=	8.1.030
@


1.40
log
@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
@
text
@d9 1
a9 1
PORTVERSION=	8.1.028
a207 4
	@@${ECHO} "If you use ifc 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 ifc will hang forever."
	@@${ECHO}
@


1.39
log
@update to 8.1.028
@
text
@d21 1
a21 1
PATCH_DEPENDS=		${LINUXBASE}/lib/libc-2.3.2.so:${PORTSDIR}/emulators/linux_base-8
d33 1
a33 1
USE_LINUX?=		yes
d194 2
a195 1
	@@${STRIP_CMD} ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld
@


1.38
log
@. Update to 8.1.024.

Update also mentioned by:	otton@@enstimac.fr
Approved by:			maho (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	8.1.024
a20 1
#PATCH_DEPENDS=		${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
d58 1
a58 1
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 ${IFC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again"
d63 1
a63 1
BROKEN=	Cannot coexist with linux_devtools
@


1.37
log
@Respect the user's USE_LINUX setting.
@
text
@d9 1
a9 1
PORTVERSION=	8.1.023
@


1.36
log
@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
@
text
@d34 1
a34 1
USE_LINUX=		yes
@


1.35
log
@Update to 8.1.023
and also Solved the dynamic linkage problem.

PR:		74373
Submitted by:	Alexander S. Usov <usov at kvip88.kvi.nl>
@
text
@d34 1
a34 2
#USE_LINUX=		yes
RUN_DEPENDS=		${LINUXBASE}/lib/libc-2.3.2.so:${PORTSDIR}/emulators/linux_base-8
@


1.34
log
@Update to 8.0.046p050.1
now it can output EM64T code!
@
text
@d9 1
a9 1
PORTVERSION=	8.0.046p050.1
d21 2
a25 1
PATCH_DEPENDS=		${LINUXBASE}/etc/redhat-release:${PORTSDIR}/emulators/linux_base
d34 2
a35 1
USE_LINUX=		yes
a51 1
			--exclude intel-isubh\*.rpm \
d135 1
a135 1
.for i in codecov fortcom fpp ifcbin ifortbin profmerge proforder tselect xiar xild
d142 2
a143 1
		${FILESDIR}/errno_location.c ${FILESDIR}/mcount.S
d153 1
a153 1
.for i in libcprts.a libcxa.a libifcore.a libifcoremt.a libifport.a libimf.a libirc.a libircmt.a libunwind.a
d155 1
d159 1
a159 1
.for i in ifcore ifcoremt ifport
d167 1
a167 1
.for i in ifcore ifcoremt
@


1.33
log
@Correct DISTFILES
@
text
@d9 1
a9 1
PORTVERSION=	8.0.046p049.1
@


1.32
log
@Fix version number

Submitted by:	eik via chkversion <eik+chkversion@@FreeBSD.org>
Pointy hat to:	myself
@
text
@d12 1
a12 1
DISTNAME=	l_fc_pc_${PORTVERSION:C/\.p.+$//}
@


1.31
log
@a) Fix open problem for ifc
b) update to 8.0.046.p049.1

PR:		67507
Submitted by:	Alexander Usov <usov@@kvi.nl>
@
text
@d9 1
a9 1
PORTVERSION=	8.0.046.p049.1
@


1.30
log
@fix for ports/66514 problem and update to 8.0.046

PR:		67127
Submitted by:	Masakazu HIGAKI
@
text
@d9 1
a9 1
PORTVERSION=	8.0.046
a167 1
		--redefine-sym open64=open \
@


1.29
log
@updated to 8.0.039.p044.1
a) discard REINPLACE_CMD, since ifort now supports
   -U option (*)
b) replace lseek64, open64, freopen64, creat64,
   ftrancate64 and mkstemp64
   which are undefined functions for FreeBSD
c) Use PATCH_DEPENDS, and intel-patch: (*)
d) sort pkg-plist
e) change URL of errata page
f) some cleanups (*)
Submitted by:	Masakazu HIGAKI <higamasa@@dream.com>
inspired by:	netchild (*)
@
text
@d9 1
a9 1
PORTVERSION=	8.0.039.p044.1
d169 1
d182 2
@


1.28
log
@[1] ${IGNORE} in the Makefile did not work properly
   and ${ECHO} was misused. ${DISTFILES} should be defined before
   it is used.

[2] fix build (cxa_finalize.c is gone for now)

Submitted by:	hrs [1]
@
text
@d9 1
a9 1
PORTVERSION=	8.0.039
d24 1
d49 1
a56 3
BRANDELF?=	/usr/bin/brandelf
OBJCOPY?=	/usr/bin/objcopy

d68 1
a68 5
.for i in \
	intel-ifort8-8.0-47.i386.rpm
#	intel-iidb7-7.3.2-98.i386.rpm
	@@cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null ${i} | ${CPIO} -idu --quiet
.endfor
d70 1
a70 1
pre-patch:
d77 2
d94 1
a94 1
		${XARGS} -0 ${CHMOD} a-x,g-w
d119 1
a119 1
	@@${ECHO_CMD} -e "-no-gcc\n-Qlocation,ld,${PREFIX}/${COMPILERDIR}/bin/ldwrapper\n-nothreads\n\n-D__FreeBSD__=${IFCCFGVAL}\n\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
a123 7
# Remove macros for linux in ifortbin,
# because fortcom does not accept -U option.
	@@${REINPLACE_CMD} -i "" -e 's: -Dlinux:        :'                 \
				-e 's: -D__linux :           :'           \
				-e 's: -D__linux__ :             :'       \
				-e 's: -D__gnu_linux__:                :' \
		${WRKSRC}/opt/${COMPILERDIR}/bin/ifortbin
d133 1
a133 1
# Use the Linux ABI for the binaries 
d167 6
d199 15
a213 15
	@@${ECHO_CMD} "${PKGNAME} is now installed in ${PREFIX}/${COMPILERDIR}, to use it you have to"
	@@${ECHO_CMD} "put your license into your \$${INTEL_FLEXLM_LICENSE} (default:"
	@@${ECHO_CMD} "${PREFIX}/${COMPILERDIR}/licenses) directory and add"
	@@${ECHO_CMD} "${PREFIX}/${COMPILERDIR}/bin to your PATH."
	@@${ECHO_CMD}
	@@${ECHO_CMD} "If you use ifc on a Pentium 4 make sure you have 'options CPU_ENABLE_SSE'"
	@@${ECHO_CMD} "in your kernel config (have a look at http://www.FreeBSD.org/handbook/"
	@@${ECHO_CMD} "if you do not know how to do this), else ifc will hang forever."
	@@${ECHO_CMD}
	@@${ECHO_CMD} "WARNING: If you use ifc while having linux_devtools installed, ifc will use"
	@@${ECHO_CMD} "the wrong includes and therefore will generate bogus (not working) binaries!"
	@@${ECHO_CMD}
	@@${ECHO_CMD} "If you encounter further problems with ifc please consult the errata at"
	@@${ECHO_CMD} "http://support.intel.com/support/performancetools/fortran/Fortran_Compiler_Errata.htm"
	@@${ECHO_CMD} "first."
@


1.27
log
@Use the CPIO macro defined in bsd.port.mk.

Submitted by:	trevor
@
text
@d18 1
d20 1
a20 2
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${DISTNAME}_${PATCHLEVEL}${EXTRACT_SUFX}
d118 1
a118 1
	@@${RM} ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
d122 1
a122 1
	@@${ECHO} -e "-no-gcc\n-Qlocation,ld,${PREFIX}/${COMPILERDIR}/bin/ldwrapper\n-nothreads\n\n-D__FreeBSD__=${IFCCFGVAL}\n\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
d153 1
a153 2
	@@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c \
		${FILESDIR}/cxa_finalize.c
@


1.26
log
@(forced commit)

Remove cxa_finalize.c which isn't needed anymore as the entire
DSO support is in cxa_atexit.c now

Noticed by:	netchild
@
text
@a55 1
CPIO?=		/usr/bin/cpio
@


1.25
log
@(Foced commit)

This update is using copies of large parts of the icc port.
Submitted by:	netchild
@
text
@@


1.24
log
@Update to 8.0.039

Submitted by:	Masakazu HIGAKI <higamasa@@dream.com>
@
text
@@


1.23
log
@Use the CPIO macro defined in bsd.port.mk.
@
text
@d9 1
a9 1
PORTVERSION=	7.1.038
d12 1
a12 2
DISTNAME=	l_fc_pc_${PORTVERSION}
EXTRACT_SUFX=	.tar
d15 7
a21 1
COMMENT=	Intel's Fortran compiler, set up to produce native FreeBSD objects
d30 1
a33 1
NO_WRKSUBDIR=		yes
d36 1
a36 1
COMPILERDIR=	compiler70
d38 1
a38 1
PATCH_WRKSRC=	${WRKSRC}/opt/intel/${COMPILERDIR}
d40 2
a41 2
MAN1=		ifc.1
MANPREFIX=	${PREFIX}/intel/${COMPILERDIR}/
d48 1
d50 1
d55 2
d59 3
a61 2
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
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 ${IFC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again"
d63 1
d65 2
a66 4
.if exists(${LINUXBASE}/boot/kernel.h) #|| \
#	exists(${PREFIX}/intel/compiler60/bin/icc) || \
#	exists(${PREFIX}/intel/compiler70/bin/icc)
BROKEN=	Cannot coexist with linux_devtools or icc
a69 6
	@@${SED} 's:%%COMPILERDIR%%:${COMPILERDIR}:' ${FILESDIR}/cpio-exclude \
		>${WRKDIR}/cpio-exclude
.if defined(NOPORTDOCS)
	@@${SED} 's:%%COMPILERDIR%%:${COMPILERDIR}:' \
		${FILESDIR}/cpio-exclude_noportdocs >>${WRKDIR}/cpio-exclude
.endif
d71 3
a73 4
	intel-ifc7-7.1-40.i386.rpm
#	intel-iidb7-7.2.2-78.i386.rpm
	@@cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null ${i} | \
		${CPIO} -idfuE ${WRKDIR}/cpio-exclude --quiet
d77 17
a93 1
# Allow everyone to use it
d95 3
a97 3
# Remove unneeded/unsafe access rights
.for i in docs ia32/include ia32/lib
	@@${FIND} ${WRKSRC}/opt/intel/${COMPILERDIR}/${i} -type f -print0 | \
a100 4
# Use the Linux ABI for the binaries
.for i in ifcbin fpp icid f90com profmerge proforder xiar xild
	@@brandelf -t Linux ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endfor
d104 1
a104 1
.for i in ia32/bin/ifc ia32/bin/ifcvars.csh ia32/bin/ifcvars.sh
d106 14
a119 8
		s@@\<INSTALLDIR\>@@${PREFIX}/intel@@g; s@@man -w@@manpath -q@@g' \
		${WRKSRC}/opt/intel/${COMPILERDIR}/${i}
	@@${CHMOD} 755 ${WRKSRC}/opt/intel/${COMPILERDIR}/${i}
.endfor
	@@${REINPLACE_CMD} -i "" -e 's:\<INSTALLTIMECOMBOPACKAGEID\>:${DISTNAME}:g' \
		${WRKSRC}/opt/intel/${COMPILERDIR}/docs/fsupport
.for i in ifc.orig
	@@${RM} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
d122 13
a134 11
.for i in ifc.cfg
	@@${REINPLACE_CMD} -i "" -e 's:-Xlinker -rpath -Xlinker <INSTALLDIR>/${COMPILERDIR}/ia32/lib::g' \
		-e 's@@\<INSTALLDIR\>@@${PREFIX}/intel@@g;' \
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
	@@${ECHO} -e "-Qlocation,ld,${PREFIX}/intel/${COMPILERDIR}/ia32/bin/ldwrapper\n\n-Ulinux\n-U__linux__\n-U__linux\n-U__gnu_linux__\n\n-D__FreeBSD__=${IFCCFGVAL}\n-D__ELF__=1\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.if ${OSVERSION} < 500016
	@@${ECHO} -e "-Qoption,ld,-MT\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endif
	@@${CHMOD} a-x,g-w ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endfor
	@@cd ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ && ${LN} -s ifc.cfg ifcbin.cfg
d138 1
a138 1
OBJCOPY_OPS=    --redefine-sym stdin=__stdinp \
d144 4
a150 1
		${FILESDIR}/mmap.c       ${FILESDIR}/pthread.c \
d163 1
a163 3
.for i in libcxa.a libimf.a libirc.a libircmt.a libunwind.a \
	libBINDF90.a libCEPCF90.a libF90.a libIEPCF90.a libPEPCF90.a \
	libcprts.a libintrins.a libompstub.a
d166 1
a166 1
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
d168 1
a168 3
	@@cd ${WRKSRC} && ${AR} x /usr/lib/libcompat.a ftime.o
	@@${AR} q ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/libcxa.a ${WRKSRC}/*.o
.for i in BINDF90 PEPCF90 CEPCF90 POSF90 IEPCF90
d172 1
d174 14
a187 6
		--redefine-sym lseek64=lseek \
		--redefine-sym open64=open \
		--redefine-sym creat64=creat \
		--redefine-sym ftruncate64=ftruncate \
		--redefine-sym mmap=Mmap \
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/lib${i}.a
d189 3
d193 1
a193 1
	@@${MKDIR} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper
d195 1
a195 1
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper/ld \
d197 2
a198 2
	@@${STRIP_CMD} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper/ld
	@@${CHMOD} 755 ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper/ld
d205 1
a205 1
	@@${ECHO_CMD} "${PKGNAME} is now installed in ${PREFIX}/intel, to use it you have to"
d207 2
a208 2
	@@${ECHO_CMD} "${PREFIX}/intel/licenses) directory and add"
	@@${ECHO_CMD} "${PREFIX}/intel/${COMPILERDIR}/ia32/bin to your PATH."
@


1.22
log
@update to ifc to 7.1.038.

Submitted by:	Masakazu HIGAKI <higamasa@@dream.com>
@
text
@a47 1
CPIO?=		/usr/bin/cpio
@


1.21
log
@s/rpm2cpio/rpm2cpio.pl/ after the recent update of archivers/rpm2cpio (the
script was renamed to solve a conflict with archivers/rpm) to fix possible
build problems.

I've tested this with lang/icc. Any new errors because of this commit in
one of the modified ports may be because the ports previously may have used
rpm2cpio from archivers/rpm instead of the used {EXTRACT,BUILD}_DEPENDS
archivers/rpm2cpio.
@
text
@d9 1
a9 2
PORTVERSION=	7.1.033
PORTREVISION=	1
d18 1
a18 1
BUILD_DEPENDS=	rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
d42 4
d69 3
a71 5
	intel-ifc7-7.1-34.i386.rpm
#	intel-iidb7-7.2.2-64.i386.rpm \
#	intel-efc7-7.1-34.ia64.rpm \
#	intel-eidb7-7.2.2-64.ia64.rpm
	@@cd ${WRKSRC} ; rpm2cpio.pl 2>/dev/null ${i} | \
d92 2
a93 1
	@@${REINPLACE_CMD} -i "" -e 's:@@@@PREFIX@@@@:${PREFIX}:g; s@@\<INSTALLDIR\>@@${PREFIX}/intel@@g; s@@man -w@@manpath -q@@g' \
d108 3
d125 1
a125 2
		${FILESDIR}/cxa_atexit.c ${FILESDIR}/cxa_finalize.c \
		${FILESDIR}/linux_file.c ${FILESDIR}/sysconf.c \
d127 1
d129 4
d146 1
a146 1
	@@(cd ${WRKSRC}; ${AR} x /usr/lib/libcompat.a ftime.o)
d152 1
a152 1
		--redefine-sym lseek=Lseek \
@


1.20
log
@Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.
@
text
@d19 1
a19 1
BUILD_DEPENDS=	rpm2cpio:${PORTSDIR}/archivers/rpm2cpio
d70 1
a70 1
	@@cd ${WRKSRC} ; rpm2cpio 2>/dev/null ${i} | \
@


1.19
log
@1) Fix bug on some 4.7 systems
2) change ignore message provided by Intel

Suggestion by:	netchild and Marius Strobl
@
text
@d80 1
a80 1
		xargs -0 ${CHMOD} a-x,g-w
d82 1
a82 1
	@@${FIND} ${WRKSRC}/opt -type d -print0 | xargs -0 ${CHMOD} go-w
@


1.18
log
@IFC fails to link when invoked with -ax or -x option
because a static library of ifc has an unresolved symbol, __sigsetjmp.
The following is an example of error messages:

PR:		57574
Submitted by:	Masakazu HIGAKI <higamasa@@dream.com>
@
text
@d10 1
d49 1
a49 1
IGNORE=	"Please manually download ${DISTFILES} from ${IFC_SITE}, ${IFC_SITE}flin/noncom.htm or https://premier.intel.com/ \(whichever has the file, to access premier.intel.com you have to register at http://www.intel.com/software/products/registrationcenter/index.htm\). With a little bit of luck it may also be available from ftp://download.intel.com/software/products/compilers/downloads/. Put it into ${DISTDIR} and run make again"
d110 7
d129 1
a129 1
.else
d134 1
a134 3
		--redefine-sym stdin=__stdinp \
		--redefine-sym stdout=__stdoutp \
		--redefine-sym stderr=__stderrp \
a136 1
.endif
@


1.17
log
@update to 7.1.033
@
text
@d125 2
a126 1
	@@${OBJCOPY} --redefine-sym stdin=__stdinp \
@


1.16
log
@Update to 7.1.024

Reported by:	Ali Faiez Taha <aftaha@@cirp.usp.br>
                jed <kallen-j@@unbc.ca>
@
text
@d9 1
a9 1
PORTVERSION=	7.1.024
d65 4
a68 4
	intel-ifc7-7.1-25.i386.rpm
#	intel-iidb7-7.1-46.i386.rpm \
#	intel-efc7-7.1-25.ia64.rpm \
#	intel-eidb7-7.1-46.ia64.rpm
@


1.15
log
@Version up to 7.1.016

Submitted by:	 Sumit Shah <shah@@ucla.edu>
@
text
@d9 1
a9 1
PORTVERSION=	7.1.016
d12 1
a12 1
DISTNAME=	l_fc_pu_${PORTVERSION}
d65 4
a68 4
	intel-ifc7-7.1-14.i386.rpm 
#	intel-iidb7-7.1-26.i386.rpm \
#	intel-efc7-7.1-14.ia64.rpm \
#	intel-eidb7-7.1-26.ia64.rpm 
@


1.14
log
@Update ports for 7.1.015

Submitted by:	 Masakazu HIGAKI <higamasa@@dream.com>
@
text
@d9 1
a9 1
PORTVERSION=	7.1.015
d65 4
a68 4
	intel-ifc7-7.1-13.i386.rpm
#	intel-iidb7-7.1-24.i386.rpm \
#	intel-efc7-7.1-13.ia64.rpm \
#	intel-eidb7-7.1-24.ia64.rpm
@


1.13
log
@Clear moonlight beckons.
Requiem mors pacem pkg-comment,
And be calm ports tree.

E Nomini Patri, E Fili, E Spiritu Sancti.
@
text
@d9 1
a9 2
PORTVERSION=	6.0.1.304
PORTREVISION=	1
d12 1
a12 1
DISTNAME=	l_fc_p_6.0.1.304
d31 6
a36 2
MAN1=	ifc.1
MANPREFIX=	${PREFIX}/intel/compiler60/
d42 3
a44 1
IFCFFGVAL=	${OSREL:C/\..*//}
d48 1
a48 1
IGNORE=	"Please manually download ${DISTFILES} from ${IFC_SITE}, ${IFC_SITE}f60l/noncom.htm or https://premier.intel.com/ \(whichever has the file, to access premier.intel.com you have to register at http://www.intel.com/software/products/registrationcenter/index.htm\). With a little bit of luck it may also be available from ftp://download.intel.com/software/products/compilers/downloads/. Put it into ${DISTDIR} and run make again"
d51 4
a54 2
.if exists(${PREFIX}/intel/compiler60/bin/icc)
BROKEN= Cannot coexist with icc
d58 2
a59 5
.for i in \
	intel-ifc6-6.0.1-304.i386.rpm
#	intel-ildb6-6.0.1-310.i386.rpm \
#	intel-efc6-6.0.1-304.ia64.rpm \
#	intel-eldb6-6.0.1-310.ia64.rpm
d61 2
a62 6
	@@cd ${WRKSRC} && rpm2cpio 2>/dev/null ${i} | \
		cpio -idfuE ${FILESDIR}/cpio-exclude --quiet \
		*/opt/intel/compiler60/docs/*
.else
	@@cd ${WRKSRC} && rpm2cpio 2>/dev/null ${i} | \
		cpio -idfuE ${FILESDIR}/cpio-exclude --quiet
d64 7
d78 2
a79 2
	@@${FIND} ${WRKSRC}/opt/intel/compiler60/${i} -type f -print0 | \
		${XARGS} -0 ${CHMOD} a-x,g-w
d83 2
a84 3
.for i in INTEL f90com fpp icid ifcbin ifccem lmgrd.intel lmutil \
	profmerge proforder xiar xild
	@@brandelf -t Linux ${WRKSRC}/opt/intel/compiler60/ia32/bin/${i}
d89 9
a97 5
.for i in ia32/bin/ifcvars.csh ia32/bin/ifcvars.sh \
	ia32/bin/ifc ia32/bin/ifc.cfg docs/fsupport
	@@${REINPLACE_CMD} -i "" -e 's:@@@@PREFIX@@@@:${PREFIX}:g; s@@\<INSTALLDIR\>@@${PREFIX}/intel@@g; s@@man -w@@manpath -q@@g; s:\<INSTALLTIMECOMBOPACKAGEID\>:${DISTNAME}:g' \
		${WRKSRC}/opt/intel/compiler60/${i}
	@@${CHMOD} 755 ${WRKSRC}/opt/intel/compiler60/${i}
a98 5
	@@${RM} ${WRKSRC}/opt/intel/compiler60/ia32/bin/ifc.orig
# Remove empty directory
.if defined(NOPORTDOCS)
	@@${RM} -rf ${WRKSRC}/opt/intel/compiler60/docs
.endif
d101 5
a105 2
	@@${ECHO} -e "\n-Ulinux\n-U__linux__\n-U__linux\n\n-D__FreeBSD__=${IFCFFGVAL}\n-D__ELF__=1\n" >>${WRKSRC}/opt/intel/compiler60/ia32/bin/${i}
	@@${CHMOD} a-x,g-w ${WRKSRC}/opt/intel/compiler60/ia32/bin/${i}
d107 1
a107 3
# C++ hack for ifc
	@@${ECHO} -e "\n-Qoption,ld,-CPLUSPLUS\n" >>${WRKSRC}/opt/intel/compiler60/ia32/bin/ifc.cfg
	@@cd ${WRKSRC}/opt/intel/compiler60/ia32/bin/ && ${LN} -s ifc.cfg ifcbin.cfg
d114 1
d116 1
a116 1
.if ( ${OSVERSION} < 470000 ) || \
d118 2
d125 4
a128 3
	@@${OBJCOPY} --redefine-sym stderr=__stderrp \
		    --redefine-sym stdout=__stdoutp \
		${WRKSRC}/opt/intel/compiler60/ia32/lib/${i}
d131 2
a132 1
	@@${AR} q ${WRKSRC}/opt/intel/compiler60/ia32/lib/libcxa.a ${WRKSRC}/*.o
d134 10
a143 4
	@@${OBJCOPY} --redefine-sym stat=Stat   --redefine-sym fstat=Fstat \
		    --redefine-sym lstat=Lstat --redefine-sym lseek=Lseek \
		    --redefine-sym mknod=Mknod \
		${WRKSRC}/opt/intel/compiler60/ia32/lib/lib${i}.a
d146 6
a151 3
	@@${CC} ${CFLAGS} -o ${WRKSRC}/opt/intel/compiler60/ia32/bin/ld ${FILESDIR}/ld.c
	@@${STRIP_CMD} ${WRKSRC}/opt/intel/compiler60/ia32/bin/ld
	@@${CHMOD} 755 ${WRKSRC}/opt/intel/compiler60/ia32/bin/ld
d154 2
a155 2
	@@cd ${WRKSRC}/opt && ${TAR} -cf - . | \
		${TAR} -xf - -C ${PREFIX}
d161 1
a161 1
	@@${ECHO_CMD} "${PREFIX}/intel/compiler60/ia32/bin to your PATH."
d167 6
@


1.12
log
@Former commit was not correct by my misunderstanding.
Ifc is not broken when when linux_devtools is installed.
It does not see include files.

Noticed by:     netchild
Reviewed by:	knu (mentor)
@
text
@d17 1
@


1.11
log
@Marked as broken if icc or linux_devtools are
installed.

Suggested: Marius <marius@@alchemy.franken.de>
           Alexander Leidinger <Alexander@@Leidinger.net>
Reviewed by: knu (mentor)
@
text
@d45 2
a46 3
.if exists(${LINUXBASE}/boot/kernel.h) || \
	exists(${PREFIX}/intel/compiler60/bin/icc)
BROKEN= Cannot coexist with linux_devtools or icc
@


1.10
log
@Small misspelling
Noticed by marius
@
text
@d45 3
a47 2
.if exists(${LINUXBASE}/boot/kernel.h)
BROKEN=	Cannot coexist with linux_devtools
@


1.9
log
@Now ifc outputs FreeBSD's native binary.
Bump portrevision.

Wonderful work by: Masakazu Higaki <higamasa@@dream.com>
Approved by: maho(maintainer)
Reviewed by: knu(mentor)
@
text
@d46 1
a46 1
BROKEN=	Can not coexist with linux_devtools
@


1.8
log
@Correct typo in my last commit.

Approved by:	maintainer
@
text
@d10 3
a12 2
CATEGORIES=	lang devel emulators linux
MASTER_SITES=#
d16 1
a16 1
MAINTAINER=	chat95@@mbox.kyoto-inet.or.jp
d18 1
a18 2
BUILD_DEPENDS=	rpm2cpio:${PORTSDIR}/archivers/rpm2cpio \
		${LINUXBASE}/usr/bin/cc:${PORTSDIR}/devel/linux_devtools-7
d24 1
a24 1
ONLY_FOR_ARCHS=	i386
d27 1
a27 1
USE_REINPLACE=          yes
a28 1
NO_BUILD=		yes
d31 2
a32 2
MAN1=   ifc.1
MANPREFIX=      ${PREFIX}/intel/compiler60/
d38 3
d42 1
a42 1
IGNORE=	"Please manually download ${DISTFILES} from ${IFC_SITE}, e.g. from ${IFC_SITE}f60l/noncom.htm or from https://premier.intel.com/. Registration is required!! Put it into ${DISTDIR} and run make again."
d45 2
a46 2
.if exists(${PREFIX}/intel/compiler60/bin/icc)
BROKEN= Cannot coexist with icc
d51 1
a51 1
	intel-ifc6-6.0.1-304.i386.rpm \
d55 8
a62 1
	@@cd ${WRKSRC}; rpm2cpio ${i} | cpio -idu --quiet
d68 1
a68 1
# Remove unneded/unsafe access rights
d71 1
a71 1
		xargs -0 ${CHMOD} a-x,g-w
d75 2
a76 1
.for i in INTEL f90com fpp icid ifcbin ifccem lmgrd.intel lmutil profmerge proforder xiar xild
a81 1
	@@${RM} ${WRKSRC}/opt/intel/compiler60/ia32/bin/ifc.orig
d84 2
a85 1
	 @@${REINPLACE_CMD} -i "" -e's+\<INSTALLDIR\>+${PREFIX}/intel+g; s+man -w+manpath+g; s+@@LINUXBASE@@+${LINUXBASE}+g; s+/bin/sh+${LINUXBASE}/bin/bash+g; s+\<INSTALLTIMECOMBOPACKAGEID\>+${DISTNAME}+g' ${WRKSRC}/opt/intel/compiler60/${i}
d88 2
d93 38
d133 1
a133 1
	@@cd ${WRKSRC}/opt && ${TAR} -chf - . | \
d138 8
a145 3
	@@${ECHO_CMD} "source the appropriate ${PREFIX}/intel/compiler60/ia32/bin/ifcvars.{,c}sh"
	@@${ECHO_CMD} "script and put your license into your \$${INTEL_FLEXLM_LICENSE} (default:"
	@@${ECHO_CMD} "${PREFIX}/intel/licenses) directory."
@


1.7
log
@Mark BROKEN when icc is installed (ifc and icc share some libs).

To have working FreeBSD binaries, icc installs modified libs. Installing
ifc after icc results in not working FreeBSD binaries for icc compiled
code because ifc overwrites these libs (if it doesn't overwrite them, ifc
can't produce working linux binaries).

This commit wasn't discussed with the maintainer of ifc.

Noticed by:	marius@@alchemy.franken.de
@
text
@d44 1
a44 1
BROKEN= Can not coexist with icc
@


1.6
log
@Update to 6.0.1.304.

Submitted by:	maintainer
Approved by:	kris
PR:		43150
@
text
@d43 4
@


1.5
log
@Fix bugs in last commit.

Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	6.0.159
PORTREVISION=	2
d12 1
a12 1
DISTNAME=	l_fc_pu_6.0.159
d27 1
d32 3
d45 4
a48 4
	intel-ifc6-6.0-159.i386.rpm \
#	intel-ildb6-6.0-229.i386.rpm \
#	intel-efc6-6.0-159.ia64.rpm \
#	intel-eldb6-6.0-229.ia64.rpm
d70 2
a71 6
	ia32/bin/ifc docs/fsupport
	@@${SED} 's+\<INSTALLDIR\>+${PREFIX}/intel+g; s+man -w+manpath+g; s+@@LINUXBASE@@+${LINUXBASE}+g; s+/bin/sh+${LINUXBASE}/bin/bash+g; s+\<INSTALLTIMECOMBOPACKAGEID\>+${DISTNAME}+g' \
		${WRKSRC}/opt/intel/compiler60/${i} \
		>${WRKSRC}/opt/intel/compiler60/${i}.seded
	@@${MV} -f ${WRKSRC}/opt/intel/compiler60/${i}.seded \
		${WRKSRC}/opt/intel/compiler60/${i}
@


1.4
log
@Set <INSTALLTIMECOMBOPACKAGEID> in compiler60/docs/fsupport (PR from
Maintainer).

Bump portrevision because this affects support requests to intel.

PR:	41650
@
text
@d65 1
d68 1
a68 1
	@@${SED} 's+\<INSTALLDIR\>+${PREFIX}/intel+g; s+man -w+manpath+g; s+@@LINUXBASE@@+${LINUXBASE}+g; s+/bin/sh+${LINUXBASE}/bin/bash+g s+<INSTALLTIMECOMBOPACKAGEID>+${DISTNAME}+g' \
@


1.3
log
@When lang/ifc and lang/icc are both installed, ifc does not use the correct
ld. Work around by reordering the PATH variable in the ifc wrapper script.
	Submitted by:	maintainer
	PR:		40744

Bump PORTREVISION.
@
text
@d10 1
a10 1
PORTREVISION=	1
d37 1
a37 1
IGNORE=	"Please manually download ${DISTFILES} from ${IFC_SITE}, e.g. from https://premier.intel.com/. Registration is required!! Put it into ${DISTDIR} and run make again."
d66 2
a67 2
	ia32/bin/ifc #ia32/bin/ifc.pcl
	@@${SED} 's@@\<INSTALLDIR\>@@${PREFIX}/intel@@g; s@@-tp p6@@@@; s@@man -w@@manpath@@ ; s@@/bin/sh@@${LINUXBASE}/bin/bash@@' \
@


1.2
log
@- Update to 6.0.159.
  Submitted by:	maintainer
  PR:		40446

- Portlint
- add missing USE_LINUX
@
text
@d10 1
@


1.1
log
@New port: Intel's Fortran compiler supporting Pentium 4 and Itanium processor.

PR:		37704
Submitted by:	Nakata Maho <chat95@@mbox.kyoto-inet.or.jp>
@
text
@d1 3
a3 3
# New ports collection makefile for:	ifc
# Date created:				Oct 30, 2001
# Whom:					chat95@@mbox.kyoto-inet.or.jp
d9 4
a12 4
PORTVERSION=	6.0.140
CATEGORIES=	lang linux
MASTER_SITES=	http://developer.intel.com/software/products/compilers/downloads/l_fc_p_6.0.140.htm
DISTNAME=	l_fc_p_6.0.140
a16 1
RUN_DEPENDS=	${LINUXBASE}/lib/libc-2.2.2.so:${PORTSDIR}/emulators/linux_base
d20 1
a20 1
RESTRICTED=	"Redistribution not allowed"
d26 1
a26 1
#USE_LINUX=		yes
d31 2
d35 2
a36 2
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= "Please manually download the version for RedHat 7.1 from ${MASTER_SITES}, e.g. from http://developer.intel.com/software/products/compilers/f60l/noncom.htm. Put it into ${DISTDIR} and run make again."
d41 4
a44 4
	intel-ifc6-6.0-140.i386.rpm  \
#	intel-ildb6-6.0-191.i386.rpm \
#	intel-efc6-6.0-140.ia64.rpm \
#	intel-eldb6-6.0-191.ia64.rpm
d49 1
d51 1
d57 1
d63 1
d65 2
a66 2
	ia32/bin/ifc ia32/bin/ifc.pcl
	@@${SED} 's@@\<INSTALLDIR\>@@${PREFIX}/intel@@g; s@@-tp p6@@@@; s@@man -w@@manpath@@ ; s@@/bin/sh@@${LINUXBASE}/bin/sh@@' \
@

