1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2022 IPFire Team <info@ipfire.org> #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
27 SUMMARY = Music Player Daemon
32 DL_FILE = $(THISAPP).tar.xz
33 DL_FROM = $(URL_IPFIRE)
34 DIR_APP = $(DIR_SRC)/${THISAPP}
35 TARGET = $(DIR_INFO)/$(THISAPP)
38 SUP_ARCH = aarch64 armv6l x86_64
40 DEPS = alsa avahi faad2 ffmpeg flac lame libmad libshout libogg libid3tag libvorbis opus soxr fmt
44 ###############################################################################
46 ###############################################################################
50 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
52 $(DL_FILE)_BLAKE2 = 6b648971412a5f83fe9ff2694c030b451393c415de9c34cbea9894555ac7ea87c5a991edfdd41c7cd76511ae0680ecab35eb36ceae5e372900518c9cf5e9c55c
56 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
58 download :$(patsubst %,$(DIR_DL)/%,$(objects))
60 b2 : $(subst %,%_BLAKE2,$(objects))
65 ###############################################################################
66 # Downloading, checking, b2sum
67 ###############################################################################
69 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
72 $(patsubst %,$(DIR_DL)/%,$(objects)) :
75 $(subst %,%_BLAKE2,$(objects)) :
78 ###############################################################################
79 # Installation Details
80 ###############################################################################
82 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
84 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
86 cd $(DIR_APP) && meson --prefix=/usr \
91 -D smbclient=disabled \
101 cd $(DIR_APP) && ninja -C builddir/ $(MAKETUNING)
102 cd $(DIR_APP) && ninja -C builddir/ install
105 $(call INSTALL_INITSCRIPTS,$(SERVICES))
108 touch /var/log/mpd.error.log
109 touch /var/log/mpd.log