Merge pull request #840 from cjkoenig/update_liburcu
[feed/packages.git] / libs / libupnpp / Makefile
1 #
2 # Copyright (C) 2014 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.9.0
12 PKG_RELEASE:=1
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
17 PKG_MD5SUM:=ff218bbe2df6cf70b73843d951ef838e
18 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libupnpp
27 SECTION:=libs
28 CATEGORY:=Libraries
29 URL:=http://www.lesbonscomptes.com/upmpdcli
30 DEPENDS+= +libstdcpp +libexpat +librt +libcurl +libupnp
31 TITLE:=The libupnpp C++ library wraps libupnp for easier use by upmpdcli and upplay
32 endef
33
34 define Package/libupnpp/description
35 libupnpp defines useful objects over libupnp and can be used to create both devices
36 and control points. It is shared by upmpdcli and upplay.
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/
42 $(INSTALL_DIR) $(1)/usr/lib
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp-$(PKG_VERSION).so* $(1)/usr/lib/
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.{so,la} $(1)/usr/lib/
45 endef
46
47 define Package/libupnpp/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp-$(PKG_VERSION).so.* $(1)/usr/lib/
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libupnpp))