DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / sound / mt-daapd / Makefile
1 #
2 # Copyright (C) 2006 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
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/mt-daapd
17 PKG_MD5SUM:=2e1cdbe6b94ef153e915806f80a28dca
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/mt-daapd
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+libgdbm +libhowl +libid3tag
29 TITLE:=A multi-threaded DAAP (Digital Audio Access Protocol) daemon
30 URL:=http://www.mt-daapd.org/
31 endef
32
33 define Package/mt-daapd/description
34 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux.
35 endef
36
37 define Package/mt-daapd/conffiles
38 /etc/mt-daapd.conf
39 /etc/mt-daapd.playlist
40 endef
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --enable-mdns \
45 --enable-howl \
46 --with-id3tag="$(STAGING_DIR)/usr" \
47 --with-gdbm-includes="$(STAGING_DIR)/usr/include" \
48 --with-gdbm-libs="$(STAGING_DIR)/usr/lib" \
49 --with-howl-includes="$(STAGING_DIR)/usr/include/howl" \
50 --with-howl-libs="$(STAGING_DIR)/usr/lib" \
51 --without-static-libs \
52 )
53 endef
54
55 define Build/Compile
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 DESTDIR="$(PKG_INSTALL_DIR)" \
58 all install
59 endef
60
61 define Package/mt-daapd/install
62 $(INSTALL_DIR) $(1)/etc
63 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.conf $(1)/etc/
64 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.playlist $(1)/etc/
65 $(INSTALL_DIR) $(1)/usr/share
66 $(CP) $(PKG_INSTALL_DIR)/usr/share/mt-daapd $(1)/usr/share/
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/mt-daapd $(1)/usr/sbin/
69 $(INSTALL_DIR) $(1)/etc/init.d
70 $(INSTALL_BIN) ./files/mt-daapd.init $(1)/etc/init.d/mt-daapd
71 endef
72
73 $(eval $(call BuildPackage,mt-daapd))