head	1.19;
access;
symbols
	RELEASE_8_3_0:1.18
	RELEASE_9_0_0:1.18
	RELEASE_7_4_0:1.18
	RELEASE_8_2_0:1.18
	RELEASE_6_EOL:1.18
	RELEASE_8_1_0:1.17
	RELEASE_7_3_0:1.16
	RELEASE_8_0_0:1.16
	RELEASE_7_2_0:1.12
	RELEASE_7_1_0:1.12
	RELEASE_6_4_0:1.12
	RELEASE_5_EOL:1.11
	RELEASE_7_0_0:1.11
	RELEASE_6_3_0:1.11
	PRE_XORG_7:1.10
	RELEASE_4_EOL:1.8;
locks; strict;
comment	@# @;


1.19
date	2012.11.17.05.58.49;	author svnexp;	state Exp;
branches;
next	1.18;

1.18
date	2010.10.25.07.14.16;	author gahr;	state Exp;
branches;
next	1.17;

1.17
date	2010.04.01.06.44.47;	author linimon;	state Exp;
branches;
next	1.16;

1.16
date	2009.07.30.14.48.33;	author gahr;	state Exp;
branches;
next	1.15;

1.15
date	2009.07.30.07.52.29;	author gahr;	state Exp;
branches;
next	1.14;

1.14
date	2009.05.15.12.31.12;	author gahr;	state Exp;
branches;
next	1.13;

1.13
date	2009.05.14.19.14.26;	author gahr;	state Exp;
branches;
next	1.12;

1.12
date	2008.08.21.06.17.29;	author rafan;	state Exp;
branches;
next	1.11;

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

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

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

1.8
date	2004.02.11.01.20.08;	author maho;	state dead;
branches;
next	1.7;

1.7
date	2004.02.09.02.07.48;	author maho;	state Exp;
branches;
next	1.6;

1.6
date	2004.02.07.03.02.57;	author kris;	state Exp;
branches;
next	1.5;

1.5
date	2004.02.04.05.21.34;	author marcus;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.02.23.57.41;	author maho;	state Exp;
branches;
next	1.3;

1.3
date	2004.02.02.13.41.30;	author maho;	state Exp;
branches;
next	1.2;

1.2
date	2004.02.01.23.23.31;	author maho;	state Exp;
branches;
next	1.1;

1.1
date	2004.02.01.23.20.22;	author maho;	state Exp;
branches;
next	;


desc
@@


1.19
log
@Switch exporter over
@
text
@# Ports collection makefile for:  g95
# Date created: 		  2007/01/29
# Whom:				  SATO Hiroki, <hrs@@FreeBSD.org>
#
# $FreeBSD: head/lang/g95/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	g95
PORTVERSION=	${G95VERSION}.${SNAPDATE}
CATEGORIES=	lang
MASTER_SITES=	${MASTER_SITE_LOCAL:S/$/:g95/} \
    		http://people.freebsd.org/~gahr/distfiles/:g95 \
		${MASTER_SITE_GCC:S/$/:gcc/}
MASTER_SITE_SUBDIR=	gahr/:g95 \
    			releases/gcc-${GCCVERSION}/:gcc
DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:g95 \
    		gcc-core-${GCCVERSION}${EXTRACT_SUFX}:gcc

MAINTAINER=	gahr@@FreeBSD.org
COMMENT=	Fortran 95 compiler from g95.org

USE_GMAKE=	yes
GNU_CONFIGURE=	yes

SNAPDATE=	20090624
G95VERSION=	0.92
GCCVERSION=	4.0.3
GCCBUILDDIR=	${WRKDIR}/gcc-${GCCVERSION}/
LIBF95=		libf95.a-${G95VERSION}

CONFIGURE_ARGS+=--with-gcc-dir=${GCCBUILDDIR}

PLIST_FILES=	bin/g95 bin/f95 bin/f951 lib/libf95.a
PORTDOCS=	G95Manual.pdf

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
.else
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
.endif

.if ${ARCH} == "powerpc"
IGNORE=		Fails to install: not yet ported to powerpc
.endif

post-extract:
	cd ${WRKSRC} && ${TAR} xzf ${LIBF95}.tar.gz

