lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (2101B)


      1 #
      2 # Copyright (C) 2006-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:=libupnp
     11 PKG_VERSION:=1.6.19
     12 PKG_RELEASE:=2
     13 
     14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
     15 PKG_SOURCE_URL:=@SF/pupnp
     16 PKG_MD5SUM:=ee16e5d33a3ea7506f38d71facc057dd
     17 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
     18 
     19 PKG_FIXUP:=autoreconf
     20 PKG_INSTALL:=1
     21 
     22 include $(INCLUDE_DIR)/package.mk
     23 
     24 define Package/libupnp/Default
     25   SECTION:=libs
     26   CATEGORY:=Libraries
     27   URL:=http://pupnp.sourceforge.net/
     28 endef
     29 
     30 define Package/libupnp
     31   $(call Package/libupnp/Default)
     32   DEPENDS:=+libpthread
     33   TITLE:=UPnP SDK library
     34   MENU:=1
     35 endef
     36 
     37 define Package/libupnp/description
     38 The portable SDK for UPnP Devices (libupnp) provides developers with an API and
     39 open source code for building control points, devices, and bridges that are
     40 compliant with Version 1.0 of the  Universal Plug and Play Device Architecture
     41 Specification.
     42 endef
     43 
     44 define Package/libupnp-sample
     45   $(call Package/libupnp/Default)
     46   DEPENDS:=libupnp
     47   TITLE:=UPnP sample applications
     48 endef
     49 
     50 define Package/libupnp-sample/description
     51 TVcontrolpoint & tvdevice sample applications run inside /etc/upnp-tvdevice/
     52 endef
     53 
     54 define Build/InstallDev
     55 	$(INSTALL_DIR) $(1)/usr/include
     56 	$(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
     57 	$(INSTALL_DIR) $(1)/usr/lib
     58 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*,la} $(1)/usr/lib/
     59 	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
     60 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
     61 endef
     62 
     63 define Package/libupnp/install
     64 	$(INSTALL_DIR) $(1)/usr/lib
     65 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/
     66 endef
     67 
     68 define Package/libupnp-sample/install
     69 	$(INSTALL_DIR) $(1)/usr/bin
     70 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/.libs/* $(1)/usr/bin
     71 	$(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web
     72 	$(INSTALL_DATA) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice
     73 endef
     74 
     75 $(eval $(call BuildPackage,libupnp))
     76 $(eval $(call BuildPackage,libupnp-sample))