void-packages/srcpkgs/libupnp/template
lemmi 621faa8772 libupnp: fix configure args for gerbera
gerbera configure complains:
```
CMake Warning at CMakeLists.txt:405 (message):
      !! It is strongly recommended to build libupnp with
      --enable-reuseaddr !!
      Without this option Gerbera will be unable to restart with the
      same port number.

CMake Warning at CMakeLists.txt:412 (message):
      !! It is strongly recommended to build libupnp with
      --disable-blocking-tcp-connections !!
      Without this option non-responsive control points can cause
      libupnp to hang.
```

These issues are indeed present with gerbera without these options.
2023-03-14 11:22:53 +01:00

36 lines
976 B
Bash

# Template file for 'libupnp'
pkgname=libupnp
version=1.14.12
revision=2
build_style=gnu-configure
configure_args="--enable-reuseaddr --disable-blocking-tcp-connections"
hostmakedepends="automake libtool pkg-config"
short_desc="Portable Open Source UPnP Development Kit"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://pupnp.github.io/pupnp/"
changelog="https://pupnp.github.io/pupnp/ChangeLog"
distfiles="https://github.com/pupnp/pupnp/releases/download/release-$version/$pkgname-$version.tar.bz2"
checksum=091c80aada1e939c2294245c122be2f5e337cc932af7f7d40504751680b5b5ac
CFLAGS="-D_FILE_OFFSET_BITS=64"
post_install() {
vlicense COPYING
}
pre_configure() {
autoreconf -fi
}
libupnp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
conflicts="libupnp1.8-devel>=0"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}