diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-01-20 23:23:57 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-01-20 23:23:57 +0000 |
commit | baee51c780825dda308524ffd8584c980b5f1c2c (patch) | |
tree | 5363423afe011206c76732865238b1fb04cba027 /archivers | |
parent | 1dfc0898a661fc36e7996c43dbfb3b5ecc961788 (diff) | |
download | pkgsrc-baee51c780825dda308524ffd8584c980b5f1c2c.tar.gz |
As suggested by wiz:
Make sure a ${PREFIX}/bin/gtar exists independent of ${GNU_PROGRAM_PREFIX},
since it's needed for pkgsrc, and make pkgsrc use ${PREFIX}/bin/gtar.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/gtar-base/Makefile | 11 | ||||
-rw-r--r-- | archivers/gtar-base/PLIST | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/archivers/gtar-base/Makefile b/archivers/gtar-base/Makefile index 765e66aac2c..91346b7c31e 100644 --- a/archivers/gtar-base/Makefile +++ b/archivers/gtar-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.25 2002/12/22 17:15:33 wiz Exp $ +# $NetBSD: Makefile,v 1.26 2003/01/20 23:23:57 jschauma Exp $ # DISTNAME= tar-1.13.25 @@ -31,11 +31,20 @@ PLIST_SRC= ${.CURDIR}/PLIST.Darwin EXTRACT_SUFX= .tar.gz .endif +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" +PLIST_SUBST+= GTAR_LINK="" +.else +PLIST_SUBST+= GTAR_LINK="@comment " +.endif + post-patch: @${ECHO} '' >>${WRKSRC}/po/fr.po post-install: ${INSTALL_DATA} ${FILESDIR}/gtar.1 \ ${PREFIX}/man/man1/${GNU_PROGRAM_PREFIX}tar.1 +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" + ${LN} -s ${GNU_PROGRAM_PREFIX}tar ${PREFIX}/bin/gtar +.endif .include "../../mk/bsd.pkg.mk" diff --git a/archivers/gtar-base/PLIST b/archivers/gtar-base/PLIST index 5058ac509a7..0efcfcc70e9 100644 --- a/archivers/gtar-base/PLIST +++ b/archivers/gtar-base/PLIST @@ -1,5 +1,6 @@ -@comment $NetBSD: PLIST,v 1.4 2002/12/22 01:34:38 wiz Exp $ +@comment $NetBSD: PLIST,v 1.5 2003/01/20 23:23:57 jschauma Exp $ bin/${GNU_PROGRAM_PREFIX}tar +${GTAR_LINK}bin/gtar man/man1/${GNU_PROGRAM_PREFIX}tar.1 ${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/tar.mo ${PKGLOCALEDIR}/locale/da/LC_MESSAGES/tar.mo |