summaryrefslogtreecommitdiff
path: root/devel/gmake
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2002-12-23 20:30:43 +0000
committerwiz <wiz@pkgsrc.org>2002-12-23 20:30:43 +0000
commit030a12ccc88d2b4c5d8c59bf20f5f05478544dc2 (patch)
treeed671c5740df7d2fc894b4ca2785ef1243cbcaaf /devel/gmake
parent0e32a2f000d2feb8d7acdce29fd650015fa0b9c7 (diff)
downloadpkgsrc-030a12ccc88d2b4c5d8c59bf20f5f05478544dc2.tar.gz
Honor GNU_PROGRAM_PREFIX. Install 'gmake' link in any case for pkgsrc use.
Bump PKGREVISION to 1.
Diffstat (limited to 'devel/gmake')
-rw-r--r--devel/gmake/Makefile31
-rw-r--r--devel/gmake/PLIST7
2 files changed, 28 insertions, 10 deletions
diff --git a/devel/gmake/Makefile b/devel/gmake/Makefile
index c561d595b18..11aab191781 100644
--- a/devel/gmake/Makefile
+++ b/devel/gmake/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.41 2002/12/02 22:14:54 jlam Exp $
+# $NetBSD: Makefile,v 1.42 2002/12/23 20:30:43 wiz Exp $
-DISTNAME= make-3.80
-PKGNAME= gmake-3.80
+DISTNAME= make-3.80
+PKGNAME= gmake-3.80
+PKGREVISION= 1
CATEGORIES= devel
-MASTER_SITES= ${MASTER_SITE_GNU:=make/}
+MASTER_SITES= ${MASTER_SITE_GNU:=make/}
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnu.org/software/make/make.html
@@ -12,18 +13,34 @@ COMMENT= GNU version of 'make' utility
USE_BUILDLINK2= YES
GNU_CONFIGURE= YES
USE_PKGLOCALEDIR= YES
-CONFIGURE_ARGS+= --program-prefix="g"
TEXINFO_OVERRIDE= YES
TEXINFO_REQD= 4.0
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(GNU_PROGRAM_PREFIX)
+CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
+.endif
+PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
+BUILD_DEFS+= GNU_PROGRAM_PREFIX
+
+.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
+PLIST_SUBST+= GMAKE_LINK=""
+.else
+PLIST_SUBST+= GMAKE_LINK="@comment "
+.endif
+
post-extract:
${MV} ${WRKSRC}/doc/make.texi ${WRKSRC}/doc/make.texi.orig
${SED} '/@dircategory/s|.*|@dircategory Programming \& development tools|' \
< ${WRKSRC}/doc/make.texi.orig > ${WRKSRC}/doc/make.texi
post-install:
- ${CHMOD} g-s ${PREFIX}/bin/gmake
- ${CHGRP} ${BINGRP} ${PREFIX}/bin/gmake
+ ${CHMOD} g-s ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
+ ${CHGRP} ${BINGRP} ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
+.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
+ ${LN} -s ${GNU_PROGRAM_PREFIX}make ${PREFIX}/bin/gmake
+.endif
# NOTE: the 'test' target requires perl, but since gmake does
# not otherwise require it, perl is not listed as an explicit
diff --git a/devel/gmake/PLIST b/devel/gmake/PLIST
index 9b8bb8eac8b..3927d5811e6 100644
--- a/devel/gmake/PLIST
+++ b/devel/gmake/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.3 2002/10/16 00:21:22 dmcmahill Exp $
-bin/gmake
+@comment $NetBSD: PLIST,v 1.4 2002/12/23 20:30:43 wiz Exp $
+bin/${GNU_PROGRAM_PREFIX}make
+${GMAKE_LINK}bin/gmake
@unexec ${INSTALL_INFO} --delete %D/info/make.info %D/info/dir
info/make.info
info/make.info-1
@@ -14,7 +15,7 @@ info/make.info-9
info/make.info-10
info/make.info-11
@exec ${INSTALL_INFO} %D/info/make.info %D/info/dir
-man/man1/gmake.1
+man/man1/${GNU_PROGRAM_PREFIX}make.1
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/make.mo
${PKGLOCALEDIR}/locale/de/LC_MESSAGES/make.mo
${PKGLOCALEDIR}/locale/es/LC_MESSAGES/make.mo