2006-07-22 22:45:14 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libupnp
|
2007-01-10 11:32:15 +00:00
|
|
|
PKG_VERSION:=1.3.1
|
2006-07-22 22:45:14 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/upnp
|
2007-01-10 11:32:15 +00:00
|
|
|
PKG_MD5SUM:=6646be5e31e58188e8f47c6ce64faa4c
|
2006-07-22 22:45:14 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2007-01-10 11:32:15 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
2006-07-22 22:45:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libupnp
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+libpthread
|
|
|
|
TITLE:=UPnP SDK library
|
2006-10-30 13:51:50 +00:00
|
|
|
DESCRIPTION:=\
|
|
|
|
The Universal Plug and Play (UPnP) SDK for Linux provides support \\\
|
|
|
|
for building UPnP-compliant control points, devices, and bridges \\\
|
|
|
|
on Linux.
|
2006-07-22 22:45:14 +00:00
|
|
|
URL:=http://upnp.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2007-01-10 11:32:15 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
);
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-01-10 11:32:15 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CCOPT="$(TARGET_CFLAGS)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/upnp $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnp.pc $(1)/usr/lib/pkgconfig/
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
|
|
|
$(STAGING_DIR)/usr/include/upnp \
|
2007-03-26 02:59:48 +00:00
|
|
|
$(STAGING_DIR)/usr/lib/lib{ixml,threadutil,upnp}.{a,so*} \
|
|
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/libupnp.pc
|
2006-07-22 22:45:14 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
define Package/libupnp/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-01-10 11:32:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so.* $(1)/usr/lib/
|
2006-10-30 13:51:50 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-22 22:45:14 +00:00
|
|
|
$(eval $(call BuildPackage,libupnp))
|