diff options
author | wiz <wiz@pkgsrc.org> | 2002-12-23 20:08:50 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2002-12-23 20:08:50 +0000 |
commit | 0e32a2f000d2feb8d7acdce29fd650015fa0b9c7 (patch) | |
tree | ea97f7bbd4461fdaef652b1482907e0bc6eaa27a /devel/m4/Makefile | |
parent | 8473122b88f1a68b2da222ae37f74a1f058654b5 (diff) | |
download | pkgsrc-0e32a2f000d2feb8d7acdce29fd650015fa0b9c7.tar.gz |
Honor GNU_PROGRAM_PREFIX; install gm4 in any case for pkgsrc use.
Change share dirname from gm4 to m4 to match PKGNAME.
Bump PKGREVISION to 1.
Diffstat (limited to 'devel/m4/Makefile')
-rw-r--r-- | devel/m4/Makefile | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile index 4322a0f7512..47336d0b913 100644 --- a/devel/m4/Makefile +++ b/devel/m4/Makefile @@ -1,26 +1,42 @@ -# $NetBSD: Makefile,v 1.17 2002/08/25 21:49:45 jlam Exp $ -# FreeBSD Id: Makefile,v 1.7 1997/06/16 08:22:35 max Exp +# $NetBSD: Makefile,v 1.18 2002/12/23 20:08:50 wiz Exp $ # -DISTNAME= m4-1.4 +DISTNAME= m4-1.4 +PKGREVISION= 1 CATEGORIES= devel -MASTER_SITES= ${MASTER_SITE_GNU:=m4/} +MASTER_SITES= ${MASTER_SITE_GNU:=m4/} MAINTAINER= packages@netbsd.org COMMENT= GNU version of Unix m4 macro-processor USE_BUILDLINK2= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --program-prefix=g INFO_FILES= m4.info TEXINFO_OVERRIDE= YES +.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+= GM4_LINK="" +.else +PLIST_SUBST+= GM4_LINK="@comment " +.endif + pre-build: ${CHMOD} u+w ${WRKSRC}/checks/stamp-checks post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gm4 - ${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/share/examples/gm4 + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/m4 + ${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/share/examples/m4 +.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g" + ${LN} -s ${GNU_PROGRAM_PREFIX}m4 ${PREFIX}/bin/gm4 +.endif .include "../../mk/texinfo.mk" .include "../../mk/bsd.pkg.mk" |