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 |
|
|
|
18 |
LICENSE= GPLv2 |
19 |
|
20 |
LIB_DEPENDS= gc.1:${PORTSDIR}/devel/boehm-gc |
21 |
|
22 |
USE_GMAKE= yes |
17 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
18 |
CONFIGURE_ARGS= --libdir=${PREFIX}/share |
24 |
CONFIGURE_ARGS= --libdir=${PREFIX}/share |
|
|
25 |
MAKE_JOBS_SAFE= yes |
26 |
|
27 |
CPPFLAGS+= -I${LOCALBASE}/include |
28 |
LDFLAGS+= -L${LOCALBASE}/lib |
19 |
|
29 |
|
20 |
INFO= chpp |
30 |
INFO= chpp |
21 |
|
31 |
|
22 |
.include <bsd.port.pre.mk> |
32 |
.include <bsd.port.pre.mk> |
23 |
|
33 |
|
24 |
.if ${ARCH} != "i386" |
34 |
.if ${ARCH} != "i386" && ${ARCH} != "amd64" |
25 |
BROKEN= Does not compile |
35 |
BROKEN= Does not compile |
26 |
.endif |
36 |
.endif |
27 |
|
37 |
|
|
|
38 |
post-extract: |
39 |
@${RM} -f ${WRKSRC}/gc/gc.h |
40 |
|
41 |
post-patch: |
42 |
@${REINPLACE_CMD} -e \ |
43 |
'/LDADD/s|gc/gc.a|-lgc| ; \ |
44 |
/LIBOBJS/s|gc/gc.a|| ; \ |
45 |
s|gc/gc.h||' ${WRKSRC}/Makefile.in |
46 |
@${REINPLACE_CMD} -e \ |
47 |
's|../gc/gc.h||' ${WRKSRC}/builtins/Makefile.in |
48 |
@${REINPLACE_CMD} -e \ |
49 |
's|../../gc/gc.h||' ${WRKSRC}/builtins/database/Makefile.in |
50 |
|
28 |
post-install: |
51 |
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) |
52 |
.if !defined(NOPORTDOCS) |
37 |
@${MKDIR} ${DOCSDIR} |
53 |
@${MKDIR} ${DOCSDIR} |
38 |
.for file in AUTHORS NEWS README |
54 |
.for file in AUTHORS NEWS README |
39 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
55 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
40 |
.endfor |
56 |
.endfor |
41 |
.endif |
57 |
.endif |
|
|
58 |
.if !defined(NOPORTEXAMPLES) |
59 |
@${MKDIR} ${EXAMPLESDIR} |
60 |
@(cd ${WRKSRC}/test && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) |
61 |
.endif |
42 |
|
62 |
|
43 |
.include <bsd.port.post.mk> |
63 |
.include <bsd.port.post.mk> |