2006-03-04 22:28:51 +01:00
|
|
|
# $NetBSD: Makefile,v 1.17 2006/03/04 21:29:54 jlam Exp $
|
1999-01-14 16:48:29 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= fort77-1.14a
|
|
|
|
CATEGORIES= lang
|
1999-04-15 22:39:38 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE:=devel/lang/fortran/}
|
1999-01-14 16:48:29 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-07-21 18:45:54 +02:00
|
|
|
COMMENT= The driver for f2c, a fortran to C translator
|
1999-01-14 16:48:29 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
DEPENDS+= f2c-[0-9]*:../../lang/f2c
|
1999-01-14 16:48:29 +01:00
|
|
|
|
|
|
|
# on 1.3.X systems there is not shared libf2c, thus use libf2c.a
|
|
|
|
# from the f2c package.
|
|
|
|
.if !exists(/usr/bin/f77)
|
|
|
|
F2CPKGHASNOSHAREDLIB= -e 's:-lf2c:'${PREFIX}'/lib/libf2c.a:g'
|
|
|
|
.else
|
|
|
|
F2CPKGHASNOSHAREDLIB=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(/usr/bin/fort77)
|
2005-12-05 21:49:47 +01:00
|
|
|
PKG_SKIP_REASON+= "${PKGNAME} is part of your ${OPSYS} distribution"
|
1999-01-14 16:48:29 +01:00
|
|
|
.endif
|
|
|
|
|
2004-12-03 16:14:50 +01:00
|
|
|
BUILD_TARGET= test
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
1999-01-14 16:48:29 +01:00
|
|
|
|
|
|
|
post-patch:
|
2001-05-19 05:56:23 +02:00
|
|
|
for f in `${FIND} ${WRKDIR} -type f -print | ${XARGS} ${GREP} -l '/usr'`; \
|
1999-01-14 16:48:29 +01:00
|
|
|
do \
|
|
|
|
${SED} -e 's:/usr:'${PREFIX}':g' <$$f >$$f.pdone && \
|
|
|
|
${MV} $$f.pdone $$f; \
|
|
|
|
done
|
|
|
|
${SED} -e 's:/lib/cpp:/usr/bin/cpp:g' ${F2CPKGHASNOSHAREDLIB} \
|
|
|
|
< ${WRKSRC}/fort77 > ${WRKSRC}/fort77.new
|
|
|
|
${MV} ${WRKSRC}/fort77.new ${WRKSRC}/fort77
|
|
|
|
${CHMOD} +x ${WRKSRC}/fort77
|
|
|
|
${CHMOD} +x ${WRKSRC}/tests/test.pl
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|