[Packages] admin/htop: Update to 0.7 (#3415)
[openwrt/svn-archive/archive.git] / sound / mt-daapd / Makefile
1 #
2 # Copyright (C) 2005-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mt-daapd
12 PKG_VERSION:=0.2.4.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=67bef9fb14d487693b0dfb792c3f1b05
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/mt-daapd
22 SECTION:=sound
23 CATEGORY:=Sound
24 DEPENDS:=+libgdbm +libhowl +libid3tag
25 TITLE:=A multi-threaded DAAP (Digital Audio Access Protocol) daemon
26 URL:=http://www.mt-daapd.org/
27 endef
28
29 define Package/mt-daapd/description
30 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux.
31 endef
32
33 define Package/mt-daapd/conffiles
34 /etc/mt-daapd.conf
35 /etc/mt-daapd.playlist
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-mdns \
40 --enable-howl \
41 --with-id3tag="$(STAGING_DIR)/usr" \
42 --with-gdbm-includes="$(STAGING_DIR)/usr/include" \
43 --with-gdbm-libs="$(STAGING_DIR)/usr/lib" \
44 --with-howl-includes="$(STAGING_DIR)/usr/include/howl" \
45 --with-howl-libs="$(STAGING_DIR)/usr/lib" \
46 --without-static-libs \
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Package/mt-daapd/install
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.conf $(1)/etc/
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.playlist $(1)/etc/
58 $(INSTALL_DIR) $(1)/usr/share
59 $(CP) $(PKG_INSTALL_DIR)/usr/share/mt-daapd $(1)/usr/share/
60 $(INSTALL_DIR) $(1)/usr/sbin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mt-daapd $(1)/usr/sbin/
62 $(INSTALL_DIR) $(1)/etc/init.d
63 $(INSTALL_BIN) ./files/mt-daapd.init $(1)/etc/init.d/mt-daapd
64 endef
65
66 $(eval $(call BuildPackage,mt-daapd))