-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.master
93 lines (73 loc) · 2.91 KB
/
Makefile.master
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
PATHTOROOT = $(SRCDIR)/OpenFX/Support
include $(PATHTOROOT)/Plugins/Makefile.master
CXXFLAGS += -DOFX_EXTENSIONS_VEGAS -DOFX_EXTENSIONS_NUKE -DOFX_EXTENSIONS_TUTTLE -DOFX_EXTENSIONS_NATRON -DOFX_SUPPORTS_OPENGLRENDER -I$(SRCDIR)/SupportExt
VPATH += $(SRCDIR)/SupportExt
# ImageMagick
MAGICK_CXXFLAGS = $(shell pkg-config Magick++ --cflags)
MAGICK_LINKFLAGS = $(shell pkg-config Magick++ --cflags-only-other --libs --static)
#librevenge
REVENGE_CXXFLAGS = $(shell pkg-config librevenge-0.0 --cflags)
REVENGE_CXXFLAGS += $(shell pkg-config librevenge-generators-0.0 --cflags)
REVENGE_CXXFLAGS += $(shell pkg-config librevenge-stream-0.0 --cflags)
REVENGE_LINKFLAGS = $(shell pkg-config librevenge-0.0 --libs --static)
REVENGE_LINKFLAGS += $(shell pkg-config librevenge-generators-0.0 --libs --static)
REVENGE_LINKFLAGS += $(shell pkg-config librevenge-stream-0.0 --libs --static)
# libcdr
CDR_CXXFLAGS = $(shell pkg-config libcdr-0.1 --cflags)
CDR_CXXFLAGS += $(REVENGE_CXXFLAGS)
CDR_LINKFLAGS = $(shell pkg-config libcdr-0.1 --libs --static)
CDR_LINKFLAGS += $(REVENGE_LINKFLAGS)
# lcms
LCMS_CXXFLAGS = $(shell pkg-config lcms2 --cflags)
LCMS_LINKFLAGS = $(shell pkg-config lcms2 --libs --static)
# fontconfig
FCONFIG_CXXFLAGS = $(shell pkg-config fontconfig --cflags)
FCONFIG_LINKFLAGS = $(shell pkg-config fontconfig --libs --static)
# libxml2
XML_CXXFLAGS= $(shell pkg-config libxml-2.0 --cflags)
XML_LINKFLAGS= $(shell pkg-config libxml-2.0 --libs --static)
# libzip
ZIP_CXXFLAGS= $(shell pkg-config libzip --cflags)
ZIP_LINKFLAGS= $(shell pkg-config libzip --libs --static)
# librsvg
SVG_CXXFLAGS = $(shell pkg-config librsvg-2.0 --cflags)
SVG_LINKFLAGS = $(shell pkg-config librsvg-2.0 --libs --static)
# pangocairo
PANGO_CXXFLAGS = $(shell pkg-config pangocairo --cflags)
PANGO_LINKFLAGS = $(shell pkg-config pangocairo --libs --static)
# glib
GLIB_CXXFLAGS = $(shell pkg-config glib-2.0 --cflags)
GLIB_LINKFLAGS = $(shell pkg-config glib-2.0 --libs --static)
# cairo
CAIRO_CXXFLAGS = $(shell pkg-config cairo --cflags)
CAIRO_LINKFLAGS += $(shell pkg-config cairo --libs --static)
# poppler
POPPLER_CXXFLAGS += $(shell pkg-config poppler-glib --cflags)
POPPLER_LINKFLAGS += $(shell pkg-config poppler-glib --libs --static)
# curl
CURL_CXXFLAGS += $(shell pkg-config libcurl --cflags)
CURL_LINKFLAGS += $(shell pkg-config libcurl --libs --static)
# sox
SOX_CXXFLAGS += $(shell pkg-config sox --cflags)
SOX_LINKFLAGS += $(shell pkg-config sox --libs --static)
# opencl
OPENCL_CXXFLAGS += -I$(SRCDIR)/OCL
OS := $(shell uname -s)
ifeq ($(OS),Darwin)
OPENCL_LINKFLAGS += -framework OpenCL
else
OPENCL_CXXFLAGS += -I$(SRCDIR)/OCL/OpenCL
OPENCL_LINKFLAGS += -lOpenCL -L$(SRCDIR)/OCL/OpenCL/lib$(BITS)
endif
# mingw
ifeq ($(MINGW),1)
MAGICK_LINKFLAGS += -lgdi32 -lfreetype -lexpat -lz -lws2_32
ifeq ($(IM), 7)
MAGICK_LINKFLAGS += -loleaut32
endif
endif
# FreeBSD
ifeq ($(FREEBSD),1)
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib
endif