1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/lang/g95/Makefile

73 lines
1.8 KiB
Makefile

# Created by: SATO Hiroki, <hrs@FreeBSD.org>
# $FreeBSD$
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
NO_STAGE= yes
.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>