14eb15e82b
- Respect CXXFLAGS - Add LICENSE - Support staging, strip library PR: ports/184897 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
41 lines
917 B
Makefile
41 lines
917 B
Makefile
# 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>
|