Merge pull request #4949 from commodo/python-lxml-update
[feed/packages.git] / sound / forked-daapd / Makefile
1 #
2 # Copyright (C) 2006-2016 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:=forked-daapd
11 PKG_VERSION:=25.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://github.com/ejurgensen/$(PKG_NAME)/releases/download/$(PKG_VERSION)/
16 PKG_HASH:=5741a64d8f54e11e89dfa2fbfae693b2837e1e19a0c4980a20f8ff56bce4456e
17
18 PKG_BUILD_DEPENDS:=gperf/host
19 PKG_FIXUP:=autoreconf
20 PKG_USE_MIPS16:=0
21 PKG_INSTALL:=1
22
23 PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
24 PKG_LICENSE:=GPL-2.0
25 PKG_LICENSE_FILES:=COPYING
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/nls.mk
29
30 define Package/forked-daapd
31 SECTION:=sound
32 CATEGORY:=Sound
33 TITLE:=iTunes (DAAP) server for Apple Remote and AirPlay
34 URL:=https://github.com/ejurgensen/forked-daapd
35 DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
36 +libevent2 +libdaemon +libantlr3c +confuse +alsa-lib +libffmpeg-full \
37 +mxml +libavahi-client +sqlite3-cli +libplist +libcurl +libjson-c \
38 +libprotobuf-c +libgnutls +libsodium $(ICONV_DEPENDS)
39 endef
40
41 define Package/forked-daapd/description
42 forked-daapd is a Linux/FreeBSD DAAP (iTunes), MPD (Music Player Daemon) and
43 RSP (Roku) media server. It has support for AirPlay speakers, Chromecast,
44 Apple Remote (and compatibles), MPD clients, internet radio and LastFM. It
45 does not support AirPlay/Chromecast video.
46 endef
47
48 define Package/forked-daapd/conffiles
49 /etc/forked-daapd.conf
50 endef
51
52 CONFIGURE_ARGS += \
53 --enable-itunes \
54 --enable-lastfm \
55 --enable-mpd \
56 --enable-chromecast \
57 --enable-verification \
58 --disable-spotify \
59 --without-pulseaudio \
60 --without-libevent_pthreads
61
62 TARGET_CFLAGS += $(FPIC)
63 TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
64
65 define Package/forked-daapd/install
66 $(INSTALL_DIR) $(1)/usr/sbin
67 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
68 $(INSTALL_DIR) $(1)/etc
69 $(INSTALL_CONF) ./files/forked-daapd.conf $(1)/etc/forked-daapd.conf
70 $(INSTALL_DIR) $(1)/usr/lib/forked-daapd
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
72 $(INSTALL_DIR) $(1)/etc/init.d
73 $(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
74 endef
75
76 $(eval $(call BuildPackage,forked-daapd))