- handle and align x macros in brace initializers - handle and align cpp macros in brace initializers - allow enum declarations on a single line - preserve new lines before comments and cpp declarations at end of a statement block - only grow the buffer if more than half of the space is utilized - do not let a cpp branch inside a struct declaration end the current scope of alignment - long expressions in combination with optional new lines would not break under certain circumstances
28 lines
507 B
Makefile
28 lines
507 B
Makefile
# $OpenBSD: Makefile,v 1.6 2021/08/28 06:34:03 anton Exp $
|
|
|
|
COMMENT = kernel normal form formatter
|
|
|
|
V = 1.0.0
|
|
DISTNAME = knfmt-${V}
|
|
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/mptre/knfmt
|
|
|
|
MAINTAINER = Anton Lindqvist <anton@openbsd.org>
|
|
|
|
# ISC
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
# uses pledge()
|
|
WANTLIB += c
|
|
|
|
BUILD_DEPENDS = devel/uthash
|
|
|
|
MASTER_SITES = https://github.com/mptre/knfmt/releases/download/v${V}/
|
|
|
|
CONFIGURE_STYLE = simple
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
.include <bsd.port.mk>
|