blob: c58ddd4c1c1ccb0b8d9c54e298a117339c909cba (
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
|
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= poslib
PORTVERSION= 1.0.6
PORTREVISION= 1
CATEGORIES= devel dns
MASTER_SITES= SF/posadis/${PORTNAME}/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Posadis C++ DNS library
LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= DOCS EXAMPLES
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
PLIST_SUB= VERSION="${PORTVERSION}"
post-patch:
@${REINPLACE_CMD} -e \
'/CXXFLAGS/s|-O0|$$CXXFLAGS| ; \
/LIBS=/s|-lstdc++||' ${WRKSRC}/configure
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog NEWS README TODO
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.cpp \
${STAGEDIR}${EXAMPLESDIR})
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libposlib.so.0 \
${STAGEDIR}${PREFIX}/lib/libposserver.so.0
.include <bsd.port.mk>
|