1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/lang/cfortran/Makefile
Pietro Cerutti 58bf980d22 - Do not use tar with --strip-components to install example files, since
this option is still broken on 6.3-STABLE
- While at it, use DIST_SUBDIR and improve Makefile a little bit

Reported by:	PH via erwin
2008-12-11 18:14:15 +00:00

44 lines
1003 B
Makefile

# New ports collection Makefile for: cfortran
# Date created: 5 December 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= cfortran
PORTVERSION= 4.3
CATEGORIES= lang
MASTER_SITES= http://www-zeus.desy.de/~burow/cfortran/
DISTFILES= cfortran.h \
cfortran.html \
cfortran.doc \
cfortran.examples.tar.gz
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= # none
MAINTAINER= gahr@FreeBSD.org
COMMENT= An easy-to-use powerful bridge between C and FORTRAN
NO_BUILD= yes
WRKSRC= ${WRKDIR}
post-extract:
.for dfile in ${DISTFILES}
${CP} ${_DISTDIR}/${dfile} ${WRKSRC}
.endfor
(cd ${WRKSRC} && ${TAR} -xf cfortran.examples.tar.gz)
do-install:
${INSTALL_DATA} ${WRKSRC}/cfortran.h ${PREFIX}/include
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cfortran.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cfortran.doc ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
${INSTALL} -d ${EXAMPLESDIR}
(cd ${WRKSRC}/eg && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>