tradcpp is a K&R-style ("traditional") C preprocessor. It was written to support historical uses of the C preprocessor for preprocessing things that aren't C, as the preprocessors that ship with C compilers are increasingly unsuitable for this task and/or don't provide a traditional mode at all. In particular, tradcpp preserves whitespace as much as possible, so it can be used in contexts where whitespace is significant and/or rearranging whitespace causes things to break, such as makefiles. Preprocessing makefiles with cpp is a fairly common property of sufficiently old legacy build systems, including old versions of Emacs and anything that uses imake. this port is imported to replace tradcpp from base which is not used there anymore and also include all the modifications we had, including pledge(2) support ok aja@, jsg@
23 lines
452 B
Makefile
23 lines
452 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2021/12/12 11:35:44 robert Exp $
|
|
|
|
COMMENT = traditional (K&R-style) C preprocessor
|
|
|
|
V = 0.5.3
|
|
DISTNAME = tradcpp-${V}
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://www.netbsd.org/~dholland/tradcpp/
|
|
MASTER_SITES = https://ftp.NetBSD.org/pub/NetBSD/misc/dholland/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
# uses pledge()
|
|
WANTLIB = c
|
|
|
|
MAKE_FLAGS = BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man
|
|
NO_TEST = Yes
|
|
|
|
.include <bsd.port.mk>
|