pre-configure:
	${MKDIR} ${GCCBUILDDIR}/g95
	cd ${GCCBUILDDIR}/g95 && ../${CONFIGURE_SCRIPT} ${CONFIGURE_TARGET}
	${GMAKE} -C ${GCCBUILDDIR}/g95

post-configure:
	cd ${WRKSRC}/${LIBF95} && ./${CONFIGURE_SCRIPT} \
	    ${CONFIGURE_ARGS} ${CONFIGURE_TARGET}

post-build:
	cd ${WRKSRC}/${LIBF95} && ${GMAKE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/g95 ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/f951 ${PREFIX}/bin
	${LN} -fs ${PREFIX}/bin/g95 ${PREFIX}/bin/f95
	${INSTALL_DATA} ${WRKSRC}/${LIBF95}/libf95.a ${PREFIX}/lib

.if !defined(NOPORTDOCS)
post-install:
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

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


1.18
log
@- Fix MASTERSITE:n substitution

PR:		151671
Submitted by:	Sahil Tandon <sahil@@FreeBSD.org>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.17
log
@Mark as broken on powerpc.

Hat:		portmgr
@
text
@d11 1
a11 1
MASTER_SITES=	${MASTER_SITE_LOCAL}:g95 \
d14 1
a14 1
MASTER_SITE_SUBDIR=	gahr:g95 \
@


1.16
log
@- Update to snapshot of 20090624
@
text
@d44 4
@


1.15
log
@- Fix installation (missing binary)

Reported by:	Anton Shterenlikht <mexas@@bristol.ac.uk>
		http://docs.freebsd.org/cgi/mid.cgi?20090729193532.GA58354
@
text
@d25 1
a25 1
SNAPDATE=	20090506
@


1.14
log
@- Fix build on amd64

Reported by:	pointyhat (via pav@@)
@
text
@d33 1
a33 1
PLIST_FILES=	bin/g95 bin/f95 lib/libf95.a
d61 1
@


1.13
log
@- Update to 0.92.20090506
- Move to MASTER_SITE_LOCAL
- Take maintainship
- Major refactor

PR:		134274
Submitted by:	M. L. Dodson <mldodson@@comcast.net> (former maintainer)
@
text
@d36 8
d49 1
a49 1
	cd ${GCCBUILDDIR}/g95 && ../${CONFIGURE_SCRIPT}
d54 1
a54 1
	    ${CONFIGURE_ARGS}
d70 1
a70 1
.include <bsd.port.mk>
@


1.12
log
@Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.

To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.

To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.

Changes to Mk/*:
 - Add runtime detection magic in bsd.port.mk
 - Remove CONFIGURE_TARGET hack in various bsd.*.mk
 - USE_GNOME=gnometarget is now an no-op

Changes to individual ports, other than removing the CONFIGURE_TARGET hack:

= pkg-plist changed (due to the ugly CONFIGURE_TARGET prefix in * executables)
  - comms/gnuradio
  - science/abinit
  - science/elmer-fem
  - science/elmer-matc
  - science/elmer-meshgen2d
  - science/elmerfront
  - science/elmerpost

= use x86_64 as ARCH
  - devel/g-wrap

= other changes
  - print/magicfilter
    GNU_CONFIGURE -> HAS_CONFIGURE since it's not generated by autoconf

Total # of ports modified:  1,027
Total # of ports affected: ~7,000 (set GNU_CONFIGURE to yes)

PR:		126524 (obsoletes 52917)
Submitted by:	rafan
Tested on:	two pointyhat 7-amd64 exp runs (by pav)
Approved by:	portmgr (pav)
@
text
@d11 2
a12 2
MASTER_SITES=	http://ftp.g95.org/v0.9/:g95 \
		${MASTER_SITE_LOCAL}:g95 \
d14 4
a17 5
MASTER_SITE_SUBDIR=	releases/gcc-${GCC_VER}/:gcc \
			maho/g95/:g95
DISTFILES=	${PORTNAME}_source.tgz:g95 \
		gcc-core-${GCC_VER}${EXTRACT_SUFX}:gcc
DIST_SUBDIR=	g95/${SNAPDATE}
d19 1
a19 1
MAINTAINER=	mldodson@@houston.rr.com
a21 3
SNAPDATE=	20070129
G95VERSION=	0.91
WRKSRC=		${WRKDIR}/${PORTNAME}-${G95VERSION}
a23 4
CONFIGURE_ARGS=	--with-gcc-dir=${GCC_DIR}
.if !defined(NOPORTDOCS)
CONFIGURE_ENV=	DOCSDIR=${DOCSDIR}
.endif
d25 5
a29 1
.include <bsd.port.pre.mk>
d31 1
a31 5
.if ${ARCH} == "amd64"
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
.else
CONFIGURE_TARGET=	${ARCH}-portbld-freebsd${OSREL}
.endif
d33 2
a34 5
GCC_VER=	4.0.3
GCC_DIR=	${WRKDIR}/gcc-${GCC_VER}
GCC_G95_DIR=	${WRKDIR}/gcc-${GCC_VER}/g95
GCC_CONFIGURE_SCRIPT=	../configure
GCC_CONFIGURE_ARGS=	${CONFIGURE_ARGS} --enable-languages=c
d37 1
a37 2
	${MKDIR} ${GCC_G95_DIR}
	cd ${WRKSRC} && ${TAR} xzf libf95.a-${G95VERSION}.tar.gz
d40 7
a46 3
	cd ${GCC_G95_DIR} && \
		${GCC_CONFIGURE_SCRIPT} ${GCC_CONFIGURE_ARGS} && \
		${MAKE_ENV} ${GMAKE}
d49 1
a49 3
	cd ${WRKSRC}/libf95.a-${G95VERSION} && \
		./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ${CONFIGURE_TARGET} &&\
		${MAKE_ENV} ${GMAKE}
d51 6
d58 3
a60 12
	cd ${WRKSRC}/libf95.a-${G95VERSION} && ${GMAKE} ${INSTALL_TARGET}
	cd ${PREFIX}/bin && ${LN} -s -f ${CONFIGURE_TARGET:Q}-g95 g95
	cd ${PREFIX}/bin && ${LN} -s -f ${CONFIGURE_TARGET:Q}-g95 f95
	cd ${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET:Q}/${GCC_VER} && \
		${RM} -f ./${CONFIGURE_TARGET:Q} && \
		${LN} -s -f . ./${CONFIGURE_TARGET:Q}
	${ECHO_CMD} "bin/${CONFIGURE_TARGET:Q}-g95" >> ${TMPPLIST}
	cd ${PREFIX} ; ${FIND} -s lib/gcc-lib/${CONFIGURE_TARGET:Q}/${GCC_VER} -type f  >> ${TMPPLIST}
	cd ${PREFIX} ; ${FIND} -s lib/gcc-lib/${CONFIGURE_TARGET:Q}/${GCC_VER} -type l  >> ${TMPPLIST}
	${ECHO_CMD} "@@dirrm lib/gcc-lib/${CONFIGURE_TARGET:Q}/${GCC_VER}" >> ${TMPPLIST}
	${ECHO_CMD} "@@dirrm lib/gcc-lib/${CONFIGURE_TARGET:Q}"            >> ${TMPPLIST}
	${ECHO_CMD} "@@dirrm lib/gcc-lib"                                  >> ${TMPPLIST}
d62 1
a62 1
.include <bsd.port.post.mk>
@


1.11
log
@Pass the maintainership to M. L. Dodson.
@
text
@d58 1
a58 1
		./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} &&\
@


1.10
log
@A possible build fix for IA64 by semi-automatical pkg-plist generation.

Submitted by:	kris
@
text
@d20 1
a20 1
MAINTAINER=	maho@@FreeBSD.org
@


1.9
log
@G95 is a stable, production Fortran 95 compiler available for multiple
CPU architectures and operating systems. Innovations and optimizations
continue to be worked on. Parts of the F2003 standard have been
implemented in g95. Note that g95 and gfortran are different compiler
http://gcc.gnu.org/wiki/TheOtherGCCBasedFortranCompiler
.

WWW: http://www.g95.org/

This port is based on hrs's original one, and slightly modified.
@
text
@a39 2
PLIST_SUB=	TRIPLET=${CONFIGURE_TARGET:Q} \
		GCC_VER=${GCC_VER}
d68 6
@


1.8
log
@Move lang/g95 -> lang/gfortran
change to appropriate name

Submitted by:	 Steve Kargl <sgk@@troutmask.apl.washington.edu>
PR	    : 62287 (repocopy request)
Thanks to   : joe, adam
@
text
@d1 3
a3 4
# ex:ts=8
# Ports collection makefile for:	egcs
# Date created:				9 Jan 1998
# Whom:					John Polstra <jdp@@polstra.com>
d5 1
a5 1
# $FreeBSD: ports/lang/g95/Makefile,v 1.7 2004/02/09 02:07:48 maho Exp $
d8 2
a9 3
PORTNAME=	gfortran
PORTVERSION=	3.5.${SNAPDATE}
PORTREVISION=	1
d11 21
a31 19
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	maho/tree-ssa
#		http://people.redhat.com/dnovillo/pub/tree-ssa/snapshot/
DISTNAME=	tree-ssa-${SNAPDATE}

MAINTAINER?=	maho@@FreeBSD.org
COMMENT=	GNU Fortran Compiler 90/95 from tree-ssa branch

LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4

USE_BZIP2=	yes
USE_REINPLACE=	yes
USE_PERL5_BUILD=yes

PATCH_WRKSRC=	${SRCDIR}
CONFIGURE_SCRIPT=	../${SRCDIR:C/${WRKDIR}//}/configure
NOMANCOMPRESS=	yes	# too hard to deal with differences on 5-cur and releng4

SNAPDATE=	20040130
d35 3
d39 3
d43 9
a51 39
SRCDIR=		${WRKDIR}/gcc
WRKSRC=		${WRKDIR}/build
TARGLIB=	${PREFIX}/lib/gcc/${CONFIGURE_TARGET}/3.5-tree-ssa/
TARGLIBEXEC=	${PREFIX}/libexec/gcc/${CONFIGURE_TARGET}/3.5-tree-ssa/
PLIST_SUB=	GCC_VER=${PORTVERSION} GNU_HOST=${CONFIGURE_TARGET}
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_BISON=	yes
CONFIGURE_ARGS=	--disable-nls \
		--with-gmp=${LOCALBASE} \
		--with-system-zlib \
		--with-libiconv-prefix=${LOCALBASE} \
		--program-suffix=tree-ssa \
		--disable-libmudflap \
		--enable-languages=c,f95
MAKE_ARGS+=	MAKEINFOFLAGS="--no-split"
.if defined(WANT_SHAREDLIBS)
CONFIGURE_ARGS+=	--enable-shared
INSTALLS_SHLIB=	yes
LDCONFIG_DIRS=	%%PREFIX%%/lib ${TARGLIB}
EXTRA_SHLIB=	libgcc_s
.else
CONFIGURE_ARGS+=	--disable-shared
.endif
.if defined(WANT_THREADS_SUPPORT)
CONFIGURE_ARGS+=	--enable-threads
#	?is this an ObjC only thing?
CONFIGURE_ARGS+=	--enable-threads=posix
.endif
ALL_TARGET=	bootstrap-lean
MAN1=		cpptree-ssa.1   gcctree-ssa.1   gcovtree-ssa.1
MAN7=		fsf-funding.7 gfdl.7 gpl.7

pre-everything::
	@@${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT}	target ${CONFIGURE_TARGET}"

post-patch:
	@@${REINPLACE_CMD} -e 's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
	    ${SRCDIR}/gcc/version.c
d54 3
a56 3
	cd ${SRCDIR} ; contrib/gcc_update --touch
	@@${RM} -f ${SRCDIR}/gcc/*/*.info*
	@@${MKDIR} ${CONFIGURE_WRKSRC}
d59 3
a61 6
	@@${ECHO_MSG} "Consider running 'make check' before 'make install',"
	@@${ECHO_MSG} "especially if you have not built port on -STABLE or -CURRENT."
	@@${ECHO_MSG} "This assumes that you have the dejagnu port installed."

check: build
	cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check
d64 6
a69 39
	${LN} ${PREFIX}/bin/gfortrantree-ssa ${PREFIX}/bin/gfortran

.for f in gcc cpp gcov ${CONFIGURE_TARGET}-gcc ${CONFIGURE_TARGET}-g++ gcj gcjh gij jv-scan jcf-dump jv-convert jar grepjar rmic rmiregistry
	if [ -e ${PREFIX}/bin/${f}tree-ssa ]; then \
	  ${STRIP_CMD} ${PREFIX}/bin/${f}tree-ssa; \
	  ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \
		|| ${MV} -f ${PREFIX}/man/man1/${f}.1 \
		${PREFIX}/man/man1/${f}tree-ssa.1 ); \
	fi
