head	1.36;
access;
symbols
	RELEASE_8_1_0:1.35
	RELEASE_7_3_0:1.35
	RELEASE_8_0_0:1.35
	RELEASE_7_2_0:1.35
	RELEASE_7_1_0:1.34
	RELEASE_6_4_0:1.34
	RELEASE_5_EOL:1.34
	RELEASE_7_0_0:1.34
	RELEASE_6_3_0:1.34
	PRE_XORG_7:1.32
	RELEASE_4_EOL:1.32
	RELEASE_6_2_0:1.32
	RELEASE_6_1_0:1.29
	RELEASE_5_5_0:1.29
	RELEASE_6_0_0:1.29
	RELEASE_5_4_0:1.28
	RELEASE_4_11_0:1.27
	RELEASE_5_3_0:1.26
	RELEASE_4_10_0:1.25
	old_RELEASE_5_2_1:1.20
	old_RELEASE_5_2_0:1.20
	old_RELEASE_4_9_0:1.16
	old_RELEASE_5_1_0:1.15
	old_RELEASE_4_8_0:1.13
	old_RELEASE_5_0_0:1.12
	old_RELEASE_4_7_0:1.6;
locks; strict;
comment	@# @;


1.36
date	2010.08.13.01.34.26;	author dougb;	state dead;
branches;
next	1.35;

1.35
date	2009.01.05.20.36.30;	author pav;	state Exp;
branches;
next	1.34;

1.34
date	2007.10.03.23.22.02;	author edwin;	state Exp;
branches;
next	1.33;

1.33
date	2007.08.04.11.40.59;	author gabor;	state Exp;
branches;
next	1.32;

1.32
date	2006.09.03.17.30.12;	author kris;	state Exp;
branches;
next	1.31;

1.31
date	2006.08.04.12.34.44;	author erwin;	state Exp;
branches;
next	1.30;

1.30
date	2006.05.09.20.52.15;	author edwin;	state Exp;
branches;
next	1.29;

1.29
date	2005.06.17.22.59.19;	author netchild;	state Exp;
branches;
next	1.28;

1.28
date	2005.03.01.21.51.39;	author trevor;	state Exp;
branches;
next	1.27;

1.27
date	2004.12.31.18.23.59;	author netchild;	state Exp;
branches;
next	1.26;

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

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

1.24
date	2004.02.01.06.29.19;	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.36
log
@In my sweep of ports that have no SHA256 I contacted maho about lang/ifc7.
He confirmed my suspicion that the distfiles are no longer available, but
given his fond recollection of work on this port he asked me to swing
the axe, so here you go.

Sad to say good-bye
Many happy memories
Sources are no more

PR:		ports/149454
Submitted by:	me
@
text
@# New ports collection makefile for:    ifc
# Date created:         Oct 30, 2001
# Whom:                 chat95@@mbox.kyoto-inet.or.jp
#
# $FreeBSD: ports/lang/ifc7/Makefile,v 1.35 2009/01/05 20:36:30 pav Exp $
#

PORTNAME=	ifc7
PORTVERSION=	7.1.040
PORTREVISION=	1
CATEGORIES=	lang linux devel
MASTER_SITES=
DISTNAME=	l_fc_pc_${PORTVERSION}
EXTRACT_SUFX=	.tar

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

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

RESTRICTED=	Intel forbids any redistribution

ONLY_FOR_ARCHS=		i386

USE_LINUX=		yes
NO_WRKSUBDIR=		yes

COMPILERDIR=	compiler70
PLIST_SUB=	COMPILERDIR=${COMPILERDIR}
PATCH_WRKSRC=	${WRKSRC}/opt/intel/${COMPILERDIR}

