1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/textproc/chpp/Makefile
Martin Wilke 19a3bab30b - Unbreak for amd64
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support COPYTREE_SHARE

PR:		168046
Submitted by:	Ports Fury
2012-05-25 15:20:06 +00:00

68 lines
1.5 KiB
Makefile

# New ports collection makefile for: chpp
# Date created: 4 May 1999
# Whom: Andrey Zakhvatov <andy@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= chpp
PORTVERSION= 0.3.5
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.complang.tuwien.ac.at/schani/chpp/files/ \
http://freebsd.nsu.ru/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Non-intrusive full-featured text preprocessor
LICENSE= GPLv2
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc
USE_GMAKE= yes
USE_AUTOTOOLS= autoheader aclocal automake autoconf
AUTOMAKE_ARGS= --add-missing --copy --force-missing
CONFIGURE_ARGS= --libdir=${PREFIX}/share
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INFO= chpp
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
BROKEN= Does not compile
.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
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in AUTHORS NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.post.mk>