File system-miniupnpc.diff of Package warzone2100

From: Jan Engelhardt <jengelh@inai.de>
Date: 2016-07-31 21:34:46.263393729 +0200

build: use system-provided miniupnpc

---
 Makefile.am     |    1 -
 configure.ac    |    1 -
 src/Makefile.am |    4 ++--
 3 files changed, 2 insertions(+), 4 deletions(-)

Index: warzone2100-3.2.1/Makefile.am
===================================================================
--- warzone2100-3.2.1.orig/Makefile.am
+++ warzone2100-3.2.1/Makefile.am
@@ -6,7 +6,6 @@ endif
 
 SUBDIRS = \
 	win32 \
-	3rdparty/miniupnpc \
 	3rdparty/quesoglc \
 	lib/framework \
 	lib/exceptionhandler \
Index: warzone2100-3.2.1/configure.ac
===================================================================
--- warzone2100-3.2.1.orig/configure.ac
+++ warzone2100-3.2.1/configure.ac
@@ -494,7 +494,6 @@ AC_CONFIG_FILES([Makefile
 		pkg/nsis/Makefile
 		win32/Makefile
 		tests/Makefile
-		3rdparty/miniupnpc/Makefile
 		3rdparty/quesoglc/Makefile
 		lib/framework/Makefile
 		lib/exceptionhandler/Makefile
Index: warzone2100-3.2.1/src/Makefile.am
===================================================================
--- warzone2100-3.2.1.orig/src/Makefile.am
+++ warzone2100-3.2.1/src/Makefile.am
@@ -297,8 +297,8 @@ COMMONLIBS = \
 	$(top_builddir)/lib/ivis_opengl/libivis_opengl.a \
 	$(top_builddir)/lib/gamelib/libgamelib.a \
 	$(top_builddir)/lib/exceptionhandler/libexceptionhandler.a \
-	$(top_builddir)/3rdparty/miniupnpc/libminiupnpc.a \
-	$(top_builddir)/3rdparty/quesoglc/libquesoglc.a
+	$(top_builddir)/3rdparty/quesoglc/libquesoglc.a \
+	-lminiupnpc
 
 if PORTABLE
 warzone2100_portable_SOURCES = $(COMMONSOURCES) $(nodist_COMMONSOURCES)
openSUSE Build Service is sponsored by