Lines 1-9
Link Here
|
1 |
# Created by: Hung-Yi Chen <gaod@hychen.org> |
1 |
# Created by: Hung-Yi Chen <gaod@hychen.org> |
2 |
|
2 |
|
3 |
PORTNAME= libnatpmp |
3 |
PORTNAME= libnatpmp |
4 |
PORTVERSION= 20150609 |
4 |
PORTVERSION= 20211229 |
5 |
CATEGORIES= net |
5 |
CATEGORIES= net |
6 |
MASTER_SITES= http://miniupnp.free.fr/files/ |
|
|
7 |
|
6 |
|
8 |
MAINTAINER= gaod@hychen.org |
7 |
MAINTAINER= gaod@hychen.org |
9 |
COMMENT= NAT-PMP lightweight library |
8 |
COMMENT= NAT-PMP lightweight library |
Lines 15-20
USE_LDCONFIG= yes
Link Here
|
15 |
|
14 |
|
16 |
MAKE_ARGS+= CC="${CC}" |
15 |
MAKE_ARGS+= CC="${CC}" |
17 |
MAKE_ENV+= INSTALLPREFIX=${STAGEDIR}${PREFIX} |
16 |
MAKE_ENV+= INSTALLPREFIX=${STAGEDIR}${PREFIX} |
|
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= miniupnp |
19 |
GH_TAGNAME= 4b8b4470d78a |
18 |
|
20 |
|
19 |
PLIST_FILES= bin/natpmpc \ |
21 |
PLIST_FILES= bin/natpmpc \ |
20 |
include/natpmp.h \ |
22 |
include/natpmp.h \ |
Lines 22-32
PLIST_FILES= bin/natpmpc \
Link Here
|
22 |
lib/libnatpmp.so \ |
24 |
lib/libnatpmp.so \ |
23 |
lib/libnatpmp.so.1 |
25 |
lib/libnatpmp.so.1 |
24 |
|
26 |
|
25 |
post-patch: |
|
|
26 |
@${REINPLACE_CMD} -e 's/^LIBSPEC //' \ |
27 |
-e '/declspec\.h/d' \ |
28 |
${WRKSRC}/natpmp.h |
29 |
|
30 |
post-install: |
27 |
post-install: |
31 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/natpmpc \ |
28 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/natpmpc \ |
32 |
${STAGEDIR}${PREFIX}/lib/libnatpmp.so.1 |
29 |
${STAGEDIR}${PREFIX}/lib/libnatpmp.so.1 |