.endfor

.for f in libgfortran libgfortranbegin libiberty ${EXTRA_SHLIB}
	${MV} -f ${PREFIX}/lib/${f}.* ${TARGLIB}
.endfor
	${RM} -f ${PREFIX}/lib/libiberty.a
	${RM} -f ${TARGLIB}/*.la
# I am sick and tired of the anonyance that man pages can only be generated if
# perl 5.6 is installed.  This is becoming a royal PITA on non-5-CURRENT systems
.for mp in ${_MANPAGES}
	( ${TEST} -e ${mp} || ${TOUCH} ${TOUCH_FLAGS} ${mp} )
.endfor
	# Handle target libraries and GCJ include files.
	${RM} -f ${WRKDIR}/PLIST.lib
.for d in ${TARGLIB:S/^${PREFIX}\///} ${TARGLIBEXEC:S/^${PREFIX}\///} include/gcj include/gnu include/java include/javax
	cd ${PREFIX} ; if [ -d $d ]; then \
	    ${FIND} $d -type f -o -type l >>${WRKDIR}/PLIST.lib ;\
	    ${FIND} $d -type d | ${SORT} -r \
	        | ${SED} -e 's/^/@@dirrm /g' >>${WRKDIR}/PLIST.lib ;\
	fi
.endfor
	(${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@@unexec ${RMDIR} %D/lib/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
	(${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc/${CONFIGURE_TARGET} 2>&1 || true" ; ${ECHO_CMD} "@@unexec ${RMDIR} %D/libexec/gcc 2>&1 || true") >> ${WRKDIR}/PLIST.lib
	${ECHO_CMD} "r ${TMPPLIST}"		> ${WRKDIR}/ex.script
	${ECHO_CMD} "/Insert PLIST.lib"		>> ${WRKDIR}/ex.script
	${ECHO_CMD} "d"				>> ${WRKDIR}/ex.script
	${ECHO_CMD} "r ${WRKDIR}/PLIST.lib"	>> ${WRKDIR}/ex.script
	${ECHO_CMD} "x!"			>> ${WRKDIR}/ex.script
	${CP} -p ${TMPPLIST} ${TMPPLIST}.pre
	cd ${WRKDIR} ; ex < ex.script
@


1.7
log
@a) Unbreak for i386 arch
b) cleanup (info files are inappropreately registered)

PR:		kris via bento
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.6
log
@BROKEN on 5.x: broken pkg-plist
@
text
@a34 4
.if ${OSVERSION} >= 502000
BROKEN=		"Broken pkg-plist"
.endif

a68 1
INFO=		cpp gcc gccint cppinternals gccinstall
@


1.5
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d35 4
@


1.4
log
@a) add --disable-libmudflap since this port doesn't use libmudflap
b) remove g95 as far as possible this confuses too much.
   I've already fill the PR #62287

Submitted by:   Steve Kargl <sgk@@troutmask.apl.washington.edu>
@
text
@d11 1
@


1.3
log
@Use ${MASTER_SITE_LOCAL}

Submitted by:	sf
@
text
@d9 1
a9 1
PORTNAME=	g95
a91 1
	${LN} ${PREFIX}/bin/gfortrantree-ssa ${PREFIX}/bin/g95
d102 1
a102 1
.for f in libgfortran libgfortranbegin libmudflap libmudflapth libiberty ${EXTRA_SHLIB}
a129 2

cklatest:
@


1.2
log
@(Forced commit)
Many useful suggestions were given by: sf
Thank you very much and sorry forgetting about it.
@
text
@d12 2
a13 1
MASTER_SITES=	http://people.freebsd.org/~maho/tree-ssa/
d49 1
@


1.1
log
@Add New port lang/g95 GNU Fortran 90/95 Compiler
from GCC's tree-ssa-20020619-branch and still this
is alpha stage.
you can invoke Fortran by typing gfortran or g95,

Note: gcc-3.5 will include this effort.
@
text
@@

