summaryrefslogtreecommitdiff
path: root/devel/m4/Makefile
blob: 4e1580f8f4f80f67295d8c65b1976b6d8c580593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $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
# Whom:			mr
#
# FreeBSD Id: Makefile,v 1.7 1997/06/16 08:22:35 max Exp
#

DISTNAME=       m4-1.4
CATEGORIES=	devel
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 <bsd.port.mk>