mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-16 15:35:43 +00:00
Major updates to Makefiles, please report any build time issues! Adding/updating makefiles for Qt, Jack, and Pulseadio implementations * detect if we have libpulseaudio, libsdl2, and qt5 and if so just enable them automatically without the user having to. * jack support, travis build with pa/jack/qt * pass config opts * test * test * test * don't always enable sdl * better libsdl2 detection * hopefully fixed qt/pulse/jack makefiles * oops * travis * fix jack subdir * jack fixup * jack makefile * libsdl 1 for jack * jack builds yay (qt version) * testqt * readme * let's always build test * let's always build test * sdl2 for travis build test * qt is required for jack/pulse
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
AM_CPPFLAGS=-DDATADIR_PATH='"${pkgdatadir}"'
|
|
SUBDIRS=src
|
|
PRESETSDIR = presets
|
|
EXTRA_DIST=README.md AUTHORS.txt presets fonts $(PRESETSDIR)
|
|
CLEANFILES=
|
|
|
|
# stick apps in bin
|
|
# bin_PROGRAMS = $(top_builddir)/bin
|
|
|
|
# aka /usr/local/share/projectM
|
|
pm_data_dir = $(pkgdatadir)
|
|
pm_font_dir = $(pm_data_dir)/fonts
|
|
pm_presets_dir = $(pm_data_dir)/presets
|
|
|
|
# files to install
|
|
pm_data__DATA = src/libprojectM/config.inp
|
|
pm_font__DATA = fonts/Vera.ttf fonts/VeraMono.ttf
|
|
|
|
# find and install all preset files
|
|
install-data-local:
|
|
test -z $(DESTDIR)$(pkgdatadir) || $(MKDIR_P) $(DESTDIR)$(pm_presets_dir)
|
|
find "$(PRESETSDIR)" -type f -exec $(INSTALL_DATA) {} $(DESTDIR)$(pm_presets_dir) \;
|
|
|
|
# from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268
|
|
# ptomato https://stackoverflow.com/users/172999/ptomato
|
|
|
|
src/libprojectM/config.inp: src/libprojectM/config.inp.in Makefile
|
|
$(AM_V_GEN)rm -f $@ $@.tmp && \
|
|
$(SED) -e "s,%datadir%,$(datadir),"g $< >$@.tmp && \
|
|
chmod a-w $@.tmp && \
|
|
mv $@.tmp $@
|
|
|
|
CLEANFILES += src/libprojectM/config.inp
|