From c5aa0649e4b588e282f25822b4b999f85372bbb4 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 25 Mar 2004 23:31:22 +0000 Subject: 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. --- devel/gmake/Makefile | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'devel/gmake/Makefile') 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" -- cgit v1.2.3