[packages] glib: remove some unneeded deltas in the previous patch commit
[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 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/gmediaserver
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+id3lib +libmagic +file +libupnp +libuuid +uclibcxx +zlib $(ICONV_DEPENDS)
28 TITLE:=An UPnP music media server
29 URL:=http://www.nongnu.org/gmediaserver/
30 SUBMENU:=multimedia
31 endef
32
33 define Package/gmediaserver/description
34 GMediaServer is a server for UPnP media players like the
35 Netgear MP101, Linksys WMLS11B etc. It exports one or more
36 directories using the UPnP protocol so the mediaserver can
37 browse through them and play audio or video files.
38 endef
39
40 CONFIGURE_ARGS += \
41 --disable-rpath \
42 --enable-threads=posix \
43 --with-libiconv-prefix="$(ICONV_PREFIX)" \
44 --without-libintl-prefix \
45 --with-id3lib="$(STAGING_DIR)/usr" \
46 --with-libupnp="$(STAGING_DIR)/usr" \
47 , \
48 LIBS=" -luClibc++ -lz" \
49
50 MAKE_FLAGS += \
51 AR="$(TARGET_CROSS)ar" \
52 LTLIBICONV="" \
53 DESTDIR="$(PKG_INSTALL_DIR)"
54
55 define Package/gmediaserver/install
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/sbin/
58 $(INSTALL_DIR) $(1)/etc/config
59 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
60 $(INSTALL_DIR) $(1)/etc/init.d
61 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
62 endef
63
64 $(eval $(call BuildPackage,gmediaserver))