f2828a27164bc0bd8fa2748412d8b8c4a19e6080
[openwrt/svn-archive/archive.git] / net / gmediaserver / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gmediaserver
11 PKG_VERSION:=0.13.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
16 PKG_MD5SUM:=c422de386331e2a1a859d45f6fa270a3
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/gmediaserver
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+id3lib +libiconv +libmagic +file +libupnp +libuuid
24 TITLE:=An UPnP music media server
25 URL:=http://www.nongnu.org/gmediaserver/
26 SUBMENU:=multimedia
27 endef
28
29 define 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.
34 endef
35
36 CONFIGURE_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
46 MAKE_FLAGS += \
47 AR="$(TARGET_CROSS)ar" \
48 LTLIBICONV="" \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install \
51
52 define Package/gmediaserver/install
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/
55 $(INSTALL_DIR) $(1)/etc/config
56 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
59 endef
60
61 $(eval $(call BuildPackage,gmediaserver))