diff options
author | wiedi <wiedi@pkgsrc.org> | 2017-07-03 11:53:57 +0000 |
---|---|---|
committer | wiedi <wiedi@pkgsrc.org> | 2017-07-03 11:53:57 +0000 |
commit | 5165c8cfd1d0b5d7b0cdbfa2814bd275553f7e00 (patch) | |
tree | 57a15c2cfae2ac633254574477fdf8015f9fe596 /net/miniupnpc | |
parent | fc9206bfe7667d5028e53750bdd53f9579db5ee6 (diff) | |
download | pkgsrc-5165c8cfd1d0b5d7b0cdbfa2814bd275553f7e00.tar.gz |
add support for PKGMANDIR and fix build on SunOS
Diffstat (limited to 'net/miniupnpc')
-rw-r--r-- | net/miniupnpc/Makefile | 6 | ||||
-rw-r--r-- | net/miniupnpc/distinfo | 5 | ||||
-rw-r--r-- | net/miniupnpc/patches/patch-Makefile | 4 | ||||
-rw-r--r-- | net/miniupnpc/patches/patch-minissdpc.c | 15 |
4 files changed, 25 insertions, 5 deletions
diff --git a/net/miniupnpc/Makefile b/net/miniupnpc/Makefile index b1254500402..3607cf647ce 100644 --- a/net/miniupnpc/Makefile +++ b/net/miniupnpc/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2016/12/01 22:28:29 adam Exp $ +# $NetBSD: Makefile,v 1.2 2017/07/03 11:53:57 wiedi Exp $ DISTNAME= miniupnpc-2.0 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= http://miniupnp.free.fr/files/download.php?file= @@ -10,5 +11,8 @@ COMMENT= Client and library for UPnP IGD services LICENSE= modified-bsd USE_TOOLS+= gmake +USE_LANGUAGES= c99 + +CPPFLAGS.SunOS+= -D__EXTENSIONS__ .include "../../mk/bsd.pkg.mk" diff --git a/net/miniupnpc/distinfo b/net/miniupnpc/distinfo index 1377bcbbc7d..d2421287661 100644 --- a/net/miniupnpc/distinfo +++ b/net/miniupnpc/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1 2016/12/01 22:28:29 adam Exp $ +$NetBSD: distinfo,v 1.2 2017/07/03 11:53:57 wiedi Exp $ SHA1 (miniupnpc-2.0.tar.gz) = 21181b364be330436922459c1f81ee641ac182a6 RMD160 (miniupnpc-2.0.tar.gz) = b3038dc6a78be0bc161dc226f79fd0fd8b66fdb3 SHA512 (miniupnpc-2.0.tar.gz) = e8bca24265086518fa3bdc25fc31371ddf878adaa2bd6a80b30f33a3e5adb831220e906302832f2250e489a73ecd7e6c9a6bfcb1c70258a90e4c4712196275de Size (miniupnpc-2.0.tar.gz) = 85287 bytes -SHA1 (patch-Makefile) = 7eb888a6a1ee6005506aae69a6c6e7194e5b6ba7 +SHA1 (patch-Makefile) = ace02ccf33a24b709d1d54869a340c84d393eb0b +SHA1 (patch-minissdpc.c) = 74cf11e4e84e9e7e47418a657922e2b58d2ad27f diff --git a/net/miniupnpc/patches/patch-Makefile b/net/miniupnpc/patches/patch-Makefile index 259bab81e4e..581c095b4b1 100644 --- a/net/miniupnpc/patches/patch-Makefile +++ b/net/miniupnpc/patches/patch-Makefile @@ -1,4 +1,4 @@ -$NetBSD: patch-Makefile,v 1.1 2016/12/01 22:28:29 adam Exp $ +$NetBSD: patch-Makefile,v 1.2 2017/07/03 11:53:57 wiedi Exp $ Do not pick pkgsrc libtool on Darwin. NetBSD needs _NETBSD_SOURCE to be defined. @@ -35,7 +35,7 @@ Use correct installation dirs. INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR) INSTALLDIRBIN = $(INSTALLPREFIX)/bin -INSTALLDIRMAN = $(INSTALLPREFIX)/share/man -+INSTALLDIRMAN = $(INSTALLPREFIX)/man ++INSTALLDIRMAN = $(INSTALLPREFIX)/$(PKGMANDIR) FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES) ifneq ($(OS), AmigaOS) diff --git a/net/miniupnpc/patches/patch-minissdpc.c b/net/miniupnpc/patches/patch-minissdpc.c new file mode 100644 index 00000000000..2b255d6cbed --- /dev/null +++ b/net/miniupnpc/patches/patch-minissdpc.c @@ -0,0 +1,15 @@ +$NetBSD: patch-minissdpc.c,v 1.1 2017/07/03 11:53:57 wiedi Exp $ + +need sockio.h for SIOCGIFADDR on SunOS +--- minissdpc.c.orig 2016-01-19 10:26:58.000000000 +0000 ++++ minissdpc.c +@@ -11,6 +11,9 @@ + #include <string.h> + #include <stdlib.h> + #include <sys/types.h> ++#if defined(__sun) ++#include <sys/sockio.h> ++#endif + #if defined(_WIN32) || defined(__amigaos__) || defined(__amigaos4__) + #ifdef _WIN32 + #include <winsock2.h> |