2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/mt-daapd
17 PKG_MD5SUM
:=2e1cdbe6b94ef153e915806f80a28dca
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/mt-daapd
27 DEPENDS
:=+libgdbm
+libhowl
+libid3tag
28 TITLE
:=A multi-threaded DAAP
(Digital Audio Access Protocol
) daemon
29 URL
:=http
://www.mt-daapd.org
/
32 define Package
/mt-daapd
/description
33 mt-daapd is a program which acts
as an iTunes
(DAAP
) server for Linux.
36 define Package
/mt-daapd
/conffiles
38 /etc
/mt-daapd.playlist
41 define Build
/Configure
42 $(call Build
/Configure
/Default
, \
45 --with-id3tag
="$(STAGING_DIR)/usr" \
46 --with-gdbm-includes
="$(STAGING_DIR)/usr/include" \
47 --with-gdbm-libs
="$(STAGING_DIR)/usr/lib" \
48 --with-howl-includes
="$(STAGING_DIR)/usr/include/howl" \
49 --with-howl-libs
="$(STAGING_DIR)/usr/lib" \
50 --without-static-libs \
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 DESTDIR
="$(PKG_INSTALL_DIR)" \
60 define Package
/mt-daapd
/install
61 $(INSTALL_DIR
) $(1)/etc
62 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/contrib
/mt-daapd.conf
$(1)/etc
/
63 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/contrib
/mt-daapd.playlist
$(1)/etc
/
64 $(INSTALL_DIR
) $(1)/usr
/share
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/mt-daapd
$(1)/usr
/share
/
66 $(INSTALL_DIR
) $(1)/usr
/sbin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/mt-daapd
$(1)/usr
/sbin
/
68 $(INSTALL_DIR
) $(1)/etc
/init.d
69 $(INSTALL_BIN
) .
/files
/mt-daapd.init
$(1)/etc
/init.d
/mt-daapd
72 $(eval
$(call BuildPackage
,mt-daapd
))