Lines 7-43
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= chpp |
8 |
PORTNAME= chpp |
9 |
PORTVERSION= 0.3.5 |
9 |
PORTVERSION= 0.3.5 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= textproc |
11 |
CATEGORIES= textproc |
11 |
MASTER_SITES= http://www.complang.tuwien.ac.at/~schani/chpp/files/ \ |
12 |
MASTER_SITES= http://www.complang.tuwien.ac.at/schani/chpp/files/ \ |
12 |
http://freebsd.nsu.ru/distfiles/ |
13 |
http://freebsd.nsu.ru/distfiles/ |
13 |
|
14 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Non-intrusive full-featured text preprocessor |
16 |
COMMENT= Non-intrusive full-featured text preprocessor |
16 |
|
17 |
|
17 |
GNU_CONFIGURE= yes |
18 |
LICENSE= GPLv2 |
|
|
19 |
|
20 |
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc |
21 |
|
22 |
USE_GMAKE= yes |
23 |
USE_AUTOTOOLS= autoheader aclocal automake autoconf |
24 |
AUTOMAKE_ARGS= --add-missing --copy --force-missing |
18 |
CONFIGURE_ARGS= --libdir=${PREFIX}/share |
25 |
CONFIGURE_ARGS= --libdir=${PREFIX}/share |
|
|
26 |
MAKE_JOBS_SAFE= yes |
27 |
|
28 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
LDFLAGS+= -L${LOCALBASE}/lib |
19 |
|
30 |
|
20 |
INFO= chpp |
31 |
INFO= chpp |
21 |
|
32 |
|
22 |
.include <bsd.port.pre.mk> |
33 |
.include <bsd.port.pre.mk> |
23 |
|
34 |
|
24 |
.if ${ARCH} != "i386" |
35 |
.if ${ARCH} != "i386" && ${ARCH} != "amd64" |
25 |
BROKEN= Does not compile |
36 |
BROKEN= Does not compile |
26 |
.endif |
37 |
.endif |
27 |
|
38 |
|
|
|
39 |
post-extract: |
40 |
.for i in getopt.h regex.h gc/gc.h |
41 |
@cd ${WRKSRC} && ${MV} -f ${i} ${i}.dist |
42 |
.endfor |
43 |
|
44 |
post-patch: |
45 |
@${REINPLACE_CMD} -e \ |
46 |
's| getopt.c getopt.h getopt1.c | | ; \ |
47 |
s| regex.c regex.h | | ; \ |
48 |
/LDADD/s| gc/gc.a | -lgc -lgnuregex | ; \ |
49 |
s|^YFLAGS|AM_YFLAGS|' ${WRKSRC}/Makefile.am |
50 |
.for i in arrayops.c builtins.c stringops.c |
51 |
@${REINPLACE_CMD} -e \ |
52 |
's|"../regex.h"|<gnu/regex.h>|' ${WRKSRC}/builtins/${i} |
53 |
.endfor |
54 |
|
28 |
post-install: |
55 |
post-install: |
29 |
.if !defined(NOPORTEXAMPLES) |
|
|
30 |
@${MKDIR} ${EXAMPLESDIR} |
31 |
${TAR} -C ${WRKSRC}/test -cf - . | \ |
32 |
${TAR} -C ${EXAMPLESDIR} --unlink -xf - |
33 |
@${FIND} ${EXAMPLESDIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} |
34 |
@${FIND} ${EXAMPLESDIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} |
35 |
.endif |
36 |
.if !defined(NOPORTDOCS) |
56 |
.if !defined(NOPORTDOCS) |
37 |
@${MKDIR} ${DOCSDIR} |
57 |
@${MKDIR} ${DOCSDIR} |
38 |
.for file in AUTHORS NEWS README |
58 |
.for file in AUTHORS NEWS README |
39 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
40 |
.endfor |
60 |
.endfor |
41 |
.endif |
61 |
.endif |
|
|
62 |
.if !defined(NOPORTEXAMPLES) |
63 |
@${MKDIR} ${EXAMPLESDIR} |
64 |
@(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
65 |
.endif |
42 |
|
66 |
|
43 |
.include <bsd.port.post.mk> |
67 |
.include <bsd.port.post.mk> |