diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-16 00:31:21 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-16 00:31:21 +0000 |
commit | 29a80a3a24f24930bbb076d18bbe1f8101a3f445 (patch) | |
tree | 634563dce619a7538ed8292615e3d7a16f5d49c3 | |
parent | 05c2492d93b684f9dfdd8787ec81478d85cf22dc (diff) | |
download | pkgsrc-29a80a3a24f24930bbb076d18bbe1f8101a3f445.tar.gz |
Add DESTDIR support.
-rw-r--r-- | lang/f2c/Makefile | 6 | ||||
-rw-r--r-- | lang/f2c/distinfo | 4 | ||||
-rw-r--r-- | lang/f2c/patches/patch-aa | 28 |
3 files changed, 21 insertions, 17 deletions
diff --git a/lang/f2c/Makefile b/lang/f2c/Makefile index d9ad22823f9..d7ced1eabd4 100644 --- a/lang/f2c/Makefile +++ b/lang/f2c/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2007/06/17 21:24:41 minskim Exp $ +# $NetBSD: Makefile,v 1.41 2007/08/16 00:31:21 joerg Exp $ DISTNAME= f2c-20001205 PKGREVISION= 9 @@ -22,6 +22,8 @@ MAINTAINER= dmcmahill@NetBSD.org HOMEPAGE= http://www.netlib.org/f2c/index.html COMMENT= Fortran to C compiler including a script to emulate f77 +PKG_DESTDIR_SUPPORT= user-destdir + CONFLICTS= egcs-current-19980608 F2CMAJOR= 0 @@ -36,6 +38,8 @@ WRKSRC= ${WRKDIR}/f2c USE_LIBTOOL= yes USE_TOOLS+= gunzip +INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1 + # work around a problem gunzipping 00lastchange.gz with # some versions of zlib found on NetBSD and also Gentoo post-extract: diff --git a/lang/f2c/distinfo b/lang/f2c/distinfo index 62266b1884e..0064a3bef6d 100644 --- a/lang/f2c/distinfo +++ b/lang/f2c/distinfo @@ -1,9 +1,9 @@ -$NetBSD: distinfo,v 1.17 2007/03/17 16:10:13 rillig Exp $ +$NetBSD: distinfo,v 1.18 2007/08/16 00:31:22 joerg Exp $ SHA1 (f2c-20001205.tar.gz) = f3cc1653eb962fee45d850df50890fc53448a17f RMD160 (f2c-20001205.tar.gz) = b376105c33ca53df46cab458082b26dbc9a53762 Size (f2c-20001205.tar.gz) = 988607 bytes -SHA1 (patch-aa) = 393fd165e886f9855eb043957049dea3b061e775 +SHA1 (patch-aa) = f9598998d662f74225a64fb019ddaf1e08bb16aa SHA1 (patch-ab) = 97c676fa452daa674e11348412ccb26d38a7baa4 SHA1 (patch-ad) = 7f204a45891e3632589ea8fb0e4e379a0a792dea SHA1 (patch-ae) = f17254cab1449273ca44e652ed2f1a586a9a3e19 diff --git a/lang/f2c/patches/patch-aa b/lang/f2c/patches/patch-aa index 54d3fac9d25..981c4148223 100644 --- a/lang/f2c/patches/patch-aa +++ b/lang/f2c/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.16 2007/03/17 16:10:13 rillig Exp $ +$NetBSD: patch-aa,v 1.17 2007/08/16 00:31:22 joerg Exp $ --- Makefile.orig Tue Sep 14 16:47:52 2004 +++ Makefile @@ -30,19 +30,19 @@ $NetBSD: patch-aa,v 1.16 2007/03/17 16:10:13 rillig Exp $ + + +install:: -+ -@mkdir -p ${PREFIX}/bin -+ ${BSD_INSTALL_PROGRAM} ./src/f2c ${PREFIX}/bin -+ ${BSD_INSTALL_SCRIPT} ./f2c-f77 ${PREFIX}/bin -+ -@mkdir -p ${PREFIX}/lib -+ @cd libI77 && ${MAKE} install LIBDIR=${PREFIX}/lib -+ @cd libF77 && ${MAKE} install LIBDIR=${PREFIX}/lib -+ -@mkdir -p ${PREFIX}/include -+ ${BSD_INSTALL_DATA} ./f2c.h ${PREFIX}/include -+ -@mkdir -p ${PREFIX}/share/doc/f2c -+ ${BSD_INSTALL_DATA} ./f2c.ps ${PREFIX}/share/doc/f2c -+ ${BSD_INSTALL_DATA} ./changes ${PREFIX}/share/doc/f2c -+ ${BSD_INSTALL_MAN} ./f2c.1 ${PREFIX}/${PKGMANDIR}/man1 -+ ${BSD_INSTALL_MAN} ./f2c.0 ${PREFIX}/${PKGMANDIR}/cat1 ++ -@mkdir -p ${DESTDIR}${PREFIX}/bin ++ ${BSD_INSTALL_PROGRAM} ./src/f2c ${DESTDIR}${PREFIX}/bin ++ ${BSD_INSTALL_SCRIPT} ./f2c-f77 ${DESTDIR}${PREFIX}/bin ++ -@mkdir -p ${DESTDIR}${PREFIX}/lib ++ @cd libI77 && ${MAKE} install LIBDIR=${DESTDIR}${PREFIX}/lib ++ @cd libF77 && ${MAKE} install LIBDIR=${DESTDIR}${PREFIX}/lib ++ -@mkdir -p ${DESTDIR}${PREFIX}/include ++ ${BSD_INSTALL_DATA} ./f2c.h ${DESTDIR}${PREFIX}/include ++ -@mkdir -p ${DESTDIR}${PREFIX}/share/doc/f2c ++ ${BSD_INSTALL_DATA} ./f2c.ps ${DESTDIR}${PREFIX}/share/doc/f2c ++ ${BSD_INSTALL_DATA} ./changes ${DESTDIR}${PREFIX}/share/doc/f2c ++ ${BSD_INSTALL_MAN} ./f2c.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ++ ${BSD_INSTALL_MAN} ./f2c.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1 + +f2c-f77: ${F2C_F77_IN} f2c hello.f + ./src/f2c -Aw8 -Nn802 -Nx400 hello.f |