PortSystem 1.0

name			fpp
version			1.1
categories		devel
license			Restrictive
platforms		darwin
maintainers		nomaintainer
description		Fortran preprocessor for FORTRAN 77 and Fortran 90 programs
long_description	fpp is a Fortran preprocessor for FORTRAN 77 and Fortran \
			90 programs.

homepage		http://www.netlib.org/fortran/
master_sites	${homepage} \
				ftp://ftp.netlib.org/fortran/ freebsd
distname		fdfpp
extract.suffix	.tgz
checksums		md5 46c29fc941b2a36ace11f6abbc4e94d2
patchfiles		patch-Makefile patch-sparc-Makefile patch-src-Makefile.common

depends_build	port:byacc

post-patch {
	reinplace "s|@@MAKE@@|${build.cmd}|" ${worksrcpath}/Makefile
}

use_configure	no

build.args	CC=${configure.cc} \
		CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
		YACC=byacc
build.type	gnu

destroot.destdir	PREFIX=${destroot}${prefix}
