decabd38343919770b23e39e637fdcefd46c0a3e
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gmediaserver
12 PKG_VERSION:=0.12.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/gmediaserver/
17 PKG_MD5SUM:=7f99a9b2e32c41acf7e71eb0bc0840e9
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/gmediaserver
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+id3lib +libiconv +libmagic +file +libupnp +libuuid
25 TITLE:=An UPnP music media server
26 URL:=http://www.nongnu.org/gmediaserver/
27 SUBMENU:=multimedia
28 endef
29
30 define Package/gmediaserver/description
31 GMediaServer is a server for UPnP media players like the
32 Netgear MP101, Linksys WMLS11B etc. It exports one or more
33 directories using the UPnP protocol so the mediaserver can
34 browse through them and play audio or video files.
35 endef
36
37 CONFIGURE_ARGS += \
38 --disable-rpath \
39 --enable-threads=posix \
40 --with-libiconv-prefix="$(STAGING_DIR)/usr/lib/libiconv" \
41 --without-libintl-prefix \
42 --with-id3lib="$(STAGING_DIR)/usr" \
43 --with-libupnp="$(STAGING_DIR)/usr" \
44 , \
45 LIBS=" -luClibc++ -lz" \
46
47 MAKE_FLAGS += \
48 AR="$(TARGET_CROSS)ar" \
49 LTLIBICONV="" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install \
52
53 define Package/gmediaserver/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
60 endef
61
62 $(eval $(call BuildPackage,gmediaserver))