Changeset 8831


Ignore:
Timestamp:
2007-09-18T12:33:34+02:00 (10 years ago)
Author:
olli
Message:

gmediaserver:

  • Fix missing dependencies
  • Cleanup Makefile
File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/gmediaserver/Makefile

    • Property copyright changed from Copyright (C) 2006 OpenWrt.org to Copyright (C) 2007 OpenWrt.org
    r6669 r8831  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2007 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1616PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/ 
    1717PKG_MD5SUM:=7f99a9b2e32c41acf7e71eb0bc0840e9 
    18 PKG_CAT:=zcat 
    19  
    20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    2218 
    2319include $(INCLUDE_DIR)/package.mk 
     
    2622  SECTION:=net 
    2723  CATEGORY:=Network 
    28   DEPENDS:=+id3lib +libiconv +libmagic +libupnp +libuuid 
     24  DEPENDS:=+id3lib +libiconv +libmagic +file +libupnp +libuuid 
    2925  TITLE:=An UPnP music media server 
    3026  URL:=http://www.nongnu.org/gmediaserver/ 
    3127endef 
    3228 
    33 define Build/Configure 
    34         $(call Build/Configure/Default, \ 
    35                 --disable-rpath \ 
    36                 --enable-threads=posix \ 
    37                 --with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \ 
    38                 --without-libintl-prefix \ 
    39                 --with-id3lib="$(STAGING_DIR)/usr" \ 
    40                 --with-libupnp="$(STAGING_DIR)/usr" \ 
    41                 , \ 
    42                 LIBS=" -luClibc++ -lz" \ 
    43         ) 
     29define Package/gmediaserver/description 
     30 GMediaServer is a server for UPnP media players like the 
     31 Netgear MP101, Linksys WMLS11B etc. It exports one or more 
     32 directories using the UPnP protocol so the mediaserver can 
     33 browse through them and play audio or video files. 
    4434endef 
    4535 
    46 define Build/Compile 
    47         $(MAKE) -C $(PKG_BUILD_DIR) \ 
    48                 AR="$(TARGET_CROSS)ar" \ 
    49                 LTLIBICONV="" \ 
    50                 DESTDIR="$(PKG_INSTALL_DIR)" \ 
    51                 all install 
    52 endef 
     36CONFIGURE_ARGS += \ 
     37        --disable-rpath \ 
     38        --enable-threads=posix \ 
     39        --with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \ 
     40        --without-libintl-prefix \ 
     41        --with-id3lib="$(STAGING_DIR)/usr" \ 
     42        --with-libupnp="$(STAGING_DIR)/usr" \ 
     43        , \ 
     44        LIBS=" -luClibc++ -lz" \ 
     45 
     46MAKE_FLAGS += \ 
     47        AR="$(TARGET_CROSS)ar" \ 
     48        LTLIBICONV="" \ 
     49        DESTDIR="$(PKG_INSTALL_DIR)" \ 
     50        all install \ 
    5351 
    5452define Package/gmediaserver/install 
    5553        $(INSTALL_DIR) $(1)/usr/sbin 
    56         $(CP) $(PKG_INSTALL_DIR)/usr/bin/gmediaserver $(1)/usr/sbin/ 
     54        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/ 
    5755        $(INSTALL_DIR) $(1)/etc/default 
    58         $(INSTALL_DATA) ./files/gmediaserver.default $(1)/etc/default/gmediaserver 
     56        $(INSTALL_DATA) ./files/$(PKG_NAME).default $(1)/etc/default/$(PKG_NAME) 
    5957        $(INSTALL_DIR) $(1)/etc/init.d 
    60         $(INSTALL_BIN) ./files/gmediaserver.init $(1)/etc/init.d/gmediaserver 
     58        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 
    6159endef 
    6260 
Note: See TracChangeset for help on using the changeset viewer.