-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile_Docker
112 lines (103 loc) · 2.39 KB
/
Makefile_Docker
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
LIBREOFFICE_VERSION ?= 6.4.3.2
TARGET_DIR ?= /tmp
PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
CACHE_DIR=$(PROJECT_ROOT)build/cache
.ONESHELL:
# ------------------------------
# init
# ------------------------------
init:
yum install -y \
autoconf \
ccache \
expat-devel \
expat-devel.x86_64 \
fontconfig-devel \
git \
gmp-devel \
google-crosextra-caladea-fonts \
google-crosextra-carlito-fonts \
gperf \
icu \
libcurl-devel \
liberation-sans-fonts \
liberation-serif-fonts \
libffi-devel \
libICE-devel \
libicu-devel \
libmpc-devel \
libpng-devel \
libSM-devel \
libX11-devel \
libXext-devel \
libXrender-devel \
libxslt-devel \
mesa-libGL-devel \
mesa-libGLU-devel \
mpfr-devel \
nasm \
nspr-devel \
nss-devel \
openssl-devel \
perl-Digest-MD5 \
python34-devel
# ------------------------------
# LibreOffice
# ------------------------------
LIBRE_OFFICE_SOURCE=libreoffice-$(LIBREOFFICE_VERSION).tar.xz
$(LIBRE_OFFICE_SOURCE):
curl -LO https://download.documentfoundation.org/libreoffice/src/6.4.3/libreoffice-$(LIBREOFFICE_VERSION).tar.xz
$(TARGET_DIR)/instdir: $(LIBRE_OFFICE_SOURCE)
tar xf $<
cd libre*
ccache --max-size 32 G && ccache -s
./autogen.sh \
--disable-avahi \
--disable-cairo-canvas \
--disable-coinmp \
--disable-cups \
--disable-cve-tests \
--disable-dbus \
--disable-dconf \
--disable-dependency-tracking \
--disable-evolution2 \
--disable-dbgutil \
--disable-extension-update \
--disable-firebird-sdbc \
--disable-firebird-sdbc \
--disable-gio \
--disable-gstreamer-1-0 \
--disable-gtk3 \
--disable-introspection \
--disable-largefile \
--disable-lotuswordpro \
--disable-lpsolve \
--disable-odk \
--disable-ooenv \
--disable-pch \
--disable-postgresql-sdbc \
--disable-python \
--disable-randr \
--disable-report-builder \
--disable-scripting-beanshell \
--disable-scripting-javascript \
--disable-sdremote \
--disable-sdremote-bluetooth \
--enable-mergelibs \
--with-galleries="no" \
--with-system-curl \
--with-system-expat \
--with-system-libxml \
--with-system-nss \
--with-system-openssl \
--with-theme="no" \
--without-export-validation \
--without-fonts \
--without-helppack-integration \
--without-java \
--without-junit \
--without-krb5 \
--without-myspell-dicts \
--without-system-dicts
make
all: init $(TARGET_DIR)/instdir