summaryrefslogtreecommitdiff
path: root/devel/gmake/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-25 23:31:22 +0000
committerjlam <jlam@pkgsrc.org>2004-03-25 23:31:22 +0000
commitc5aa0649e4b588e282f25822b4b999f85372bbb4 (patch)
tree4ed97c9ff58387b74e36d8c9f16168e463156a24 /devel/gmake/Makefile
parent98196bcc44d4a230ceaf4da519191df61ec8d425 (diff)
downloadpkgsrc-c5aa0649e4b588e282f25822b4b999f85372bbb4.tar.gz
Allow building a gmake without a dependency on gettext, libiconv,
libtool, etc. if GMAKE_LOCALE=no. This allows "bootstrapping" lang/gcc or lang/gcc3-c more automatically. Bump the PKGREVISION.
Diffstat (limited to 'devel/gmake/Makefile')
-rw-r--r--devel/gmake/Makefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/devel/gmake/Makefile b/devel/gmake/Makefile
index 4227602121b..30eb0292c5b 100644
--- a/devel/gmake/Makefile
+++ b/devel/gmake/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.55 2004/02/09 12:38:08 wiz Exp $
+# $NetBSD: Makefile,v 1.56 2004/03/25 23:31:22 jlam Exp $
DISTNAME= make-3.80
PKGNAME= gmake-3.80
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=make/}
@@ -12,9 +12,8 @@ COMMENT= GNU version of 'make' utility
PKG_INSTALLATION_TYPES= overwrite pkgviews
-USE_BUILDLINK3= YES
-GNU_CONFIGURE= YES
-USE_PKGLOCALEDIR= YES
+USE_BUILDLINK3= yes
+GNU_CONFIGURE= yes
TEXINFO_REQD= 4.0
INFO_FILES= make.info
@@ -37,6 +36,19 @@ PLIST_SUBST+= GMAKE_LINK=""
PLIST_SUBST+= GMAKE_LINK="@comment "
.endif
+PLIST_SRC= ${PKGDIR}/PLIST
+
+GMAKE_LOCALE?= yes
+BUILD_DEFS+= GMAKE_LOCALE
+.if !empty(GMAKE_LOCALE:M[yY][eE][sS])
+USE_PKGLOCALEDIR= yes
+PLIST_SRC+= ${PKGDIR}/PLIST.locale
+. include "../../devel/gettext-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-libintl
+CONFIGURE_ARGS+= --without-libiconv
+.endif
+
post-install:
${CHMOD} g-s ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
${CHGRP} ${BINGRP} ${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make
@@ -44,5 +56,4 @@ post-install:
${LN} -sf ${GNU_PROGRAM_PREFIX}make ${PREFIX}/bin/gmake
.endif
-.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"