blob: fc8b3508d225fa91107f1e6bd25fef57e215b919 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# New ports collection makefile for: indent
# Version required: 1.9.1
# Date created: 28 August 1997
# Whom: Kapil Chowksey <kchowksey@hss.hns.com>
#
# $NetBSD: Makefile,v 1.6 1998/01/25 00:42:46 hubertf Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1997/08/29 09:20:00 obrien Exp
#
DISTNAME= indent-1.9.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU}
MAINTAINER= kchowksey@hss.hns.com
OPSYS!= uname -s
.if (${OPSYS} == "NetBSD")
BUILD_DEPENDS= ${PREFIX}/bin/install-info:${PORTSDIR}/devel/gtexinfo
.endif
GNU_CONFIGURE= yes
MAN1= indent.1
MAKEFILE= makefile
# agc - force makeinfo to create a new info file with the Dir info.
pre-install:
@rm -f indent.info
post-install:
@strip ${PREFIX}/bin/indent
@test -d ${PREFIX}/info || ${MKDIR} ${PREFIX}/info \
&& chmod a+rx ${PREFIX}/info
@if [ ! -f ${PREFIX}/info/dir ]; then \
if [ -f /usr/share/info/dir ]; then \
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
else \
${TOUCH} ${PREFIX}/info/dir ; \
fi ; \
fi
@install-info ${PREFIX}/info/indent.info ${PREFIX}/info/dir
.include <bsd.port.mk>
|