mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-10 00:25:41 +00:00
This is intended to install the folders as deposited at the source. If the backend is used then the desired folder will be selected. This allows a better overlay of the available presets and avoids overwriting the same filenames in different folders during installation. New configure value "--enable-preset-subdirs"
51 lines
1.8 KiB
Makefile
51 lines
1.8 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=dist
|
|
|
|
# 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:
|
|
if ENABLE_PRESET_SUBDIRS
|
|
find "$(PRESETSDIR)" -type f -exec install -Dm 755 "{}" "$(DESTDIR)/$(pm_data_dir)/{}" \;
|
|
else
|
|
test -z $(DESTDIR)$(pkgdatadir) || $(MKDIR_P) $(DESTDIR)$(pm_presets_dir)
|
|
find "$(PRESETSDIR)" -type f -print0 | LC_ALL=C sort -z | xargs -0 '-I{}' $(INSTALL_DATA) '{}' $(DESTDIR)$(pm_presets_dir)
|
|
endif
|
|
|
|
# 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 $@
|
|
|
|
# do a macOS build
|
|
dist-mac: dist
|
|
rm -rf dist
|
|
xcrun xcodebuild -scheme "projectM SDL" -configuration Release archive -archivePath build/ProjectM.xcarchive
|
|
xcrun xcodebuild -scheme "iProjectM" -configuration Release archive -archivePath build/iTunes.xcarchive
|
|
mkdir -p dist
|
|
# mv build/ProjectM.xcarchive/Products/Applications/projectM\ SDL.app dist/
|
|
mv src/projectM-iTunes/iTunes\ Visualizer.pkg dist/iTunes-plugin-macOS.pkg
|
|
mv src/projectM-sdl/projectM\ SDL.pkg dist/projectM-macOS.pkg
|
|
mv projectM-*.tar.gz dist/
|
|
@echo "Success!\nBuilt iTunes plugin installer and SDL apps in dist/"
|
|
|
|
CLEANFILES+=src/libprojectM/config.inp
|