shairport-sync: get rid of libstdcpp
[feed/packages.git] / sound / owntone / 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:=owntone
11 PKG_VERSION:=28.8
12 PKG_RELEASE:=1
13
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
17
18 PKG_FIXUP:=autoreconf
19 PKG_BUILD_FLAGS:=no-mips16
20 PKG_INSTALL:=1
21
22 PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
23 PKG_LICENSE:=GPL-2.0
24 PKG_LICENSE_FILES:=COPYING
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/nls.mk
28
29 define Package/owntone
30 SECTION:=sound
31 CATEGORY:=Sound
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)
38 endef
39
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.
45 endef
46
47 define Package/owntone/conffiles
48 /etc/owntone.conf
49 endef
50
51 CONFIGURE_ARGS += \
52 --enable-chromecast \
53 --disable-install_systemd \
54 --disable-install_conf_file \
55 --disable-install_user \
56 --with-alsa \
57 --without-pulseaudio
58
59 TARGET_CFLAGS += $(FPIC)
60
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
72 endef
73
74 $(eval $(call BuildPackage,owntone))