blob: 294610e0506e035ef29eee83c26e93d460912adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= pcre++
PORTVERSION= 0.9.5
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.daemon.de/idisk/Apps/pcre++/
MAINTAINER= ports@FreeBSD.org
COMMENT= Wrapper class around the pcre library
LICENSE= LGPL21
LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
USES= gmake
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
CPPFLAGS+= $$(${PCRE_CONFIG} --cflags)
LDFLAGS+= $$(${PCRE_CONFIG} --libs)
DOCSDIR= ${PREFIX}/share/doc/lib${PORTNAME}-${PORTVERSION}
PCRE_CONFIG?= ${LOCALBASE}/bin/pcre-config
post-patch:
@${REINPLACE_CMD} -e \
's| ../COPYING|| ; \
s| $$(prefix)/doc| $${DESTDIR}$$(prefix)/share/doc|' \
${WRKSRC}/doc/Makefile.in
.for i in examples/Makefile.in libpcre++/Makefile.in test/Makefile.in
@${REINPLACE_CMD} -e \
's|-O -g|@CXXFLAGS@|' ${WRKSRC}/${i}
.endfor
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpcre++.so.0
.include <bsd.port.mk>
|