2 # Copyright (C) 2008 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
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://ushare.geexbox.org/releases/
17 PKG_MD5SUM:=5bbcdbf1ff85a9710fa3d4e82ccaa251
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:= UPnP A/V & DLNA Media Server
25 URL:=http://ushare.geexbox.org/
26 DEPENDS:=+libdlna +libupnp
29 define Package/ushare/description
30 uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server
31 component that provides UPnP media devices with information on available
35 define Build/Configure
36 # this is *NOT* GNU configure
37 ( cd $(PKG_BUILD_DIR); \
38 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
39 LDFLAGS="-L$(STAGING_DIR)/usr/lib -lfaad -lpthread -lavcodec -lavformat -lavutil -lz" \
40 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
41 PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
44 --cross-prefix="$(TARGET_CROSS)" \
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
62 define Package/ushare/conffiles
66 define Package/ushare/install
67 $(INSTALL_DIR) $(1)/etc
68 $(CP) $(PKG_INSTALL_DIR)/etc/ushare.conf $(1)/etc/
69 $(INSTALL_DIR) $(1)/usr/bin
70 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ushare $(1)/usr/bin/
71 $(INSTALL_DIR) $(1)/etc/config
72 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
73 $(INSTALL_DIR) $(1)/etc/init.d
74 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
77 $(eval $(call BuildPackage,ushare))