Changeset 4222


Ignore:
Timestamp:
2006-07-23T00:45:14+02:00 (12 years ago)
Author:
nico
Message:

port libupnp to buildroot-ng

Location:
packages/libs/libupnp
Files:
2 deleted
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • packages/libs/libupnp/Makefile

    r3112 r4222  
     1#  
     2# Copyright (C) 2006 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
    17# $Id$ 
    28 
     
    612PKG_VERSION:=1.2.1a 
    713PKG_RELEASE:=1 
     14 
     15PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     17PKG_SOURCE_URL:=@SF/upnp 
    818PKG_MD5SUM:=e72b3550bf064eedf080f16f09688891 
    9  
    10 PKG_SOURCE_URL:=@SF/upnp 
    11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
    1219PKG_CAT:=zcat 
    1320 
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1521PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1622 
    17 include $(TOPDIR)/package/rules.mk 
     23include $(INCLUDE_DIR)/package.mk 
    1824 
    19 $(eval $(call PKG_template,LIBUPNP,libupnp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     25define Package/libupnp 
     26  SECTION:=libs 
     27  CATEGORY:=Libraries 
     28  DEPENDS:=+libpthread 
     29  TITLE:=UPnP SDK library 
     30  DESCRIPTION:=UPnP (Universal Plug and Play) SDK library.\\\ 
     31    The Universal Plug and Play (UPnP) SDK for Linux provides support \\\ 
     32    for building UPnP-compliant control points, devices, and bridges \\\ 
     33    on Linux. 
     34  URL:=http://upnp.sourceforge.net/ 
     35endef 
    2036 
    21 $(PKG_BUILD_DIR)/.configured: 
    22         touch $@ 
     37define Build/Configure 
     38endef 
    2339 
    24 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured 
     40define Build/Compile 
    2541        $(MAKE) -C $(PKG_BUILD_DIR)/upnp \ 
    2642                $(TARGET_CONFIGURE_OPTS) \ 
    2743                OPT_FLAGS="$(TARGET_CFLAGS)" \ 
    2844                STRIP=/bin/true 
    29         touch $@ 
     45endef 
    3046 
    31 $(IPKG_LIBUPNP): 
    32         install -m0755 -d $(IDIR_LIBUPNP)/usr/lib 
    33         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(IDIR_LIBUPNP)/usr/lib/ ; \ 
    34         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(IDIR_LIBUPNP)/usr/lib/ ; \ 
    35         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(IDIR_LIBUPNP)/usr/lib/ ; \ 
    36         $(RSTRIP) $(IDIR_LIBUPNP) 
    37         $(IPKG_BUILD) $(IDIR_LIBUPNP) $(PACKAGE_DIR) 
     47define Package/libupnp/install 
     48        install -m0755 -d $(1)/usr/lib 
     49        $(CP) $(PKG_BUILD_DIR)/upnp/bin/lib{ixml,threadutil,upnp}.so $(1)/usr/lib/ 
     50endef 
    3851 
    39 $(STAGING_DIR)/usr/lib/libupnp.so: $(PKG_BUILD_DIR)/.built 
     52define Build/InstallDev 
    4053        mkdir -p $(STAGING_DIR)/usr/include/upnp 
    4154        $(CP) $(PKG_BUILD_DIR)/upnp/inc/*.h $(STAGING_DIR)/usr/include/upnp/ 
    4255        mkdir -p $(STAGING_DIR)/usr/lib 
    43         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libixml.so $(STAGING_DIR)/usr/lib/ ; \ 
    44         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libthreadutil.so $(STAGING_DIR)/usr/lib/ ; \ 
    45         $(CP) $(PKG_BUILD_DIR)/upnp/bin/libupnp.so $(STAGING_DIR)/usr/lib/ ; \ 
    46         touch $@ 
     56        $(CP) $(PKG_BUILD_DIR)/upnp/bin/lib{ixml,threadutil,upnp}.so $(STAGING_DIR)/usr/lib/ 
     57endef 
    4758 
    48 install-dev: $(STAGING_DIR)/usr/lib/libupnp.so 
    49  
    50 uninstall-dev: 
     59define Build/UninstallDev 
    5160        rm -rf \ 
    5261                $(STAGING_DIR)/usr/include/upnp \ 
    53                 $(STAGING_DIR)/usr/lib/libixml.so \ 
    54                 $(STAGING_DIR)/usr/lib/libthreadutil.so \ 
    55                 $(STAGING_DIR)/usr/lib/libupnp.so \ 
     62                $(STAGING_DIR)/usr/lib/lib{ixml,threadutil,upnp}.so 
     63endef 
    5664 
    57 compile-targets: install-dev 
    58 clean-targets: uninstall-dev 
     65$(eval $(call BuildPackage,libupnp)) 
Note: See TracChangeset for help on using the changeset viewer.