2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=gmediaserver
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://savannah.nongnu.org
/download
/gmediaserver
/
17 PKG_MD5SUM
:=7f99a9b2e32c41acf7e71eb0bc0840e9
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/gmediaserver
28 DEPENDS
:=+id3lib
+libiconv
+libmagic
+libupnp
29 TITLE
:=An UPnP music media server
30 URL
:=http
://www.nongnu.org
/gmediaserver
/
33 define Build
/Configure
34 $(call Build
/Configure
/Default
, \
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" \
42 LIBS
=" -luClibc++ -lz" \
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 AR
="$(TARGET_CROSS)ar" \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Package
/gmediaserver
/install
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/gmediaserver
$(1)/usr
/sbin
/
57 $(INSTALL_DIR
) $(1)/etc
/default
58 $(INSTALL_DATA
) .
/files
/gmediaserver.default
$(1)/etc
/default
/gmediaserver
59 $(INSTALL_DIR
) $(1)/etc
/init.d
60 $(INSTALL_BIN
) .
/files
/gmediaserver.init
$(1)/etc
/init.d
/gmediaserver
63 $(eval
$(call BuildPackage
,gmediaserver
))