6fd691cb59
-- Sunifdef is a commandline tool for eliminating superfluous preprocessor clutter from C and C++ source files. It is a more powerful successor to the FreeBSD 'unifdef' tool. Sunifdef is most useful to developers of constantly evolving products with large code bases, where preprocessor conditionals are used to configure the feature sets, APIs or implementations of different releases. In these environments the code base steadily accumulates #ifdef pollution as transient configuration options become obselete. Sunifdef can largely automate the recurrent task of purging redundant #if logic from the code.
31 lines
782 B
Makefile
31 lines
782 B
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2008/05/22 03:10:01 bjs Exp $
|
|
#
|
|
|
|
DISTNAME= sunifdef-3.1.3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://www.strudl.org/public_ftp/sunifdef/nix/stable/
|
|
|
|
MAINTAINER= bjs@NetBSD.org
|
|
HOMEPAGE= http://www.strudl.org/public_ftp/sunifdef/nix/stable/
|
|
COMMENT= Tool for eliminating superfluous C preprocessor conditionals
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
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"
|