head	1.25;
access;
symbols
	RELEASE_8_3_0:1.23
	RELEASE_9_0_0:1.22
	RELEASE_7_4_0:1.22
	RELEASE_8_2_0:1.22
	RELEASE_6_EOL:1.22
	RELEASE_8_1_0:1.22
	RELEASE_7_3_0:1.22
	RELEASE_8_0_0:1.22
	RELEASE_7_2_0:1.21
	RELEASE_7_1_0:1.20
	RELEASE_6_4_0:1.20
	RELEASE_5_EOL:1.19
	RELEASE_7_0_0:1.19
	RELEASE_6_3_0:1.19
	PRE_XORG_7:1.18
	RELEASE_4_EOL:1.18
	RELEASE_6_2_0:1.15
	RELEASE_6_1_0:1.11
	RELEASE_5_5_0:1.11
	RELEASE_6_0_0:1.10
	RELEASE_5_4_0:1.10
	RELEASE_4_11_0:1.10
	RELEASE_5_3_0:1.10
	RELEASE_4_10_0:1.10
	RELEASE_5_2_1:1.9
	RELEASE_5_2_0:1.9
	RELEASE_4_9_0:1.9
	RELEASE_5_1_0:1.9
	RELEASE_4_8_0:1.9
	RELEASE_5_0_0:1.8
	RELEASE_4_7_0:1.6
	RELEASE_4_6_2:1.6
	RELEASE_4_6_1:1.6
	RELEASE_4_6_0:1.6
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.6
	RELEASE_4_4_0:1.5
	RELEASE_4_3_0:1.5
	RELEASE_4_2_0:1.4
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.4
	RELEASE_3_5_0:1.4
	RELEASE_4_0_0:1.3
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	RELEASE_3_2_0:1.1.1.1
	f2c_2_0_1_import:1.1.1.1
	KARGL:1.1.1;
locks; strict;
comment	@# @;


1.25
date	2012.11.17.05.58.49;	author svnexp;	state Exp;
branches;
next	1.24;

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

1.23
date	2012.03.12.05.22.46;	author maho;	state Exp;
branches;
next	1.22;

1.22
date	2009.09.08.21.08.41;	author wxs;	state Exp;
branches;
next	1.21;

1.21
date	2009.03.16.07.21.36;	author maho;	state Exp;
branches;
next	1.20;

1.20
date	2008.08.13.07.51.51;	author maho;	state Exp;
branches;
next	1.19;

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

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

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

1.16
date	2007.01.13.22.58.44;	author miwi;	state Exp;
branches;
next	1.15;

1.15
date	2006.10.16.19.43.41;	author thierry;	state Exp;
branches;
next	1.14;

1.14
date	2006.10.15.20.10.48;	author kris;	state Exp;
branches;
next	1.13;

1.13
date	2006.08.24.22.11.52;	author bsam;	state Exp;
branches;
next	1.12;

1.12
date	2006.08.10.07.37.31;	author thierry;	state Exp;
branches;
next	1.11;

1.11
date	2005.10.05.07.02.30;	author barner;	state Exp;
branches;
next	1.10;

1.10
date	2004.04.10.17.26.41;	author trevor;	state Exp;
branches;
next	1.9;

1.9
date	2003.02.20.18.37.56;	author knu;	state Exp;
branches;
next	1.8;

1.8
date	2002.11.10.16.46.50;	author lioux;	state Exp;
branches;
next	1.7;

1.7
date	2002.11.06.22.45.47;	author adamw;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.01.01.06.45;	author lioux;	state Exp;
branches;
next	1.5;

1.5
date	2001.01.07.15.03.01;	author kevlo;	state Exp;
branches;
next	1.4;

1.4
date	2000.04.12.06.18.24;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	99.08.25.06.34.31;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	99.08.22.23.32.51;	author mharo;	state Exp;
branches;
next	1.1;

1.1
date	99.04.24.22.33.14;	author obrien;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.04.24.22.33.14;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Switch exporter over
@
text
@# Ports collection makefile for:	f2c-freebsd
# Date created:				28 DEC 1998
# Whom:					Steven G. Kargl
#
# $FreeBSD: head/lang/f2c/Makefile 301061 2012-07-18 05:27:03Z maho $
#

PORTNAME=	f2c
PORTVERSION=	20060810
PORTREVISION=	3
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	maho/f2c
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.tar
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}

MAINTAINER=	maho@@FreeBSD.org
COMMENT=	Fortran-to-C converter and its run-time libraries

EXTRACT_DEPENDS=	${UNZIP_CMD}:${PORTSDIR}/archivers/unzip

GUNZIP_CMD=	minigzip -d
USE_GMAKE=	yes
USE_LDCONFIG=	yes

