treewide: refactor to use PKG_BUILD_FLAGS:=no-mips16
[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.5
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:=c9ee0152dc488f782a25a68e72d24c109882bef3dd2914315fe499c8415fd898
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 +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 --without-libevent_pthreads
59
60 TARGET_CFLAGS += $(FPIC)
61
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
73 endef
74
75 $(eval $(call BuildPackage,owntone))