2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.lesbonscomptes.com
/upmpdcli
/downloads
16 PKG_HASH
:=c9623533271605c92dfa603f5fe0ab6d3d5b4384a0c9173800784f4aa643a190
18 PKG_MAINTAINER
:=Petko Bordjukov
<bordjukov@gmail.com
>
19 PKG_LICENSE
:=LGPL-2.1
-or-later
20 PKG_LICENSE_FILES
:=COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libupnpp
30 URL
:=https
://www.lesbonscomptes.com
/upmpdcli
32 TITLE
:=The libupnpp C
++ library wraps libupnp for easier use by upmpdcli and upplay
35 define Package
/libupnpp
/description
36 libupnpp defines useful objects over libupnp and can be used to create both devices
37 and control points. It is shared by upmpdcli and upplay.
40 TARGET_LDFLAGS
+= $(if
$(CONFIG_USE_GLIBC
),-lm
)
42 define Build
/InstallDev
43 $(INSTALL_DIR
) $(1)/usr
/include
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libupnpp
$(1)/usr
/include/
45 $(INSTALL_DIR
) $(1)/usr
/lib
46 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libupnpp.
{la
,so
*} $(1)/usr
/lib
/
47 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libupnpp.
pc $(1)/usr
/lib
/pkgconfig
/
51 define Package
/libupnpp
/install
52 $(INSTALL_DIR
) $(1)/usr
/lib
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libupnpp.so.
* $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,libupnpp
))