OPTIONS=	LEAD_0 "Print with leading zeros" Off


# Set FCNAME to the name of the Fortran 77 / F2C wrapper.
FCNAME?=	fc
PLIST_SUB=	FCNAME=${FCNAME}
.if defined(WITH_FC)
PLIST_SUB+=	FC=""
.else
PLIST_SUB+=	FC="@@comment "
.endif

MAN1=		f2c.1

PORTDOCS=	00lastchange README README_libf2c changes f2c.pdf permission

.include <bsd.port.pre.mk>

post-extract:
	cd ${WRKSRC} && ${FIND} . -name "*.gz" | ${XARGS} ${GUNZIP_CMD}
	cd ${WRKSRC} && ${UNZIP_CMD} libf2c.zip
	${CP} -p ${WRKSRC}/libf2c/README ${WRKSRC}/README_libf2c

pre-patch:
	${CP} -p ${WRKSRC}/libf2c/makefile.u ${WRKSRC}/libf2c/Makefile
	${CP} -p ${WRKSRC}/src/makefile.u ${WRKSRC}/src/Makefile

pre-configure:
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/fc
.if !defined(WITHOUT_LEAD_0)
	${REINPLACE_CMD} -e 's|CFLAGS += -fPIC|CFLAGS += -fPIC -DWANT_LEAD_0|' ${WRKSRC}/libf2c/Makefile
	${REINPLACE_CMD} -e 's|#CFLAGS = -O|CFLAGS = -O -DWANT_LEAD_0|' ${WRKSRC}/src/Makefile
.endif



