summaryrefslogtreecommitdiff
path: root/devel/sunifdef/Makefile
blob: 0cbee46b1fb017a6db3bb69fbda1edda1898c4a6 (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.8 2016/07/09 06:38:13 wiz Exp $
#

DISTNAME=	sunifdef-3.1.3
PKGREVISION=	5
CATEGORIES=	devel
MASTER_SITES=	http://www.strudl.org/public_ftp/sunifdef/nix/stable/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.strudl.org/public_ftp/sunifdef/nix/stable/
COMMENT=	Tool for eliminating superfluous C preprocessor conditionals

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes

HTMLDIR=	${PREFIX}/share/doc/${PKGBASE}/html

.include "../../mk/bsd.prefs.mk"

.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) || make(test)
USE_TOOLS+=		perl
TEST_TARGET=		check
.endif

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
	${INSTALL_DATA} ${WRKSRC}/man/html/sunifdef_man_1.html \
		${DESTDIR}${HTMLDIR}/${PKGBASE}_man_1.html

.include "../../mk/bsd.pkg.mk"