AM_CPPFLAGS = -DDEBUG -g -Wall \
$(upnpp_CFLAGS) \
$(libmpdclient_CFLAGS) \
$(libmicrohttpd_CFLAGS) \
$(jsoncpp_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/mediaserver/cdplugins \
-DDATADIR=\"${pkgdatadir}\" -DCONFIGDIR=\"${sysconfdir}\"
AM_CXXFLAGS = -std=c++11
bin_PROGRAMS = upmpdcli scctl
# We import the log facility from libupnpp, which requires fixing
# include directives for files which expect to live in the same
# directory as log.h
BUILT_SOURCES = src/conftree-fixed.cpp src/execmd-fixed.cpp \
src/mediaserver/cdplugins/cmdtalk-fixed.cpp src/netcon-fixed.cpp
src/conftree-fixed.cpp : $(top_srcdir)/src/conftree.cpp
sed -e 's;#include "log.h";#include "libupnpp/log.h";' < \
$(top_srcdir)/src/conftree.cpp > src/conftree-fixed.cpp
src/execmd-fixed.cpp : $(top_srcdir)/src/execmd.cpp
sed -e 's;#include "log.h";#include "libupnpp/log.h";' < \
$(top_srcdir)/src/execmd.cpp > src/execmd-fixed.cpp
src/netcon-fixed.cpp : $(top_srcdir)/src/netcon.cpp
sed -e 's;#include "log.h";#include "libupnpp/log.h";' < \
$(top_srcdir)/src/netcon.cpp > src/netcon-fixed.cpp
src/mediaserver/cdplugins/cmdtalk-fixed.cpp : \
$(top_srcdir)/src/mediaserver/cdplugins/cmdtalk.cpp
sed -e 's;#include "log.h";#include "libupnpp/log.h";' < \
$(top_srcdir)/src/mediaserver/cdplugins/cmdtalk.cpp > \
src/mediaserver/cdplugins/cmdtalk-fixed.cpp
CLEANFILES = $(BUILT_SOURCES)
upmpdcli_SOURCES = \
src/avtransport.cxx \
src/avtransport.hxx \
src/closefrom.cpp \
src/closefrom.h \
src/conf_post.h \
src/conftree-fixed.cpp \
src/conftree.h \
src/conman.cxx \
src/conman.hxx \
src/execmd-fixed.cpp \
src/execmd.h \
src/httpfs.cxx \
src/httpfs.hxx \
src/main.cxx \
src/main.hxx \
src/mediaserver/cdplugins/cdplugin.hxx \
src/mediaserver/cdplugins/cmdtalk-fixed.cpp \
src/mediaserver/cdplugins/cmdtalk.h \
src/mediaserver/cdplugins/plgwithslave.cxx \
src/mediaserver/cdplugins/plgwithslave.hxx \
src/mediaserver/contentdirectory.cxx \
src/mediaserver/contentdirectory.hxx \
src/mediaserver/mediaserver.cxx \
src/mediaserver/mediaserver.hxx \
src/mpdcli.cxx \
src/mpdcli.hxx \
src/netcon-fixed.cpp \
src/netcon.h \
src/ohinfo.cxx \
src/ohinfo.hxx \
src/ohmetacache.cxx \
src/ohmetacache.hxx \
src/ohplaylist.cxx \
src/ohplaylist.hxx \
src/ohproduct.cxx \
src/ohproduct.hxx \
src/ohradio.cxx \
src/ohradio.hxx \
src/ohreceiver.cxx \
src/ohreceiver.hxx \
src/ohservice.hxx \
src/ohsndrcv.cxx \
src/ohsndrcv.hxx \
src/ohtime.cxx \
src/ohtime.hxx \
src/ohvolume.cxx \
src/ohvolume.hxx \
src/pathut.cpp \
src/pathut.h \
src/readfile.cpp \
src/readfile.h \
src/renderctl.cxx \
src/renderctl.hxx \
src/smallut.cpp \
src/smallut.h \
src/upmpd.cxx \
src/upmpd.hxx \
src/upmpdutils.cxx \
src/upmpdutils.hxx
upmpdcli_LDADD = $(UPMPDCLI_LIBS)
scctl_SOURCES = \
scctl_src/scctl.cpp \
src/netcon-fixed.cpp \
src/smallut.cpp \
src/upmpdutils.cxx
scctl_LDADD = $(SCCTL_LIBS)
dist_pkgdata_DATA = src/description.xml src/AVTransport.xml \
src/RenderingControl.xml src/ConnectionManager.xml \
src/OHProduct.xml src/OHInfo.xml src/OHTime.xml \
src/OHVolume.xml src/OHPlaylist.xml src/OHReceiver.xml \
src/OHRadio.xml src/mediaserver/ContentDirectory.xml \
src/protocolinfo.txt src/presentation.html
cdpluginspycomdir = $(pkgdatadir)/cdplugins/pycommon
dist_cdpluginspycom_DATA = \
src/mediaserver/cdplugins/pycommon/cmdtalk.py \
src/mediaserver/cdplugins/pycommon/cmdtalkplugin.py \
src/mediaserver/cdplugins/pycommon/conftree.py \
src/mediaserver/cdplugins/pycommon/routing.py \
src/mediaserver/cdplugins/pycommon/upmplgmodels.py \
src/mediaserver/cdplugins/pycommon/upmplgutils.py
cdpluginstidaldir = $(pkgdatadir)/cdplugins/tidal
dist_cdpluginstidal_DATA = \
src/mediaserver/cdplugins/tidal/tidal-app.py
cdpluginstidallibdir = $(pkgdatadir)/cdplugins/tidal/tidalapi
dist_cdpluginstidallib_DATA = \
src/mediaserver/cdplugins/tidal/tidalapi/__init__.py \
src/mediaserver/cdplugins/tidal/tidalapi/models.py
cdpluginsqobuzdir = $(pkgdatadir)/cdplugins/qobuz
dist_cdpluginsqobuz_DATA = \
src/mediaserver/cdplugins/qobuz/debug.py \
src/mediaserver/cdplugins/qobuz/exception.py \
src/mediaserver/cdplugins/qobuz/__init__.py \
src/mediaserver/cdplugins/qobuz/qobuz-app.py \
src/mediaserver/cdplugins/qobuz/session.py
cdpluginsqobuzlibdir = $(pkgdatadir)/cdplugins/qobuz/api
dist_cdpluginsqobuzlib_DATA = \
src/mediaserver/cdplugins/qobuz/api/easy.py \
src/mediaserver/cdplugins/qobuz/api/__init__.py \
src/mediaserver/cdplugins/qobuz/api/raw.py
cdpluginsgmusicdir = $(pkgdatadir)/cdplugins/gmusic
dist_cdpluginsgmusic_DATA = \
src/mediaserver/cdplugins/gmusic/gmusic-app.py \
src/mediaserver/cdplugins/gmusic/session.py
cdpluginsuprcldir = $(pkgdatadir)/cdplugins/uprcl
dist_cdpluginsuprcl_DATA = \
src/mediaserver/cdplugins/uprcl/uprclfolders.py \
src/mediaserver/cdplugins/uprcl/uprclhttp.py \
src/mediaserver/cdplugins/uprcl/uprcl-app.py \
src/mediaserver/cdplugins/uprcl/uprclsearch.py \
src/mediaserver/cdplugins/uprcl/uprclutils.py \
src/mediaserver/cdplugins/uprcl/uprcluntagged.py \
src/mediaserver/cdplugins/uprcl/uprclindex.py \
src/mediaserver/cdplugins/uprcl/uprcltags.py \
src/mediaserver/cdplugins/uprcl/rclconfig-fields
EXTRA_DIST = web.tar.gz rdpl2stream.tar.gz systemd/upmpdcli.service \
src/conftree.cpp src/execmd.cpp src/mediaserver/cdplugins/cmdtalk.cpp \
src/netcon.cpp
web.tar.gz: bogus
if test -d $(srcdir)/web; then \
(cd $(srcdir); tar cvzf - web) > web.tar.gz; fi
rdpl2stream.tar.gz: bogus
if test -d $(srcdir)/rdpl2stream; then \
(cd $(srcdir); rm -rf rdpl2stream/__pycache__/; tar cvzf - rdpl2stream) > \
rdpl2stream.tar.gz; fi
bogus:
install-data-hook: web.tar.gz rdpl2stream.tar.gz
(cd $(DESTDIR)$(sysconfdir); test -f upmpdcli.conf || \
mv upmpdcli.conf-dist upmpdcli.conf; chmod 600 upmpdcli.conf)
(cd $(DESTDIR)$(pkgdatadir); tar xzf -) < web.tar.gz
(cd $(DESTDIR)$(pkgdatadir); tar xzf -) < rdpl2stream.tar.gz
(cd $(DESTDIR)$(pkgdatadir); test -d src_scripts || mkdir src_scripts)
(cd $(DESTDIR)/$(cdpluginstidaldir); chmod a+x tidal-app.py)
(cd $(DESTDIR)/$(cdpluginsqobuzdir); chmod a+x qobuz-app.py)
(cd $(DESTDIR)/$(cdpluginsgmusicdir); chmod a+x gmusic-app.py)
(cd $(DESTDIR)/$(cdpluginsuprcldir); chmod a+x uprcl-app.py)
dist_pkgdata_SCRIPTS = samplescripts/Analog-Input
dist_sysconf_DATA = src/upmpdcli.conf-dist
dist_man1_MANS = man/upmpdcli.1
dist-hook:
rm -rf rdpl2stream/__pycache__/
# test -z "`git status -s | grep -v '??' | grep -v Makefile.am`"
# git tag -f -a upmpdcli-v$(VERSION) -m 'version $(VERSION)'