# Created by: Sergei Kolobov # $FreeBSD: head/devel/poslib/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $ PORTNAME= poslib PORTVERSION= 1.0.6 PORTREVISION= 2 CATEGORIES= devel dns MASTER_SITES= SF/posadis/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Posadis C++ DNS library LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USES= libtool USE_LDCONFIG= yes PLIST_SUB= VERSION="${PORTVERSION}" OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e \ '/CXXFLAGS/s|-O0|$$CXXFLAGS| ; \ /LIBS=/s|-lstdc++||' ${WRKSRC}/configure post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in AUTHORS ChangeLog NEWS README TODO (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${DOCSDIR}) .endfor post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/examples && ${INSTALL_DATA} *.cpp \ ${STAGEDIR}${EXAMPLESDIR}) .include