freebsd-ports/textproc/chpp/Makefile

63 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Andrey Zakhvatov <andy@FreeBSD.org>
# $FreeBSD$
PORTNAME= chpp
2001-02-05 17:35:26 +01:00
PORTVERSION= 0.3.5
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= http://www.complang.tuwien.ac.at/schani/chpp/files/ \
http://freebsd.nsu.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
2003-02-20 20:21:36 +01:00
COMMENT= Non-intrusive full-featured text preprocessor
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgc.so:devel/boehm-gc
USES= autoreconf gmake makeinfo
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --libdir=${PREFIX}/share
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2005-12-04 11:58:19 +01:00
INFO= chpp
OPTIONS_DEFINE= DOCS EXAMPLES
2004-02-23 04:53:37 +01:00
.include <bsd.port.pre.mk>
2017-04-08 17:47:03 +02:00
.if ${ARCH} != "i386" && ${ARCH} != "amd64" && ${ARCH} != "powerpc64"
BROKEN= Does not compile
2004-02-23 04:53:37 +01:00
.endif
post-extract:
.for i in getopt.h regex.h gc/gc.h
@cd ${WRKSRC} && ${MV} -f ${i} ${i}.dist
.endfor
post-patch:
@${REINPLACE_CMD} -e \
's| getopt.c getopt.h getopt1.c | | ; \
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
@${REINPLACE_CMD} -e \
's|"../regex.h"|<gnu/regex.h>|' ${WRKSRC}/builtins/${i}
.endfor
2015-11-12 18:23:14 +01:00
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in AUTHORS NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
2015-11-12 18:23:14 +01:00
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
2004-02-23 04:53:37 +01:00
.include <bsd.port.post.mk>