rules.mak 1.14 KB
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1
2
3
4
# PROJECTM
PROJECTM_VERSION := 2.0.1
PROJECTM_URL := $(SF)/projectm/$(PROJECTM_VERSION)/projectM-$(PROJECTM_VERSION)-Source.tar.gz

5
ifdef HAVE_WIN32
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
6
PKGS += projectM
7
endif
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
8
9
10
11
12
ifeq ($(call need_pkg,"libprojectM"),)
PKGS_FOUND += projectM
endif

$(TARBALLS)/projectM-$(PROJECTM_VERSION)-Source.tar.gz:
13
	$(call download_pkg,$(PROJECTM_URL),projectM)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
14
15
16
17
18

.sum-projectM: projectM-$(PROJECTM_VERSION)-Source.tar.gz

projectM: projectM-$(PROJECTM_VERSION)-Source.tar.gz .sum-projectM
	$(UNPACK)
19
20
21
ifdef HAVE_WIN64
	$(APPLY) $(SRC)/projectM/win64.patch
endif
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
22
23
24
ifdef HAVE_WIN32
	$(APPLY) $(SRC)/projectM/win32.patch
endif
25
	$(APPLY) $(SRC)/projectM/gcc6.patch
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
26
27
28
29
	$(MOVE)

DEPS_projectM = glew $(DEPS_glew)

30
.projectM: projectM toolchain.cmake
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
31
32
33
34
35
36
37
	-cd $< && rm CMakeCache.txt
	cd $< && $(HOSTVARS) $(CMAKE) \
		-DINCLUDE-PROJECTM-LIBVISUAL:BOOL=OFF \
		-DDISABLE_NATIVE_PRESETS:BOOL=ON \
		-DUSE_FTGL:BOOL=OFF \
		-DINCLUDE-PROJECTM-PULSEAUDIO:BOOL=OFF \
		-DINCLUDE-PROJECTM-QT:BOOL=OFF \
38
		-DCMAKE_CXX_STANDARD=98 \
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
39
40
41
42
		-DBUILD_PROJECTM_STATIC:BOOL=ON .
	cd $< && $(MAKE) install
	-cd $<; cp Renderer/libRenderer.a MilkdropPresetFactory/libMilkdropPresetFactory.a $(PREFIX)/lib
	touch $@