diff options
author | Myckel Habets <myckel@sdf.lonestar.org> | 2015-04-27 15:13:56 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-01 03:57:38 (GMT) |
commit | 7696a567bf17c9c35cf162cef5905eadc99c9083 (patch) | |
tree | 500a5f6285e2f71a360ca5cd6420d1dfb2b04513 /src | |
parent | 00234fd91a05f0bc33b14da412d0150f56aeedd7 (diff) | |
download | mxe-7696a567bf17c9c35cf162cef5905eadc99c9083.zip mxe-7696a567bf17c9c35cf162cef5905eadc99c9083.tar.gz mxe-7696a567bf17c9c35cf162cef5905eadc99c9083.tar.bz2 |
add package miniupnpc
Diffstat (limited to 'src')
-rw-r--r-- | src/miniupnpc-build-1.patch | 28 | ||||
-rw-r--r-- | src/miniupnpc.mk | 45 |
2 files changed, 73 insertions, 0 deletions
diff --git a/src/miniupnpc-build-1.patch b/src/miniupnpc-build-1.patch new file mode 100644 index 0000000..08eff8c --- /dev/null +++ b/src/miniupnpc-build-1.patch @@ -0,0 +1,28 @@ +--- ./Makefile.mingw 2014-01-31 14:18:56.000000000 +0100 ++++ ./Makefile.mingw.new 2015-04-27 15:44:59.548000000 +0200 +@@ -37,7 +37,7 @@ + $(PYTHON) setupmingw32.py install --skip-build + + miniupnpc.dll: libminiupnpc.a $(OBJSDLL) +- dllwrap -k --driver-name gcc \ ++ $(DLLWRAP) -k --driver-name $(CC) \ + --def miniupnpc.def \ + --output-def miniupnpc.dll.def \ + --implib miniupnpc.lib -o $@ \ +@@ -71,13 +71,13 @@ + miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings + wingenminiupnpcstrings $< $@ + +-minixml.o: minixml.c minixml.h miniupnpcstrings.h ++minixml.o: minixml.c minixml.h + + upnpc.o: upnpc.c miniwget.h minisoap.h miniupnpc.h igd_desc_parse.h upnpreplyparse.h upnpcommands.h upnperrors.h + +-miniwget.o: miniwget.c miniwget.h miniupnpcstrings.h connecthostport.h ++miniwget.o: miniwget.c miniwget.h connecthostport.h + +-minisoap.o: minisoap.c minisoap.h miniupnpcstrings.h ++minisoap.o: minisoap.c minisoap.h + + miniupnpc.o: miniupnpc.c miniupnpc.h minisoap.h miniwget.h minixml.h + diff --git a/src/miniupnpc.mk b/src/miniupnpc.mk new file mode 100644 index 0000000..3f956c2 --- /dev/null +++ b/src/miniupnpc.mk @@ -0,0 +1,45 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := miniupnpc +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.9 +$(PKG)_CHECKSUM := 643001d52e322c52a7c9fdc8f31a7920f4619fc0 +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://miniupnp.free.fr/files/$($(PKG)_FILE) +$(PKG)_URL_2 := http://miniupnp.tuxfamily.org/files/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + echo 'TODO: write update script for $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +# We can build the whole package, but only make libminiupnpc.a. Rest makes little sense. +define $(PKG)_BUILD + cd '$(1)' && $(SH) ./updateminiupnpcstrings.sh + $(MAKE) -C '$(1)' -f Makefile.mingw -j '$(JOBS)' \ + CC='$(TARGET)-gcc' \ + AR='$(TARGET)-ar' \ + RANLIB='$(TARGET)-ranlib' \ + DLLWRAP='$(TARGET)-dllwrap' \ + init libminiupnpc.a miniupnpc.dll + $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' + $(INSTALL) -m644 '$(1)/libminiupnpc.a' '$(PREFIX)/$(TARGET)/lib/' + $(INSTALL) -m644 '$(1)/miniupnpc.lib' '$(PREFIX)/$(TARGET)/lib/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/bin' + $(INSTALL) -m755 '$(1)/miniupnpc.dll' '$(PREFIX)/$(TARGET)/bin/' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include' + $(INSTALL) -d '$(PREFIX)/$(TARGET)/include/miniupnpc' + $(INSTALL) -m644 '$(1)/bsdqueue.h' '$(PREFIX)/$(TARGET)/include/' + $(INSTALL) -m644 '$(1)/declspec.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/igd_desc_parse.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/miniupnpc.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/miniupnpctypes.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/miniwget.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/portlistingparse.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/upnpcommands.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/upnperrors.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' + $(INSTALL) -m644 '$(1)/upnpreplyparse.h' '$(PREFIX)/$(TARGET)/include/miniupnpc/' +endef |