f79573370a
foo-* to foo-[0-9]*. This is to cause the dependencies to match only the packages whose base package name is "foo", and not those named "foo-bar". A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net. Also change dependency examples in Packages.txt to reflect this.
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2001/09/27 23:18:16 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= fort77-1.14a
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE:=devel/lang/fortran/}
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
COMMENT= the driver for f2c, a fortran to C translator
|
|
|
|
DEPENDS+= f2c-[0-9]*:../../lang/f2c
|
|
|
|
# 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)
|
|
IGNORE= "${PKGNAME} is part of your NetBSD distribution"
|
|
.endif
|
|
|
|
ALL_TARGET= test
|
|
|
|
USE_PERL5= YES
|
|
|
|
post-patch:
|
|
for f in `${FIND} ${WRKDIR} -type f -print | ${XARGS} ${GREP} -l '/usr'`; \
|
|
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"
|