pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/miniupnpc add support for PKGMANDIR and fix build ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba8a2bc54bda
branches:  trunk
changeset: 364650:ba8a2bc54bda
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Mon Jul 03 11:53:57 2017 +0000

description:
add support for PKGMANDIR and fix build on SunOS

diffstat:

 net/miniupnpc/Makefile                  |   6 +++++-
 net/miniupnpc/distinfo                  |   5 +++--
 net/miniupnpc/patches/patch-Makefile    |   4 ++--
 net/miniupnpc/patches/patch-minissdpc.c |  15 +++++++++++++++
 4 files changed, 25 insertions(+), 5 deletions(-)

diffs (72 lines):

diff -r dc7c05059e2f -r ba8a2bc54bda net/miniupnpc/Makefile
--- a/net/miniupnpc/Makefile    Mon Jul 03 11:52:37 2017 +0000
+++ b/net/miniupnpc/Makefile    Mon Jul 03 11:53:57 2017 +0000
@@ -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 @@
 LICENSE=       modified-bsd
 
 USE_TOOLS+=    gmake
+USE_LANGUAGES= c99
+
+CPPFLAGS.SunOS+=       -D__EXTENSIONS__
 
 .include "../../mk/bsd.pkg.mk"
diff -r dc7c05059e2f -r ba8a2bc54bda net/miniupnpc/distinfo
--- a/net/miniupnpc/distinfo    Mon Jul 03 11:52:37 2017 +0000
+++ b/net/miniupnpc/distinfo    Mon Jul 03 11:53:57 2017 +0000
@@ -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 -r dc7c05059e2f -r ba8a2bc54bda net/miniupnpc/patches/patch-Makefile
--- a/net/miniupnpc/patches/patch-Makefile      Mon Jul 03 11:52:37 2017 +0000
+++ b/net/miniupnpc/patches/patch-Makefile      Mon Jul 03 11:53:57 2017 +0000
@@ -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 @@
  INSTALLDIRLIB = $(INSTALLPREFIX)/$(LIBDIR)
  INSTALLDIRBIN = $(INSTALLPREFIX)/bin
 -INSTALLDIRMAN = $(INSTALLPREFIX)/share/man
-+INSTALLDIRMAN = $(INSTALLPREFIX)/man
++INSTALLDIRMAN = $(INSTALLPREFIX)/$(PKGMANDIR)
  
  FILESTOINSTALL = $(LIBRARY) $(EXECUTABLES)
  ifneq ($(OS), AmigaOS)
diff -r dc7c05059e2f -r ba8a2bc54bda net/miniupnpc/patches/patch-minissdpc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/miniupnpc/patches/patch-minissdpc.c   Mon Jul 03 11:53:57 2017 +0000
@@ -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>



Home | Main Index | Thread Index | Old Index