head	1.3;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2012.11.17.05.58.48;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2008.12.11.18.14.15;	author gahr;	state Exp;
branches;
next	1.1;

1.1
date	2008.12.05.13.30.06;	author gahr;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Switch exporter over
@
text
@# New ports collection Makefile for: 	cfortran
# Date created:				5 December 2008
# Whom:					gahr
#
# $FreeBSD: head/lang/cfortran/Makefile 300896 2012-07-14 13:54:48Z beat $
#

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>
@


1.2
log
@- 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
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.1
log
@- New port: lang/cfortran

cfortran.h is an easy-to-use powerful bridge between C and FORTRAN.
It provides a transparent, machine independent interface between
C and FORTRAN routines and global data.
@
text
@d16 1
d27 1
a27 1
	${CP} ${DISTDIR}/${dfile} ${WRKDIR}
d29 1
d32 1
a32 1
	${INSTALL_DATA} ${WRKDIR}/cfortran.h ${PREFIX}/include
d35 2
a36 2
	${INSTALL_DATA} ${WRKDIR}/cfortran.html ${DOCSDIR}
	${INSTALL_DATA} ${WRKDIR}/cfortran.doc ${DOCSDIR}
d40 1
a40 1
	${TAR} --strip-components 1 -xf ${WRKDIR}/cfortran.examples.tar.gz -C ${EXAMPLESDIR}
@

