mirror of
https://git.freebsd.org/ports.git
synced 2025-05-18 10:03:10 -04:00
35 lines
791 B
Makefile
35 lines
791 B
Makefile
PORTNAME= gindent
|
|
DISTVERSION= 2.2.12
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= GNU/indent
|
|
DISTNAME= indent-${DISTVERSION}
|
|
|
|
MAINTAINER= moritz@schmi.tt
|
|
COMMENT= C source code reformatter
|
|
WWW= https://www.gnu.org/software/indent/indent.html
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= groff:run localbase:ldflags makeinfo
|
|
|
|
INFO= indent
|
|
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
|
|
CONFIGURE_ARGS= --program-prefix=g --htmldir=${DOCSDIR}
|
|
|
|
CPPFLAGS+= -DBERKELEY_DEFAULTS=1
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
NLS_DESC= Native Language Support via gettext utilities
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_OFF= --disable-nls
|
|
|
|
post-patch:
|
|
@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|malloc\.h|stdlib.h|g'
|
|
|
|
.include <bsd.port.mk>
|