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