2 # Copyright (C) 2006-2016 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.xz
15 PKG_SOURCE_URL
:=https
://github.com
/owntone
/owntone-server
/releases
/download
/$(PKG_VERSION
)/
16 PKG_HASH
:=c9ee0152dc488f782a25a68e72d24c109882bef3dd2914315fe499c8415fd898
19 PKG_BUILD_FLAGS
:=no-mips16
22 PKG_MAINTAINER
:=Espen Jürgensen
<espenjurgensen
+openwrt@gmail.com
>
24 PKG_LICENSE_FILES
:=COPYING
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/nls.mk
29 define Package
/owntone
32 TITLE
:=iTunes
(DAAP
) server for Apple Remote and AirPlay
33 URL
:=https
://github.com
/owntone
/owntone-server
34 DEPENDS
:=+libgpg-error
+libgcrypt
+libgdbm
+zlib
+libexpat
+libunistring \
35 +libevent2
+libdaemon
+confuse
+alsa-lib
+libffmpeg-full \
36 +mxml
+libavahi-client
+sqlite3-cli
+libplist
+libcurl
+libjson-c \
37 +libprotobuf-c
+libgnutls
+libsodium
+libwebsockets
+libuuid
$(ICONV_DEPENDS
)
40 define Package
/owntone
/description
41 OwnTone is a Linux
/FreeBSD DAAP
(iTunes
), MPD
(Music Player Daemon
) and
42 RSP
(Roku
) media server. It has support for AirPlay speakers
, Chromecast
,
43 Apple Remote
(and compatibles
), MPD clients
, Spotify
, internet radio and
44 LastFM. It does not support AirPlay
/Chromecast video.
47 define Package
/owntone
/conffiles
53 --disable-install_systemd \
54 --disable-install_conf_file \
55 --disable-install_user \
57 --without-pulseaudio \
58 --without-libevent_pthreads
60 TARGET_CFLAGS
+= $(FPIC
)
62 define Package
/owntone
/install
63 $(INSTALL_DIR
) $(1)/usr
/sbin
64 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/owntone
$(1)/usr
/sbin
/
65 $(INSTALL_DIR
) $(1)/etc
66 $(INSTALL_CONF
) .
/files
/owntone.conf
$(1)/etc
/owntone.conf
67 $(INSTALL_DIR
) $(1)/usr
/lib
/owntone
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/owntone
/* $(1)/usr
/lib
/owntone
/
69 $(INSTALL_DIR
) $(1)/etc
/init.d
70 $(INSTALL_BIN
) .
/files
/owntone.init
$(1)/etc
/init.d
/owntone
71 $(INSTALL_DIR
) $(1)/usr
/share
/owntone
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/owntone
/htdocs
$(1)/usr
/share
/owntone
75 $(eval
$(call BuildPackage
,owntone
))