Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/devel/gmake/Makefile 1997/10/09 09:20:43 1.4 +++ pkgsrc/devel/gmake/Makefile 2011/01/17 12:53:23 1.75 @@ -1,33 +1,65 @@ -# $NetBSD: Makefile,v 1.4 1997/10/09 09:20:43 agc Exp $ -# New ports collection makefile for: GNU make -# Version required: 3.75 -# Date created: 11 September 1994 -# Whom: jkh -# -# FreeBSD Id: Makefile,v 1.16 1997/06/13 20:00:47 max Exp -# +# $NetBSD: Makefile,v 1.75 2011/01/17 12:53:23 is Exp $ -DISTNAME= make-3.75 -PKGNAME= gmake-3.75 +DISTNAME= make-3.82 +PKGNAME= g${DISTNAME} +PKGREVISION= 1 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_GNU} +MASTER_SITES= ${MASTER_SITE_GNU:=make/} +EXTRACT_SUFX= .tar.bz2 -GNU_CONFIGURE= yes -MAN1= gmake.1 +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.gnu.org/software/make/make.html +COMMENT= GNU version of 'make' utility +LICENSE= gnu-gpl-v3 + +PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +TEXINFO_REQD+= 4.0 +INFO_FILES= yes + +# NOTE: the 'test' target requires perl, but since gmake does +# not otherwise require it, perl is not listed as an explicit +# dependency +TEST_TARGET= check -OPSYS!= uname -s +.include "../../mk/bsd.prefs.mk" -.if (${OPSYS} == "NetBSD") -BUILD_DEPENDS= install-info:${PORTSDIR}/devel/gtexinfo +.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 + +PLIST_VARS+= gmake + +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" +PLIST.gmake= yes +.endif + +PLIST_SRC= ${PKGDIR}/PLIST + +GMAKE_LOCALE?= yes +BUILD_DEFS+= GMAKE_LOCALE +MAKEFLAGS+= GMAKE_LOCALE=${GMAKE_LOCALE:Q} +.if !empty(GMAKE_LOCALE:M[yY][eE][sS]) +USE_PKGLOCALEDIR= yes +PLIST_SRC+= ${PKGDIR}/PLIST.locale +USE_TOOLS+= msgfmt +. include "../../devel/gettext-lib/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-libintl +CONFIGURE_ARGS+= --without-libiconv .endif -# joerg@freebsd.org says FreeBSD getloadavg() no longer requires setgid kmem post-install: - /bin/chmod g-s ${PREFIX}/bin/gmake - /usr/bin/chgrp ${BINGRP} ${PREFIX}/bin/gmake - @if [ ! -f ${PREFIX}/info/dir ]; then \ - ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ - fi - @install-info ${PREFIX}/info/make.info ${PREFIX}/info/dir + ${CHMOD} g-s ${DESTDIR}${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make + ${CHGRP} ${BINGRP} ${DESTDIR}${PREFIX}/bin/${GNU_PROGRAM_PREFIX}make +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" + ${LN} -sf ${GNU_PROGRAM_PREFIX}make ${DESTDIR}${PREFIX}/bin/gmake +.endif + +USE_TOOLS+=perl -.include +.include "../../mk/bsd.pkg.mk"