2 # Copyright (C) 2005-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=67bef9fb14d487693b0dfb792c3f1b05
18 include $(INCLUDE_DIR)/package.mk
20 define Package/mt-daapd
23 DEPENDS:=+libgdbm +libhowl +libid3tag
24 TITLE:=A multi-threaded DAAP (Digital Audio Access Protocol) daemon
25 URL:=http://www.mt-daapd.org/
28 define Package/mt-daapd/description
29 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux.
32 define Package/mt-daapd/conffiles
34 /etc/mt-daapd.playlist
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 \
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
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
65 $(eval $(call BuildPackage,mt-daapd))