# Created by: Hung-Yi Chen # $FreeBSD: head/net/libnatpmp/Makefile 436144 2017-03-14 10:33:26Z robak $ PORTNAME= libnatpmp PORTVERSION= 20150609 CATEGORIES= net MASTER_SITES= http://miniupnp.free.fr/files/ MAINTAINER= gaod@hychen.org COMMENT= NAT-PMP lightweight library LICENSE= BSD3CLAUSE USES= gmake USE_LDCONFIG= yes MAKE_ARGS+= CC="${CC}" MAKE_ENV+= INSTALLPREFIX=${STAGEDIR}${PREFIX} PLIST_FILES= bin/natpmpc \ include/natpmp.h \ lib/libnatpmp.a \ lib/libnatpmp.so \ lib/libnatpmp.so.1 post-patch: @${REINPLACE_CMD} -e 's/^LIBSPEC //' \ -e '/declspec\.h/d' \ ${WRKSRC}/natpmp.h post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/natpmpc \ ${STAGEDIR}${PREFIX}/lib/libnatpmp.so.1 .include