From f02bccadfb44481155a2b2fbbeecc3d896ba87b5 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 6 Oct 1997 14:30:49 +0000 Subject: Add NetBSD RCS Ids. Use uname -s to work out the Operating System. FreeBSD has install-info and /usr/share/info/dir by default. NetBSD doesn't, so, for now, don't try to do this on NetBSD. --- devel/m4/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'devel/m4') diff --git a/devel/m4/Makefile b/devel/m4/Makefile index d7e5d96b068..4e1580f8f4f 100644 --- a/devel/m4/Makefile +++ b/devel/m4/Makefile @@ -1,3 +1,4 @@ +# $NetBSD: Makefile,v 1.2 1997/10/06 14:31:03 agc Exp $ # New ports collection makefile for: m4 # Version required: 1.4 # Date created: 25 October 1994 @@ -13,12 +14,17 @@ MASTER_SITES= ${MASTER_SITE_GNU} GNU_CONFIGURE=yes CONFIGURE_ARGS= --program-prefix=g +OPSYS!= uname -s + post-install: @${MKDIR} ${PREFIX}/share/examples/gm4 ${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/share/examples/gm4 +.if (${OPSYS} != "NetBSD") +# agc - this assumes /usr/share/info/dir and install-info @if [ ! -f ${PREFIX}/info/dir ]; then \ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \ fi @install-info ${PREFIX}/info/m4.info ${PREFIX}/info/dir +.endif .include -- cgit v1.2.3