[packages] ucarp: update to 1.5.2, add missing libpcap depends, select the ip addr...
[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 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/mt-daapd
23 SECTION:=sound
24 CATEGORY:=Sound
25 DEPENDS:=+libgdbm +libhowl +libid3tag +libpthread
26 TITLE:=A multi-threaded DAAP (Digital Audio Access Protocol) daemon
27 URL:=http://www.mt-daapd.org/
28 endef
29
30 define Package/mt-daapd/description
31 mt-daapd is a program which acts as an iTunes (DAAP) server for Linux.
32 endef
33
34 define Package/mt-daapd/conffiles
35 /etc/mt-daapd.conf
36 /etc/mt-daapd.playlist
37 endef
38
39 CONFIGURE_ARGS += \
40 --enable-mdns \
41 --enable-howl \
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 \
48
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
59 endef
60
61 $(eval $(call BuildPackage,mt-daapd))