MAN1=		ifc.1
MANPREFIX=	${PREFIX}/intel/${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 flexlm64

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

.for file in ${DISTNAME}
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${file}${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"
.endif
.endfor

.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
.endif

post-extract:
	@@${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
	@@cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null *.rpm | \
		${CPIO} -idfuE ${WRKDIR}/cpio-exclude --quiet

pre-patch:
# Allow everyone to use it
	@@${CHMOD} a+rx ${WRKSRC}/opt
# Remove unneeded/unsafe access rights
.for i in docs ia32/include ia32/lib
	@@${FIND} ${WRKSRC}/opt/intel/${COMPILERDIR}/${i} -type f -print0 | \
		${XARGS} -0 ${CHMOD} a-x,g-w
.endfor
	@@${FIND} ${WRKSRC}/opt -type d -print0 | ${XARGS} -0 ${CHMOD} go-w
# 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

post-patch:
# Correct some paths and patch some files
.for i in ia32/bin/ifc ia32/bin/ifcvars.csh ia32/bin/ifcvars.sh
	@@${REINPLACE_CMD} -i "" -e 's:%%ICC_LOCALBASE%%:${LOCALBASE}:g; \
		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}
.endfor
# Provide a more FreeBSD'ish compile environment
.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_CMD} -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}
	@@${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

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

do-build:
# Fix unresolved references
	@@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \
		${FILESDIR}/linux_file.c ${FILESDIR}/linux_stat.c \
		${FILESDIR}/mmap.c       ${FILESDIR}/pthread.c \
		${FILESDIR}/sysconf.c    \
		${FILESDIR}/errno_location.c ${FILESDIR}/mcount.S
.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
	@@${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
		${OBJCOPY_OPS} \
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/lib/${i}
.endfor
	@@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
	@@${OBJCOPY} --strip-symbol=stat \
		--strip-symbol=fstat \
		--strip-symbol=lstat \
		--redefine-sym lseek=l_lseek \
		--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
.endfor
# Some magic to be able to link
	@@${MKDIR} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper
	@@${CC} ${CFLAGS} -o \
		${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/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/intel/${COMPILERDIR}/ia32/bin/ldwrapper/ld
	@@${CHMOD} 755 ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/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}/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} "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}
	@@${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.35
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.34
log
@Remove support for OSVERSION < 5
@
text
@a100 3
.if ${OSVERSION} < 500016
	@@${ECHO_CMD} -e "-Qoption,ld,-MT\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
.endif
a104 1
.if ( ${OSVERSION} >= 500042 )
a107 1
.endif
a115 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.33
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
@d108 1
a108 2
.if ( ${OSVERSION} >= 470101 && ${OSVERSION} < 500000 ) || \
	( ${OSVERSION} >= 500042 )
d124 1
a124 2
.if ( ${OSVERSION} < 470101 ) || \
	( ${OSVERSION} >= 500000 && ${OSVERSION} < 500042 )
@


1.32
log
@NO_PACKAGE and NO_CDROM are superfluous here
@
text
@d33 1
a33 1
MANPREFIX=	${TARGETDIR}/intel/${COMPILERDIR}/
@


1.31
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
@a21 2
NO_PACKAGE=	${RESTRICTED}
NO_CDROM=	${RESTRICTED}
@


1.30
log
@Remove USE_REINPLACE from the categories starting with L
@
text
@d35 1
a35 1
MANPREFIX=	${PREFIX}/intel/${COMPILERDIR}/
@


1.29
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
@a27 1
USE_REINPLACE=		yes
@


1.28
log
@Respect the user's USE_LINUX setting.
@
text
@d27 1
a27 1
USE_LINUX?=		yes
a29 1
NO_FILTER_SHLIBS=	yes
d160 2
a161 1
	@@${STRIP_CMD} ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/ldwrapper/ld
@


1.27
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
@d27 1
a27 1
USE_LINUX=		yes
@


1.26
log
@Make portlint happy by replacing space to tab

PR:		65409
Submitted by:	trevor
@
text
@d10 1
@


1.25
log
@1) update to 7.1.040
2) many clean ups obtained from lang/icc and icc7 port [*]
3) remove cxa_finalize.c [*]
4) update URL at post-install section.

Obtained by:	lang/icc7, lang/icc [*]
Submitted by:	Masakazu HIGAKI <higamasa@@dream.com>
Thanks to:	netchild
@
text
@d113 1
a113 1
OBJCOPY_OPS=    --redefine-sym stdin=__stdinp \
@


1.24
log
@Update the portname (ifc->ifc7)

Suggested by:	netchild
@
text
@d9 1
a9 1
PORTVERSION=	7.1.038
d43 1
d49 3
a51 4
OBJCOPY?=	/usr/bin/objcopy

.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"
d53 1
d68 1
a68 4
.for i in \
	intel-ifc7-7.1-40.i386.rpm
#	intel-iidb7-7.2.2-78.i386.rpm
	@@cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null ${i} | \
a69 1
.endfor
d82 1
a82 1
	@@brandelf -t Linux ${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
d103 1
a103 1
	@@${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}
d105 1
a105 1
	@@${ECHO} -e "-Qoption,ld,-MT\n" >>${WRKSRC}/opt/intel/${COMPILERDIR}/ia32/bin/${i}
d126 1
a126 2
	@@cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/cxa_atexit.c \
		${FILESDIR}/cxa_finalize.c
d168 15
a182 15
	@@${ECHO_CMD} "${PKGNAME} is now installed in ${PREFIX}/intel, to use it you have to"
	@@${ECHO_CMD} "put your license into your \$${INTEL_FLEXLM_LICENSE} (default:"
	@@${ECHO_CMD} "${PREFIX}/intel/licenses) directory and add"
	@@${ECHO_CMD} "${PREFIX}/intel/${COMPILERDIR}/ia32/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.23
log
@Use the CPIO macro defined in bsd.port.mk.
@
text
@d8 1
a8 1
PORTNAME=	ifc
@


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@@' \
@

