2006-10-28 22:43:08 +00:00
|
|
|
#
|
2007-09-18 10:33:34 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-08-02 08:07:18 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gmediaserver
|
2008-07-06 14:30:46 +00:00
|
|
|
PKG_VERSION:=0.13.0
|
2006-08-02 08:07:18 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
|
2008-07-06 14:30:46 +00:00
|
|
|
PKG_MD5SUM:=c422de386331e2a1a859d45f6fa270a3
|
2006-08-02 08:07:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/gmediaserver
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-09-18 10:33:34 +00:00
|
|
|
DEPENDS:=+id3lib +libiconv +libmagic +file +libupnp +libuuid
|
2006-08-02 08:07:18 +00:00
|
|
|
TITLE:=An UPnP music media server
|
|
|
|
URL:=http://www.nongnu.org/gmediaserver/
|
2007-10-18 18:37:22 +00:00
|
|
|
SUBMENU:=multimedia
|
2006-08-02 08:07:18 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-18 10:33:34 +00:00
|
|
|
define Package/gmediaserver/description
|
|
|
|
GMediaServer is a server for UPnP media players like the
|
|
|
|
Netgear MP101, Linksys WMLS11B etc. It exports one or more
|
|
|
|
directories using the UPnP protocol so the mediaserver can
|
|
|
|
browse through them and play audio or video files.
|
2006-08-02 08:07:18 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-18 10:33:34 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-rpath \
|
|
|
|
--enable-threads=posix \
|
|
|
|
--with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
|
|
|
|
--without-libintl-prefix \
|
|
|
|
--with-id3lib="$(STAGING_DIR)/usr" \
|
|
|
|
--with-libupnp="$(STAGING_DIR)/usr" \
|
|
|
|
, \
|
|
|
|
LIBS=" -luClibc++ -lz" \
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
AR="$(TARGET_CROSS)ar" \
|
|
|
|
LTLIBICONV="" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install \
|
2006-08-02 08:07:18 +00:00
|
|
|
|
|
|
|
define Package/gmediaserver/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-09-18 10:33:34 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/
|
2007-09-18 17:08:11 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2007-09-18 10:33:34 +00:00
|
|
|
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
2006-08-02 08:07:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gmediaserver))
|