View | Details | Raw Unified | Return to bug 194031 | Differences between
and this patch

Collapse All | Expand All

(-)net/miniupnpc/Makefile (-2 / +6 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	miniupnpc
3
PORTNAME=	miniupnpc
4
PORTVERSION=	1.8
4
PORTVERSION=	1.9.20140911
5
CATEGORIES?=	net
5
CATEGORIES?=	net
6
MASTER_SITES=	http://miniupnp.free.fr/files/
6
MASTER_SITES=	http://miniupnp.free.fr/files/
7
7
Lines 16-22 HAS_CONFIGURE= yes Link Here
16
USE_LDCONFIG=	yes
16
USE_LDCONFIG=	yes
17
17
18
CONFIGURE_SCRIPT=	updateminiupnpcstrings.sh
18
CONFIGURE_SCRIPT=	updateminiupnpcstrings.sh
19
MAKE_ENV+=	INSTALLPREFIX=${STAGEDIR}${PREFIX}
19
MAKE_ENV+=	INSTALLPREFIX="${PREFIX}"
20
20
21
.include <bsd.port.pre.mk>
21
.include <bsd.port.pre.mk>
22
22
Lines 26-31 CFLAGS+= -DDEBUG Link Here
26
26
27
.if ${SLAVE_PORT} == no
27
.if ${SLAVE_PORT} == no
28
USE_RC_SUBR=	miniupnpc
28
USE_RC_SUBR=	miniupnpc
29
30
post-install:
31
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/upnpc \
32
		${STAGEDIR}${PREFIX}/lib/libminiupnpc.so.10
29
.endif
33
.endif
30
34
31
.include <bsd.port.post.mk>
35
.include <bsd.port.post.mk>
(-)net/miniupnpc/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (miniupnpc-1.8.tar.gz) = bc5f73c7b0056252c1888a80e6075787a1e1e9112b808f863a245483ff79859c
1
SHA256 (miniupnpc-1.9.20140911.tar.gz) = 7435bebfdd8c76127136f733979ad2ab56999d204176a1044293536f2e20b21c
2
SIZE (miniupnpc-1.8.tar.gz) = 70624
2
SIZE (miniupnpc-1.9.20140911.tar.gz) = 76855
(-)net/miniupnpc/files/patch-Makefile (-9 lines)
Lines 9-23 Link Here
9
 CFLAGS += -ansi
9
 CFLAGS += -ansi
10
 # -DNO_GETADDRINFO
10
 # -DNO_GETADDRINFO
11
 INSTALL = install
11
 INSTALL = install
12
@@ -80,7 +80,7 @@
13
   SONAME = $(basename $(SHAREDLIBRARY)).$(APIVERSION).dylib
14
   CFLAGS := -DMACOSX -D_DARWIN_C_SOURCE $(CFLAGS)
15
 else
16
-ifeq ($(OS), Linux)
17
+ifeq ($(OS), FreeBSD)
18
   SHAREDLIBRARY = libminiupnpc.so
19
   SONAME = $(SHAREDLIBRARY).$(APIVERSION)
20
 endif
21
@@ -110,13 +110,11 @@
12
@@ -110,13 +110,11 @@
22
 TESTIGDDESCPARSE := $(TESTIGDDESCPARSE) minissdpc.o
13
 TESTIGDDESCPARSE := $(TESTIGDDESCPARSE) minissdpc.o
23
 endif
14
 endif
(-)net/miniupnpc/pkg-plist (-2 / +1 lines)
Lines 11-16 include/miniupnpc/upnpreplyparse.h Link Here
11
include/miniupnpc/upnperrors.h
11
include/miniupnpc/upnperrors.h
12
lib/libminiupnpc.a
12
lib/libminiupnpc.a
13
lib/libminiupnpc.so
13
lib/libminiupnpc.so
14
lib/libminiupnpc.so.9
14
lib/libminiupnpc.so.10
15
man/man3/miniupnpc.3.gz
15
man/man3/miniupnpc.3.gz
16
@dirrm include/miniupnpc
(-)net/py-miniupnpc/Makefile (-5 / +5 lines)
Lines 9-16 BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/net/mini Link Here
9
9
10
MASTERDIR=	${.CURDIR}/../miniupnpc
10
MASTERDIR=	${.CURDIR}/../miniupnpc
11
11
12
USE_PYTHON=	yes
12
USES=		python
13
USE_PYDISTUTILS=yes
13
USE_PYTHON=	distutils
14
PYDISTUTILS_PKGVERSION=${PORTVERSION:C/\.[0-9]{8}//}
14
15
15
WRKDIR=		${WRKDIRPREFIX}${MASTERDIR}/work
16
WRKDIR=		${WRKDIRPREFIX}${MASTERDIR}/work
16
PLIST=		${.CURDIR}/pkg-plist
17
PLIST=		${.CURDIR}/pkg-plist
Lines 19-26 PLIST= ${.CURDIR}/pkg-plist Link Here
19
.include "${.CURDIR}/Makefile.local"
20
.include "${.CURDIR}/Makefile.local"
20
.endif
21
.endif
21
22
22
post-patch:
23
post-install:
23
	@${REINPLACE_CMD} 's/\(version\)="[^"]*"/\1="${PORTVERSION}"/' \
24
	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/miniupnpc.so
24
		${WRKSRC}/setup.py
25
25
26
.include "${MASTERDIR}/Makefile"
26
.include "${MASTERDIR}/Makefile"

Return to bug 194031