Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / libs / libupnpp / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libupnpp
11 PKG_VERSION:=0.14.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
16 PKG_MD5SUM:=1b10905a365fc6277e1d8ced77278666
17 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
18 PKG_LICENSE:=GPL-2.0
19 PKG_LICENSE_FILES:=COPYING
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libupnpp
26   SECTION:=libs
27   CATEGORY:=Libraries
28   URL:=http://www.lesbonscomptes.com/upmpdcli
29   DEPENDS+= +libstdcpp +libexpat +librt +libcurl +libupnp
30   TITLE:=The libupnpp C++ library wraps libupnp for easier use by upmpdcli and upplay
31 endef
32
33 define Package/libupnpp/description
34 libupnpp defines useful objects over libupnp and can be used to create both devices
35 and control points. It is shared by upmpdcli and upplay.
36 endef
37
38 define Build/InstallDev
39         $(INSTALL_DIR) $(1)/usr/include
40         $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/
41         $(INSTALL_DIR) $(1)/usr/lib
42         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so* $(1)/usr/lib/
43         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.la $(1)/usr/lib/
44 endef
45
46 define Package/libupnpp/install
47         $(INSTALL_DIR) $(1)/usr/lib
48         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,libupnpp))