[packages] ushare: quote server name (#10322)
[openwrt/svn-archive/archive.git] / multimedia / ushare / Makefile
1 #
2 # Copyright (C) 2008-2011 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:=ushare
11 PKG_VERSION:=1.1a
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://ushare.geexbox.org/releases/
16 PKG_MD5SUM:=5bbcdbf1ff85a9710fa3d4e82ccaa251
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ushare
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 TITLE:= UPnP A/V & DLNA Media Server
26 URL:=http://ushare.geexbox.org/
27 DEPENDS:=+libdlna +libupnp
28 endef
29
30 define Package/ushare/description
31 uShare is a UPnP (TM) A/V & DLNA Media Server. It implements the server
32 component that provides UPnP media devices with information on available
33 multimedia files.
34 endef
35
36 MAKE_INSTALL_FLAGS+= \
37 INSTALL="install" \
38
39 define Build/Configure
40 # this is *NOT* GNU configure
41 ( cd $(PKG_BUILD_DIR); \
42 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
43 LDFLAGS="$(TARGET_LDFLAGS) -Wl,-rpath-link=$(STAGING_DIR)/usr/lib" \
44 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
45 PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" \
46 ./configure \
47 --cross-compile \
48 --cross-prefix="$(TARGET_CROSS)" \
49 --prefix="/usr" \
50 --sysconfdir="/etc" \
51 --enable-dlna \
52 --disable-nls \
53 --disable-debug \
54 --disable-optimize \
55 --disable-strip \
56 )
57 endef
58
59 define Package/ushare/conffiles
60 /etc/ushare.conf
61 endef
62
63 define Package/ushare/install
64 $(INSTALL_DIR) $(1)/etc
65 $(CP) $(PKG_INSTALL_DIR)/etc/ushare.conf $(1)/etc/
66 $(INSTALL_DIR) $(1)/usr/bin
67 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ushare $(1)/usr/bin/
68 $(INSTALL_DIR) $(1)/etc/config
69 $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
70 $(INSTALL_DIR) $(1)/etc/init.d
71 $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
72 endef
73
74 $(eval $(call BuildPackage,ushare))