2 # Copyright (C) 2005-2010 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
20 include $(INCLUDE_DIR)/package.mk
22 define Package/mt-daapd
25 DEPENDS:=+libgdbm +libhowl +libid3tag +libpthread
26 TITLE:=A multi-threaded DAAP (Digital Audio Access Protocol) daemon
27 URL:=http://www.fireflymediaserver.org/
30 define Package/mt-daapd/description
31 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux.
34 define Package/mt-daapd/conffiles
36 /etc/mt-daapd.playlist
42 --with-id3tag="$(STAGING_DIR)/usr" \
43 --with-gdbm-includes="$(STAGING_DIR)/usr/include" \
44 --with-gdbm-libs="$(STAGING_DIR)/usr/lib" \
45 --with-howl-includes="$(STAGING_DIR)/usr/include/howl" \
46 --with-howl-libs="$(STAGING_DIR)/usr/lib" \
47 --without-static-libs \
49 define Package/mt-daapd/install
50 $(INSTALL_DIR) $(1)/etc
51 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.conf $(1)/etc/
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/mt-daapd.playlist $(1)/etc/
53 $(INSTALL_DIR) $(1)/usr/share
54 $(CP) $(PKG_INSTALL_DIR)/usr/share/mt-daapd $(1)/usr/share/
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mt-daapd $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/mt-daapd.init $(1)/etc/init.d/mt-daapd
61 $(eval $(call BuildPackage,mt-daapd))