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
:=ebaee52ae617f08c41859522ba0a839d1865dcac7d6c0eb9e3fee81caf8fd47c
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
+libevent2-pthreads
+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 \
59 TARGET_CFLAGS
+= $(FPIC
)
61 define Package
/owntone
/install
62 $(INSTALL_DIR
) $(1)/usr
/sbin
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/owntone
$(1)/usr
/sbin
/
64 $(INSTALL_DIR
) $(1)/etc
65 $(INSTALL_CONF
) .
/files
/owntone.conf
$(1)/etc
/owntone.conf
66 $(INSTALL_DIR
) $(1)/usr
/lib
/owntone
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/owntone
/* $(1)/usr
/lib
/owntone
/
68 $(INSTALL_DIR
) $(1)/etc
/init.d
69 $(INSTALL_BIN
) .
/files
/owntone.init
$(1)/etc
/init.d
/owntone
70 $(INSTALL_DIR
) $(1)/usr
/share
/owntone
71 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/owntone
/htdocs
$(1)/usr
/share
/owntone
74 $(eval
$(call BuildPackage
,owntone
))