forked from fblumenthal/buildem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fontconfig.cmake
48 lines (40 loc) · 1.41 KB
/
fontconfig.cmake
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
#
# install fontconfig from source
#
if (NOT fontconfig_NAME)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
include (ExternalProject)
include (ExternalSource)
include (BuildSupport)
include (libxml2)
include (freetype2)
external_source(
fontconfig
2.10.95
fontconfig-2.10.95.tar.gz
09bb3c3469c3453d4d5c39f66f8a8aac
http://www.freedesktop.org/software/fontconfig/release/
FORCE
)
message("Installing ${fontconfig_NAME} into FlyEM build area ${BUILDEM_DIR} ...")
ExternalProject_Add(
${fontconfig_NAME}
DEPENDS ${libxml2_NAME} ${freetype2_NAME}
PREFIX ${BUILDEM_DIR}
URL ${fontconfig_URL}
URL_MD5 ${fontconfig_MD5}
UPDATE_COMMAND ""
PATCH_COMMAND ""
CONFIGURE_COMMAND ${BUILDEM_ENV_STRING} ${fontconfig_SRC_DIR}/configure
--prefix=${BUILDEM_DIR}
--enable-shared
--enable-libxml2
"LDFLAGS=-L${BUILDEM_DIR}/lib ${BUILDEM_ADDITIONAL_CXX_FLAGS}"
"CPPFLags=${BUILDEM_ADDITIONAL_CXX_FLAGS}"
LIBXML2_CFLAGS=-I${BUILDEM_DIR}/include/libxml2 LIBXML2_LIBS=-lxml2
FREETYPE_CFLAGS=-I${BUILDEM_DIR}/include/freetype2 FREETYPE_LIBS=-lfreetype
BUILD_COMMAND ${BUILDEM_ENV_STRING} $(MAKE)
INSTALL_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) install
TEST_COMMAND ${BUILDEM_ENV_STRING} $(MAKE) check
)
endif(NOT fontconfig_NAME)