[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / fort77

File: [cvs.NetBSD.org] / pkgsrc / lang / fort77 / Makefile (download)

Revision 1.17, Sat Mar 4 21:29:54 2006 UTC (17 years, 9 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1
Changes since 1.16: +2 -2 lines

Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't

# $NetBSD: Makefile,v 1.17 2006/03/04 21:29:54 jlam Exp $

DISTNAME=		fort77-1.14a
MASTER_SITES=		${MASTER_SITE_SUNSITE:=devel/lang/fortran/}

MAINTAINER=		pkgsrc-users@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'

.if exists(/usr/bin/fort77)
PKG_SKIP_REASON+=	"${PKGNAME} is part of your ${OPSYS} distribution"

USE_TOOLS+=		perl:run

	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; \
	${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"