Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.9KB

  1. ACLOCAL_AMFLAGS=-I m4
  2. AM_CPPFLAGS=-DDATADIR_PATH='"${pkgdatadir}"'
  3. SUBDIRS=src
  4. PRESETSDIR=@srcdir@/presets
  5. EXTRA_DIST=README.md AUTHORS.txt presets fonts vendor $(PRESETSDIR)
  6. CLEANFILES=dist
  7. # stick apps in bin
  8. # bin_PROGRAMS = $(top_builddir)/bin
  9. # aka /usr/local/share/projectM
  10. pm_data_dir = $(pkgdatadir)
  11. pm_font_dir = $(pm_data_dir)/fonts
  12. # files to install
  13. pm_data__DATA = src/libprojectM/config.inp
  14. pm_font__DATA = fonts/Vera.ttf fonts/VeraMono.ttf
  15. # find and install all preset files
  16. install-data-local:
  17. find "$(PRESETSDIR)" -path "$(PRESETSDIR)/tests" -prune -o -type d -exec $(MKDIR_P) "$(DESTDIR)/$(pm_data_dir)/{}" \;
  18. find "$(PRESETSDIR)" -path "$(PRESETSDIR)/tests" -prune -o -type f -exec $(INSTALL_DATA) "{}" "$(DESTDIR)/$(pm_data_dir)/{}" \;
  19. # from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268
  20. # ptomato https://stackoverflow.com/users/172999/ptomato
  21. src/libprojectM/config.inp: src/libprojectM/config.inp.in Makefile
  22. $(AM_V_GEN)rm -f $@ $@.tmp && \
  23. $(SED) -e "s,%datadir%,$(datadir),"g $< >$@.tmp && \
  24. chmod a-w $@.tmp && \
  25. mv $@.tmp $@
  26. macOS/Build/Products/Debug/presets:
  27. mkdir -p macOS/Build/Products/Debug
  28. ln -s $(PWD)/presets macOS/Build/Products/Debug/
  29. build-mac: macOS/Build/Products/Debug/presets
  30. xcrun xcodebuild -scheme "projectM SDL" -configuration Debug -derivedDataPath macOS
  31. @echo "Products built in macOS/Build/Products/Debug"
  32. open macOS/Build/Products/Debug
  33. build-mac-release:
  34. xcrun xcodebuild -allowProvisioningUpdates -scheme "ProjectM Installer" -configuration Release archive -archivePath build/ProjectM.xcarchive
  35. # do a macOS build
  36. dist-mac: dist build-mac-release
  37. mac/notarize.sh
  38. rm -rf dist
  39. mkdir -p dist
  40. mv ProjectM.pkg dist/projectM-macOS.pkg
  41. mv projectM-*.tar.gz dist/
  42. @echo "Success!\nBuilt plugin installer and SDL app installer in dist/"
  43. CLEANFILES+=src/libprojectM/config.inp