1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

textproc/chpp: Optional USES=makeinfo

- Utilize USES=makeinfo only when used specially for DOCS only in this
  case.
- Utilize USES=localbase
- Pet portclippy
This commit is contained in:
Muhammad Moinur Rahman 2023-10-20 18:24:39 +02:00
parent e42223a075
commit bddac0b8ed

View File

@ -15,17 +15,16 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgc.so:devel/boehm-gc \
libgnuregex.so.6:devel/libgnuregex
USES= autoreconf gmake makeinfo
USES= autoreconf gmake localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INFO= chpp
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_USES= makeinfo
DOCS_INFO= chpp
.include <bsd.port.pre.mk>
post-extract:
@ -39,11 +38,15 @@ post-patch:
s| regex.c regex.h | | ; \
/LDADD/s| gc/gc.a | -lgc -lgnuregex | ; \
s|^YFLAGS|AM_YFLAGS|' ${WRKSRC}/Makefile.am
.for i in arrayops.c builtins.c stringops.c
.for i in arrayops.c stringops.c
@${REINPLACE_CMD} -e \
's|"../regex.h"|<gnu/regex.h>|' ${WRKSRC}/builtins/${i}
.endfor
post-patch-DOCS-off:
@${REINPLACE_CMD} -e \
'/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.am
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for filename in AUTHORS NEWS README