do-build:
	@@${ECHO_MSG} "===> Building f2c..."
	@@(cd ${WRKSRC}/src;	\
	${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
	@@${ECHO_MSG} "===> Building libf2c..."
	@@(cd ${WRKSRC}/libf2c;	\
	${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} libf2c.so)
	${MV} ${WRKSRC}/libf2c/libf2c.so ${WRKSRC}/libf2c/libf2c.so.2

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/f2c ${PREFIX}/bin
.if defined(WITH_FC)
	${INSTALL_SCRIPT} ${WRKSRC}/fc ${PREFIX}/bin/${FCNAME}
.endif
	${INSTALL_DATA} ${WRKSRC}/src/f2c.h ${PREFIX}/include
	${INSTALL_MAN} ${WRKSRC}/src/${MAN1}t ${MAN1PREFIX}/man/man1/${MAN1}
	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.so.2 ${PREFIX}/lib
	${LN} -sf libf2c.so.2 ${PREFIX}/lib/libf2c.so

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
	@@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

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


1.24
log
@SVN rev 301061 on 2012-07-18 05:27:03Z by maho

Fix depedency to unzip command.

PR:		169615
Submitted by:	Alexander Yerenkow <yerenkow@@gmail.com>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.23
log
@Add WANT_LEAD_0 knob.

Submitted by: Ted Hatfield <ted@@io-tx.com>

Feature safe:	yes
@
text
@d21 1
a21 1
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
@


1.22
log
@- Don't use UNZIP_CMD in a DEPENDS line. A user may redefine UNZIP_CMD to be
  "unzip -v" or similar which would break. Instead rely upon the unzip binary.

  http://lists.freebsd.org/pipermail/freebsd-ports/2009-September/056882.html

Noticed by:	Dag-Erling Smrgrav <des@@des.no>
@
text
@d27 3
d56 6
@


1.21
log
@* Install correct (the troff manpage)
into /usr/local/man/man1 instead of a pre-formatted one.
*Bump port revision.

Submitted by:	 Lyndon Nerenberg <lyndon@@orthanc.ca>
@
text
@d21 1
a21 1
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
@


1.20
log
@Patch from security/flawfinder, and bump portrevision.

Submitted by:	Pedro Giffuni
@
text
@d10 1
a10 1
PORTREVISION=	2
d69 1
a69 1
	${INSTALL_MAN} ${WRKSRC}/src/f2c.1 ${MAN1PREFIX}/man/man1
@


1.19
log
@Make fetchable because ftp://netlib.bell-labs.com/netlib/
no longer has original distfile. I placed it at MASTER_SITE_LOCAL.

Submitted by:   fenner
Approved by:	portmgr (erwin)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.18
log
@* f2c.h is now consistent with G77.
* Bump portrevision.
@
text
@d12 2
a13 1
MASTER_SITES=	ftp://netlib.bell-labs.com/netlib/
@


1.17
log
@Grab maintainership.
@
text
@d10 1
@


1.16
log
@- Update to 20060810

PR:		ports/107879
Submitted by:	Thomas Abthorpe <thomas@@goodking.ca>
@
text
@d16 1
a16 1
MAINTAINER=	ports@@FreeBSD.org
@


1.15
log
@Replace gunzip by minigzip, until gunzip get fixed.

Approved by:	portmgr (Kris)
Suggested by:	delphij
@
text
@d9 1
a9 1
PORTVERSION=	20060506
@


1.14
log
@BROKEN: Corrupt distfile

Approved by:    portmgr (self)
@
text
@d21 1
a21 2
BROKEN=		Corrupt distfile

@


1.13
log
@Fix make reinstall problem, though the patch differs from that at [1].

PR:		102481  [1]
Submitted by:	TAOKA Fumiyoshi <fmysh@@iijmio-mail.jp>  [1]
Approved by:	netchild (mentor, implicit)
@
text
@d21 2
@


1.12
log
@- Upgrade to 20060506;

- Remove FreeBSD specificities.

PR:		ports/101054
Security:	VuXML ID 43cb40b3-c8c2-11da-a672-000e0c2e438a
@
text
@d58 1
a66 1
	${MV} ${WRKSRC}/libf2c/libf2c.so ${WRKSRC}/libf2c/libf2c.so.2
@


1.11
log
@Fix on 64bit platforms.

Submitted by:	Daniel O'Connor <doconnor@@gsoft.com.au>
PR:		ports/86884
@
text
@d9 1
a9 2
PORTVERSION=	3.0.0
PORTREVISION=	1
d11 4
a14 3
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	lioux
DISTNAME=	f2c-freebsd.3.0.0
d19 18
d39 9
a47 1
.if (${ARCH} == "alpha")
d49 1
a49 4
	@@${CP} ${FILESDIR}/f2c.h.alpha ${WRKSRC}/f2c/f2c.h
.endif

ALL_TARGET=	depend all
d51 7
a57 1
MAN1=		f2c.1
d60 9
a68 4
	${INSTALL_PROGRAM} ${WRKSRC}/f2c/f2c ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/f2c/f2c.h ${PREFIX}/include
	${INSTALL_MAN} ${WRKSRC}/f2c/f2c.1 ${PREFIX}/man/man1
	${INSTALL_DATA} ${WRKSRC}/libf2c/libf2c.* ${PREFIX}/lib
d72 5
a76 1
	${LDCONFIG} -m ${PREFIX}/lib
@


1.10
log
@Tidy up whitespace.
@
text
@d10 1
@


1.9
log
@De-pkg-comment.
@
text
@d25 1
a25 1
ALL_TARGET=   depend all
@


1.8
log
@o Rollback PORTCOMMENT modifications while this feature's implementation
  is better studied
o Turn PORTCOMMENT variable in Makefile back into pkg-comment files

Approved by:	kris (portmgr hat),
		portmgr, re (silence)
@
text
@d16 1
@


1.7
log
@Use PORTCOMMENT in the Makefile, and whack the pkg-comment.

Approved by:	pat
@
text
@a16 2
PORTCOMMENT=	Fortran-to-C converter and its run-time libraries

@


1.6
log
@o Return maintainer to ports
o House distfile under MASTER_SITE_LOCAL since it is no
  longer available anywhere else
o In DESCR, add trailing / to both FTP and WWW tags

PR:		32417
Submitted by:	maintainer
@
text
@d17 2
@


1.5
log
@Upgrade to 3.0.0

PR: 24115
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/f2c/Makefile,v 1.4 2000/04/12 06:18:24 obrien Exp $
d11 2
a12 1
MASTER_SITES=	ftp://troutmask.apl.washington.edu/pub/
d15 1
a15 1
MAINTAINER=	kargl@@troutmask.apl.washington.edu
@


1.4
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/f2c/Makefile,v 1.3 1999/08/25 06:34:31 obrien Exp $
d9 1
a9 1
PORTVERSION=	2.0.1
d12 1
a12 1
DISTNAME=	f2c-freebsd.2.0.1
@


1.3
log
@Change Id->FreeBSD.
@
text
@a1 1
# Version required: 			2.0.1
d5 1
a5 1
# $FreeBSD$
d8 2
a9 2
DISTNAME=	f2c-freebsd.2.0.1
PKGNAME=	f2c-2.0.1
d12 1
@


1.2
log
@awk -> ${AWK}
basename -> ${BASENAME}
cat -> ${CAT}
cp -> ${CP}
ldconfig -> ${LDCONFIG}
mkdir -> ${MKDIR}
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1999/04/24 22:33:14 obrien Exp $
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
d20 1
a20 1
	@@cp ${FILESDIR}/f2c.h.alpha ${WRKSRC}/f2c/f2c.h
@


1.1.1.1
log
@f2c FORTRAN "compiler" port'ified from src/contrib/

PR:		ports/11220
Submitted by:	Steven G. Kargl <kargl@@troutmask.apl.washington.edu>
@
text
@@
