summaryrefslogtreecommitdiff
path: root/archivers/gsharutils/Makefile
diff options
context:
space:
mode:
authorcheusov <cheusov>2012-05-29 20:52:55 +0000
committercheusov <cheusov>2012-05-29 20:52:55 +0000
commit3f4034ed5c5380639599435404dec7b86665f6f4 (patch)
treeda8b5d88a0a7815d8019ca094b53e00a7d681324 /archivers/gsharutils/Makefile
parente2b23f6bae678595c6cf8c558fca2793ae9c032f (diff)
downloadpkgsrc-3f4034ed5c5380639599435404dec7b86665f6f4.tar.gz
Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@).
All utilities are installed with a prefix 'g'. Symlinks with original names are created in ${PREFIX}/gnu/bin. ++pkgrevision
Diffstat (limited to 'archivers/gsharutils/Makefile')
-rw-r--r--archivers/gsharutils/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/archivers/gsharutils/Makefile b/archivers/gsharutils/Makefile
index 5da0d890a26..3450b8c575f 100644
--- a/archivers/gsharutils/Makefile
+++ b/archivers/gsharutils/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2011/11/19 18:59:20 marino Exp $
+# $NetBSD: Makefile,v 1.46 2012/05/29 20:52:55 cheusov Exp $
DISTNAME= sharutils-4.11.1
+PKGREVISION= 1
PKGNAME= g${DISTNAME}
CATEGORIES= archivers
MASTER_SITES= ${MASTER_SITE_GNU:=sharutils/}
@@ -13,6 +14,8 @@ LICENSE= gnu-gpl-v3
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS= gnu/bin
+
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
@@ -21,15 +24,14 @@ INFO_FILES= yes
USE_TOOLS+= makeinfo msgfmt sh:run
CONFIGURE_ARGS+= --disable-uucode
-CONFIGURE_ENV+= SH=${TOOLS_SH:Q}
+CONFIGURE_ENV+= SH=${TOOLS_SH}
-.include "../../mk/bsd.prefs.mk"
+CONFIGURE_ARGS+= --program-prefix=g
-.if defined(GNU_PROGRAM_PREFIX)
-CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
-.endif
-PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX:Q}
-BUILD_DEFS+= GNU_PROGRAM_PREFIX
+post-install:
+ set -e; cd ${DESTDIR}${PREFIX}/gnu/bin; \
+ ln -s ../../bin/gshar shar; \
+ ln -s ../../bin/gunshar unshar
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"