lib: media: Allow thumbnails to be cropped
[vlc.git] / contrib / src / projectM / rules.mak
blob29c92fd9f55ba53b1911952ac64b53be14fbfbbd
1 # PROJECTM
2 PROJECTM_VERSION := 2.0.1
3 PROJECTM_URL := $(SF)/projectm/$(PROJECTM_VERSION)/projectM-$(PROJECTM_VERSION)-Source.tar.gz
5 ifdef HAVE_WIN32
6 ifneq ($(ARCH),arm)
7 ifneq ($(ARCH),aarch64)
8 ifndef HAVE_WINSTORE
9 PKGS += projectM
10 endif
11 endif
12 endif
13 endif
14 ifeq ($(call need_pkg,"libprojectM"),)
15 PKGS_FOUND += projectM
16 endif
18 $(TARBALLS)/projectM-$(PROJECTM_VERSION)-Source.tar.gz:
19 $(call download_pkg,$(PROJECTM_URL),projectM)
21 .sum-projectM: projectM-$(PROJECTM_VERSION)-Source.tar.gz
23 projectM: projectM-$(PROJECTM_VERSION)-Source.tar.gz .sum-projectM
24 $(UNPACK)
25 ifdef HAVE_WIN64
26 $(APPLY) $(SRC)/projectM/win64.patch
27 endif
28 ifdef HAVE_WIN32
29 $(APPLY) $(SRC)/projectM/win32.patch
30 endif
31 $(APPLY) $(SRC)/projectM/gcc6.patch
32 $(APPLY) $(SRC)/projectM/clang6.patch
33 $(MOVE)
35 DEPS_projectM = glew $(DEPS_glew)
37 .projectM: projectM toolchain.cmake
38 -cd $< && rm CMakeCache.txt
39 cd $< && $(HOSTVARS) $(CMAKE) \
40 -DINCLUDE-PROJECTM-LIBVISUAL:BOOL=OFF \
41 -DDISABLE_NATIVE_PRESETS:BOOL=ON \
42 -DUSE_FTGL:BOOL=OFF \
43 -DINCLUDE-PROJECTM-PULSEAUDIO:BOOL=OFF \
44 -DINCLUDE-PROJECTM-QT:BOOL=OFF \
45 -DBUILD_PROJECTM_STATIC:BOOL=ON .
46 cd $< && $(MAKE) install
47 -cd $<; cp Renderer/libRenderer.a MilkdropPresetFactory/libMilkdropPresetFactory.a $(PREFIX)/lib
48 touch $@