blob: 44e3a8eb0a3202675ddcae3a6c91cdf00b7c1720 (
plain) (
blame)
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
|
# Created by: Hung-Yi Chen <gaod@hychen.org>
# $FreeBSD$
PORTNAME= libnatpmp
PORTVERSION= 20140401
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}
CFLAGS+= -fPIC
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 <bsd.port.mk>
|