Skip to content

Commit

Permalink
libupnpp-0.26.6 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jul 22, 2024
1 parent 2541e68 commit d98304c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 44 deletions.
47 changes: 25 additions & 22 deletions libupnpp/README
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,51 @@ libupnpp
Libupnpp can be used to implement UPnP devices and services, or Control Points.

Runtime requirements:
cygwin-3.5.1-1
libcurl-devel-8.6.0-1
libcurl4-8.6.0-1
cygwin-3.5.3-1
libcurl-devel-8.8.0-1
libcurl4-8.8.0-1
libexpat-devel-2.6.2-1
libexpat1-2.6.2-1
libgcc1-11.4.0-1
libnpupnp13-6.1.0-1bl1
libnpupnp-devel-6.1.3-1bl1
libnpupnp13-6.1.3-1bl1
libstdc++6-11.4.0-1
libupnpp-devel-0.26.3-1bl1
libupnpp16-0.26.3-1bl1
pkg-config-2.1.1-1
libupnpp-devel-0.26.6-1bl1
libupnpp16-0.26.6-1bl1
pkg-config-2.2.0-1

Build requirements:
(besides corresponding -devel packages)
autoconf-15-2
automake-11-1
binutils-2.42-1
cygport-0.36.8-1
cygport-0.36.9-1
gcc-core-11.4.0-1
gcc-g++-11.4.0-1
libcurl-devel-8.6.0-1
libcurl-devel-8.8.0-1
libexpat-devel-2.6.2-1
libnpupnp-devel-6.1.0-1bl1
libtool-2.4.7-1
make-4.4.1-2
libnpupnp-devel-6.1.3-1bl1
meson-1.3.2-1
ninja-1.12.0-1

Canonical website:
https://www.lesbonscomptes.com/upmpdcli/libupnpp-refdoc/libupnpp-ctl.html

Canonical download:
https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-0.26.3.tar.gz
https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-0.26.6.tar.gz

-------------------------------------------

Build instructions:
1. unpack libupnpp-0.26.3-X-src.tar.xz
1. unpack libupnpp-0.26.6-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libupnpp-0.26.3-X.cygport all
% cygport ./libupnpp-0.26.6-X.cygport all

This will create:
/usr/src/libupnpp-0.26.3-X-src.tar.xz
/usr/src/libupnpp-0.26.3-X.tar.xz
/usr/src/libupnpp16-0.26.3-X.tar.xz
/usr/src/libupnpp-devel-0.26.3-X.tar.xz
/usr/src/libupnpp-0.26.6-X-src.tar.xz
/usr/src/libupnpp-0.26.6-X.tar.xz
/usr/src/libupnpp16-0.26.6-X.tar.xz
/usr/src/libupnpp-devel-0.26.6-X.tar.xz

-------------------------------------------

Expand Down Expand Up @@ -98,12 +98,15 @@ Files included in the binary package:
/usr/include/libupnpp/upnpplib.hxx
/usr/include/libupnpp/upnpputils.hxx
/usr/lib/libupnpp.dll.a
/usr/lib/pkgconfig/libupnpp.pc
/usr/lib/pkgconfig/upnpp.pc

------------------

Port Notes:

----- version 0.26.6-1bl1 -----
Version bump.

----- version 0.26.3-1bl1 -----
Version bump.

Expand Down
21 changes: 0 additions & 21 deletions libupnpp/libupnpp-0.26.3-1bl1.src.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ LICENSE_URI="COPYING"

BUILD_REQUIRES="libcurl-devel libexpat-devel libnpupnp-devel"

export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
export CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE -DUPNPP_DLL_EXPORTS"

inherit meson

DOCS="
README.asc
Expand Down
28 changes: 28 additions & 0 deletions libupnpp/libupnpp-0.26.6-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--- origsrc/libupnpp-0.26.6/meson.build 2024-05-31 00:12:08.000000000 +0900
+++ src/libupnpp-0.26.6/meson.build 2024-07-21 20:46:29.180752300 +0900
@@ -26,7 +26,12 @@ elif host_machine.system() == 'sunos'
endif

deps += dependency('threads')
-deps += dependency('libnpupnp')
+npupnp_dep = dependency('libnpupnp', required : false)
+if npupnp_dep.found()
+ deps += npupnp_dep
+else
+ deps += dependency('npupnp')
+endif
deps += dependency('libcurl')
deps += dependency('expat')

@@ -109,10 +114,9 @@ cfile = configure_file(


libupnpp = library(
- 'libupnpp',
+ 'upnpp',
libupnpp_sources,
gnu_symbol_visibility: 'hidden',
- name_prefix: '',
version: libupnpp_soversion + libupnpp_soversion_minor,
soversion: host_machine.system() == 'windows' ? '' : libupnpp_soversion,
include_directories: libupnpp_incdir,

0 comments on commit d98304c

Please sign in to comment.