@@ -10,41 +10,42 @@ mingw-w64-headers_CONFIGURE_OPTS=--prefix='$(PREFIX)/$(TARGET)/mingw'
10
10
common_CONFIGURE_OPTS=--prefix ='$(PREFIX ) /$(TARGET ) /mingw' \
11
11
--with-sysroot='$(PREFIX ) /$(TARGET ) /mingw' \
12
12
CPPFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include' \
13
- CFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include -s -O3 -ffast-math ' \
14
- CXXFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include -s -O3 -ffast-math ' \
13
+ CFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include' \
14
+ CXXFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include' \
15
15
LDFLAGS='-L$(PREFIX ) /$(TARGET ) /mingw/lib' \
16
16
RCFLAGS='-I$(PREFIX ) /$(TARGET ) /mingw/include'
17
17
18
18
# Override GCC patches with our own patches
19
19
gcc_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/gcc-[0-9]* .patch) ) )
20
20
21
- # Point native system header dir to /mingw/include and
22
- # compile without some optimizations / stripping
23
- gcc_CONFIGURE_OPTS=--with-native-system-header-dir ='/mingw/include' \
24
- CFLAGS='-s -O3 -ffast-math' \
25
- CXXFLAGS='-s -O3 -ffast-math' \
21
+ # Point native system header dir to /mingw/include
22
+ # and compile without optimizations / stripping
23
+ gcc_CONFIGURE_OPTS=--with-build-sysroot ='$(PREFIX ) /$(TARGET ) ' \
24
+ --with-native-system-header-dir='/mingw/include' \
25
+ CFLAGS='' \
26
+ CXXFLAGS='' \
26
27
LDFLAGS=''
27
28
28
29
# The trick here is to symlink all files from /mingw/{bin,lib,include}/
29
30
# to $(PREFIX)/$(TARGET) after building MinGW-w64
30
31
# This ensures that all files are found during linking and that we
31
32
# can clean up those unnecessary files afterwards
32
33
define gcc_BUILD_x86_64-w64-mingw32
33
- $(subst # build rest of gcc, ln -sf $(PREFIX ) /$(TARGET ) /mingw/bin/* $(PREFIX ) /$(TARGET ) /bin && \
34
- ln -sf '$(PREFIX ) /$(TARGET ) /mingw/lib/'* $(PREFIX ) /$(TARGET ) /lib && \
35
- ln -sf '$(PREFIX ) /$(TARGET ) /mingw/include/'* $(PREFIX ) /$(TARGET ) /include, \
36
34
$(subst @gcc-crt-config-opts@,--disable-lib32 $(common_CONFIGURE_OPTS ) , \
37
35
$(subst winpthreads/configure' $(MXE_CONFIGURE_OPTS ) ,winpthreads/configure' $(MXE_CONFIGURE_OPTS ) $(common_CONFIGURE_OPTS ) , \
38
- $(gcc_BUILD_mingw-w64 ) ) ) )
36
+ $(gcc_BUILD_mingw-w64 ) ) )
37
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/bin/'* '$(PREFIX ) /$(TARGET ) /bin'
38
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/lib/'* '$(PREFIX ) /$(TARGET ) /lib'
39
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/include/'* '$(PREFIX ) /$(TARGET ) /include'
39
40
endef
40
41
41
42
define gcc_BUILD_i686-w64-mingw32
42
- $(subst # build rest of gcc, ln -sf $(PREFIX ) /$(TARGET ) /mingw/bin/* $(PREFIX ) /$(TARGET ) /bin && \
43
- ln -sf '$(PREFIX ) /$(TARGET ) /mingw/lib/'* '$(PREFIX ) /$(TARGET ) /lib' && \
44
- ln -sf '$(PREFIX ) /$(TARGET ) /mingw/include/'* '$(PREFIX ) /$(TARGET ) /include', \
45
43
$(subst @gcc-crt-config-opts@,--disable-lib64 $(common_CONFIGURE_OPTS ) , \
46
44
$(subst winpthreads/configure' $(MXE_CONFIGURE_OPTS ) ,winpthreads/configure' $(MXE_CONFIGURE_OPTS ) $(common_CONFIGURE_OPTS ) , \
47
- $(gcc_BUILD_mingw-w64 ) ) ) )
45
+ $(gcc_BUILD_mingw-w64 ) ) )
46
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/bin/'* '$(PREFIX ) /$(TARGET ) /bin'
47
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/lib/'* '$(PREFIX ) /$(TARGET ) /lib'
48
+ ln -sf '$(PREFIX ) /$(TARGET ) /mingw/include/'* '$(PREFIX ) /$(TARGET ) /include'
48
49
endef
49
50
50
51
# GCC does not support Windows on ARM
@@ -124,8 +125,8 @@ x265_URL := https://bitbucket.org/multicoreware/x265/downloads/$(x265_FILE)
124
125
x265_URL_2 := ftp://ftp.videolan.org/pub/videolan/x265/$(x265_FILE )
125
126
126
127
# upstream version is 2.40.5
127
- librsvg_VERSION := 2.47.3
128
- librsvg_CHECKSUM := bf8b970f5e72edb66be79e11df2b20f180abff5029c90e94d6c254476b0ba5fa
128
+ librsvg_VERSION := 2.48.0
129
+ librsvg_CHECKSUM := 4a348b76cf4c52838e9c337ca767a38fe7f742db40ccccf8ac99f1946872cda6
129
130
librsvg_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/librsvg-[0-9]* .patch) ) )
130
131
librsvg_SUBDIR := librsvg-$(librsvg_VERSION )
131
132
librsvg_FILE := librsvg-$(librsvg_VERSION ) .tar.xz
@@ -142,11 +143,11 @@ pango_URL := https://download.gnome.org/sources/pango/$(call SHORT_PKG_VERS
142
143
# upstream version is 1.0.5
143
144
# cannot use GH_CONF:
144
145
# fribidi_GH_CONF := fribidi/fribidi/releases,v
145
- fribidi_VERSION := 1.0.8
146
- fribidi_CHECKSUM := 94c7b68d86ad2a9613b4dcffe7bbeb03523d63b5b37918bdf2e4ef34195c1e6c
146
+ fribidi_VERSION := 1.0.9
147
+ fribidi_CHECKSUM := c5e47ea9026fb60da1944da9888b4e0a18854a0e2410bbfe7ad90a054d36e0c7
147
148
fribidi_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/fribidi-[0-9]* .patch) ) )
148
149
fribidi_SUBDIR := fribidi-$(fribidi_VERSION )
149
- fribidi_FILE := fribidi-$(fribidi_VERSION ) .tar.bz2
150
+ fribidi_FILE := fribidi-$(fribidi_VERSION ) .tar.xz
150
151
fribidi_URL := https://github.com/fribidi/fribidi/releases/download/v$(fribidi_VERSION ) /$(fribidi_FILE )
151
152
152
153
# upstream version is 1.0.3
@@ -158,8 +159,8 @@ libwebp_FILE := libwebp-$(libwebp_VERSION).tar.gz
158
159
libwebp_URL := http://downloads.webmproject.org/releases/webp/$(libwebp_FILE )
159
160
160
161
# upstream version is 2.50.2
161
- glib_VERSION := 2.63.5
162
- glib_CHECKSUM := 851a4725a2ae401c1a4e49cf2138920cf87e028f033a2af33f5a16d159a3b78c
162
+ glib_VERSION := 2.64.1
163
+ glib_CHECKSUM := 17967603bcb44b6dbaac47988d80c29a3d28519210b28157c2bd10997595bbc7
163
164
glib_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST ) ) ) /patches/glib-[0-9]* .patch) ) )
164
165
glib_SUBDIR := glib-$(glib_VERSION )
165
166
glib_FILE := glib-$(glib_VERSION ) .tar.xz
@@ -317,7 +318,7 @@ define libffi_BUILD
317
318
cd '$(BUILD_DIR ) ' && $(SOURCE_DIR ) /configure \
318
319
$(MXE_CONFIGURE_OPTS ) \
319
320
--disable-multi-os-directory \
320
- --disable-raw-api \
321
+ $( if $( BUILD_STATIC ) , --disable-raw-api) \
321
322
$(if $(findstring posix,$(TARGET ) ) , --disable-symvers)
322
323
323
324
$(MAKE ) -C '$(BUILD_DIR ) ' -j '$(JOBS ) '
@@ -360,6 +361,18 @@ define harfbuzz_BUILD
360
361
> '$(PREFIX ) /$(TARGET ) /lib/pkgconfig/$(PKG ) .pc'
361
362
endef
362
363
364
+ define freetype_BUILD
365
+ # alias libharfbuzz and libfreetype to satisfy circular dependence
366
+ # libfreetype should already have been created by freetype-bootstrap.mk
367
+ $(if $(BUILD_STATIC ) , \
368
+ ln -sf libharfbuzz.a '$(PREFIX ) /$(TARGET ) /lib/libharfbuzz_too.a' \
369
+ && ln -sf libfreetype.a '$(PREFIX ) /$(TARGET ) /lib/libfreetype_too.a',)
370
+ $($(PKG ) _BUILD_COMMON)
371
+ # remove circular dependencies from pc file
372
+ $(if $(BUILD_STATIC ) , \
373
+ $(SED ) -i '/^Libs.private:/s/\-lharfbuzz_too -lfreetype_too//g' '$(PREFIX ) /$(TARGET ) /lib/pkgconfig/freetype2.pc')
374
+ endef
375
+
363
376
# exclude bz2 and gdk-pixbuf
364
377
define libgsf_BUILD
365
378
$(SED ) -i 's,\ssed\s, $(SED ) ,g' '$(SOURCE_DIR ) '/gsf/Makefile.in
@@ -653,8 +666,7 @@ define cairo_BUILD
653
666
--disable-ps \
654
667
--disable-script \
655
668
--disable-pdf \
656
- $(if $(BUILD_STATIC ) , \
657
- --disable-svg) \
669
+ $(if $(BUILD_STATIC ) , --disable-svg) \
658
670
--disable-win32 \
659
671
--disable-win32-font \
660
672
--disable-interpreter \
0 commit comments