2007-01-30 01:03:17 +00:00
|
|
|
# Ports collection makefile for: g95
|
|
|
|
# Date created: 2007/01/29
|
|
|
|
# Whom: SATO Hiroki, <hrs@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= g95
|
|
|
|
PORTVERSION= ${G95VERSION}.${SNAPDATE}
|
|
|
|
CATEGORIES= lang
|
2010-10-25 07:14:16 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S/$/:g95/} \
|
2009-05-14 19:14:26 +00:00
|
|
|
http://people.freebsd.org/~gahr/distfiles/:g95 \
|
2007-01-30 01:03:17 +00:00
|
|
|
${MASTER_SITE_GCC:S/$/:gcc/}
|
2010-10-25 07:14:16 +00:00
|
|
|
MASTER_SITE_SUBDIR= gahr/:g95 \
|
2009-05-14 19:14:26 +00:00
|
|
|
releases/gcc-${GCCVERSION}/:gcc
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:g95 \
|
|
|
|
gcc-core-${GCCVERSION}${EXTRACT_SUFX}:gcc
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-05-14 19:14:26 +00:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2007-01-30 01:03:17 +00:00
|
|
|
COMMENT= Fortran 95 compiler from g95.org
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2009-07-30 14:48:33 +00:00
|
|
|
SNAPDATE= 20090624
|
2009-05-14 19:14:26 +00:00
|
|
|
G95VERSION= 0.92
|
|
|
|
GCCVERSION= 4.0.3
|
|
|
|
GCCBUILDDIR= ${WRKDIR}/gcc-${GCCVERSION}/
|
|
|
|
LIBF95= libf95.a-${G95VERSION}
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-05-14 19:14:26 +00:00
|
|
|
CONFIGURE_ARGS+=--with-gcc-dir=${GCCBUILDDIR}
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-07-30 07:52:29 +00:00
|
|
|
PLIST_FILES= bin/g95 bin/f95 bin/f951 lib/libf95.a
|
2009-05-14 19:14:26 +00:00
|
|
|
PORTDOCS= G95Manual.pdf
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-05-15 12:31:12 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
|
|
|
|
.else
|
|
|
|
CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
.endif
|
|
|
|
|
2010-04-01 06:44:48 +00:00
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
IGNORE= Fails to install: not yet ported to powerpc
|
|
|
|
.endif
|
|
|
|
|
2007-01-30 01:03:17 +00:00
|
|
|
post-extract:
|
2009-05-14 19:14:26 +00:00
|
|
|
cd ${WRKSRC} && ${TAR} xzf ${LIBF95}.tar.gz
|
2007-01-30 01:03:17 +00:00
|
|
|
|
|
|
|
pre-configure:
|
2009-05-14 19:14:26 +00:00
|
|
|
${MKDIR} ${GCCBUILDDIR}/g95
|
2009-05-15 12:31:12 +00:00
|
|
|
cd ${GCCBUILDDIR}/g95 && ../${CONFIGURE_SCRIPT} ${CONFIGURE_TARGET}
|
2009-05-14 19:14:26 +00:00
|
|
|
${GMAKE} -C ${GCCBUILDDIR}/g95
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC}/${LIBF95} && ./${CONFIGURE_SCRIPT} \
|
2009-05-15 12:31:12 +00:00
|
|
|
${CONFIGURE_ARGS} ${CONFIGURE_TARGET}
|
2007-01-30 01:03:17 +00:00
|
|
|
|
|
|
|
post-build:
|
2009-05-14 19:14:26 +00:00
|
|
|
cd ${WRKSRC}/${LIBF95} && ${GMAKE}
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-05-14 19:14:26 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/g95 ${PREFIX}/bin
|
2009-07-30 07:52:29 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/f951 ${PREFIX}/bin
|
2009-05-14 19:14:26 +00:00
|
|
|
${LN} -fs ${PREFIX}/bin/g95 ${PREFIX}/bin/f95
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${LIBF95}/libf95.a ${PREFIX}/lib
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-01-30 01:03:17 +00:00
|
|
|
post-install:
|
2009-05-14 19:14:26 +00:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
|
|
|
.endif
|
2007-01-30 01:03:17 +00:00
|
|
|
|
2009-05-15 12:31:12 +00:00
|
|
|
.include <bsd.port.post.mk>
|