source: packages/multimedia/ushare/Makefile @ 29198

Last change on this file since 29198 was 29198, checked in by nico, 5 years ago

packages/ushare: add /etc/config/ushare to conffiles define

  • Property copyright set to Copyright (C) 2008 OpenWrt.org
  • Property licence set to GPLv2
File size: 1.9 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ushare
11PKG_VERSION:=1.1a
12PKG_RELEASE:=4
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://ushare.geexbox.org/releases/
16PKG_MD5SUM:=5bbcdbf1ff85a9710fa3d4e82ccaa251
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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
28endef
29
30define 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.
34endef
35
36MAKE_INSTALL_FLAGS+= \
37        INSTALL="install" \
38
39define 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        )
57endef
58
59define Package/ushare/conffiles
60/etc/config/ushare
61/etc/ushare.conf
62endef
63
64define Package/ushare/install
65        $(INSTALL_DIR) $(1)/etc
66        $(CP) $(PKG_INSTALL_DIR)/etc/ushare.conf $(1)/etc/
67        $(INSTALL_DIR) $(1)/usr/bin
68        $(CP) $(PKG_INSTALL_DIR)/usr/bin/ushare $(1)/usr/bin/
69        $(INSTALL_DIR) $(1)/etc/config
70        $(INSTALL_DATA) ./files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
71        $(INSTALL_DIR) $(1)/etc/init.d
72        $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
73endef
74
75$(eval $(call BuildPackage,ushare))
Note: See TracBrowser for help on using the repository browser.