Changeset 12013


Ignore:
Timestamp:
2008-07-30T17:39:55+02:00 (10 years ago)
Author:
blogic
Message:

adds upnp sample apps, fixes #3158 thanks bjoern riemer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/libupnp/Makefile

    r11733 r12013  
    1919include $(INCLUDE_DIR)/package.mk 
    2020 
    21 define Package/libupnp 
     21define Package/libupnp/Default 
    2222  SECTION:=libs 
    2323  CATEGORY:=Libraries 
     24  URL:=http://upnp.sourceforge.net/ 
     25endef 
     26 
     27define Package/libupnp 
     28  $(call Package/libupnp/Default) 
    2429  DEPENDS:=+libpthread 
    25   TITLE:=A Portable Open Source UPnP Development Kit 
    26   URL:=http://pupnp.sourceforge.net/ 
     30  TITLE:=UPnP SDK library 
     31  MENU:=1 
    2732endef 
    2833 
     
    3338        Play Device Architecture Specification and support several operating 
    3439        systems like Linux, *BSD, Solaris and others. 
     40endef 
     41 
     42define Package/libupnp-sample 
     43  $(call Package/libupnp/Default) 
     44  DEPENDS:=libupnp 
     45  TITLE:=UPnP sample applications 
     46endef 
     47 
     48define Package/libupnp-sample/description 
     49        TVcontrolpoint & tvdevice sample applications 
     50        run inside /etc/upnp-tvdevice/ 
    3551endef 
    3652 
     
    4763                DESTDIR="$(PKG_INSTALL_DIR)" \ 
    4864                all install 
     65        $(MAKE) -C $(PKG_BUILD_DIR)/upnp/sample/ upnp_tv_device upnp_tv_ctrlpt 
     66endef 
     67 
     68define Build/Compile/libupnp-sample 
     69        $(MAKE) -C $(PKG_BUILD_DIR) \ 
     70                CCOPT="$(TARGET_CFLAGS)" \ 
     71                DESTDIR="$(PKG_INSTALL_DIR)" \ 
     72                check 
    4973endef 
    5074 
     
    6387endef 
    6488 
     89define Package/libupnp-sample/install 
     90        $(INSTALL_DIR) $(1)/usr/bin 
     91        $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/upnp_tv_device $(1)/usr/bin 
     92        $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnp/sample/upnp_tv_ctrlpt $(1)/usr/bin 
     93        $(INSTALL_DIR) $(1)/etc/upnp-tvdevice/web 
     94        $(CP) $(PKG_BUILD_DIR)/upnp/sample/web/* $(1)/etc/upnp-tvdevice 
     95endef 
     96 
    6597$(eval $(call BuildPackage,libupnp)) 
     98$(eval $(call BuildPackage,libupnp-sample)) 
Note: See TracChangeset for help on using the changeset viewer.