@@ -27,15 +27,7 @@ build/lib/fribidi/configure: lib/fribidi $(wildcard $(BASE_DIR)build/patches/fri
2727
2828$(DIST_DIR ) /lib/libfribidi.a : build/lib/fribidi/configure
2929 cd build/lib/fribidi && \
30- emconfigure ./configure \
31- --prefix=" $( DIST_DIR) " \
32- --host=x86-none-linux \
33- --build=x86_64 \
34- --enable-static \
35- --disable-shared \
36- --disable-dependency-tracking \
37- --disable-debug \
38- && \
30+ $(call CONFIGURE_AUTO) && \
3931 emmake make -C lib/ install && \
4032 emmake make install-pkgconfigDATA
4133
@@ -45,15 +37,13 @@ build/lib/expat/configured: lib/expat
4537
4638$(DIST_DIR ) /lib/libexpat.a : build/lib/expat/configured
4739 cd build/lib/expat && \
48- emcmake cmake \
49- -DCMAKE_INSTALL_PREFIX=$(DIST_DIR ) \
40+ $(call CONFIGURE_CMAKE,$(BASE_DIR ) lib/expat/expat) \
5041 -DEXPAT_BUILD_DOCS=off \
5142 -DEXPAT_SHARED_LIBS=off \
5243 -DEXPAT_BUILD_EXAMPLES=off \
5344 -DEXPAT_BUILD_FUZZERS=off \
5445 -DEXPAT_BUILD_TESTS=off \
5546 -DEXPAT_BUILD_TOOLS=off \
56- $(BASE_DIR ) lib/expat/expat \
5747 && \
5848 emmake make -j8 && \
5949 emmake make install
@@ -67,10 +57,7 @@ build/lib/brotli/configured: lib/brotli $(wildcard $(BASE_DIR)build/patches/brot
6757$(DIST_DIR ) /lib/libbrotlidec.a : $(DIST_DIR ) /lib/libbrotlicommon.a
6858$(DIST_DIR ) /lib/libbrotlicommon.a : build/lib/brotli/configured
6959 cd build/lib/brotli && \
70- emcmake cmake \
71- -DCMAKE_INSTALL_PREFIX=$(DIST_DIR ) \
72- . \
73- && \
60+ $(call CONFIGURE_CMAKE) && \
7461 emmake make -j8 && \
7562 emmake make install
7663 # Normalise static lib names
@@ -87,13 +74,8 @@ build/lib/freetype/build_hb/dist_hb/lib/libfreetype.a: $(DIST_DIR)/lib/libbrotli
8774 cd build/lib/freetype && \
8875 mkdir -p build_hb && \
8976 cd build_hb && \
90- emconfigure ../configure \
77+ $( call CONFIGURE_AUTO,..) \
9178 --prefix=" $$ (pwd)/dist_hb" \
92- --host=x86-none-linux \
93- --build=x86_64 \
94- --enable-static \
95- --disable-shared \
96- \
9779 --with-brotli=yes \
9880 --without-harfbuzz \
9981 && \
@@ -110,14 +92,7 @@ $(DIST_DIR)/lib/libharfbuzz.a: build/lib/freetype/build_hb/dist_hb/lib/libfreety
11092 EM_PKG_CONFIG_PATH=$(PKG_CONFIG_PATH ) :$(BASE_DIR ) build/lib/freetype/build_hb/dist_hb/lib/pkgconfig \
11193 CFLAGS=" -DHB_NO_MT $( CFLAGS) " \
11294 CXXFLAGS=" -DHB_NO_MT $( CFLAGS) " \
113- emconfigure ./configure \
114- --prefix=" $( DIST_DIR) " \
115- --host=x86-none-linux \
116- --build=x86_64 \
117- --enable-static \
118- --disable-shared \
119- --disable-dependency-tracking \
120- \
95+ $(call CONFIGURE_AUTO) \
12196 --with-freetype \
12297 && \
12398 cd src && \
@@ -127,13 +102,7 @@ $(DIST_DIR)/lib/libharfbuzz.a: build/lib/freetype/build_hb/dist_hb/lib/libfreety
127102$(DIST_DIR ) /lib/libfreetype.a : $(DIST_DIR ) /lib/libharfbuzz.a $(DIST_DIR ) /lib/libbrotlidec.a
128103 cd build/lib/freetype && \
129104 EM_PKG_CONFIG_PATH=$(PKG_CONFIG_PATH ) :$(BASE_DIR ) build/lib/freetype/build_hb/dist_hb/lib/pkgconfig \
130- emconfigure ./configure \
131- --prefix=" $( DIST_DIR) " \
132- --host=x86-none-linux \
133- --build=x86_64 \
134- --enable-static \
135- --disable-shared \
136- \
105+ $(call CONFIGURE_AUTO) \
137106 --with-brotli=yes \
138107 --with-harfbuzz \
139108 && \
@@ -147,12 +116,7 @@ build/lib/fontconfig/configure: lib/fontconfig $(wildcard $(BASE_DIR)build/patch
147116
148117$(DIST_DIR ) /lib/libfontconfig.a : $(DIST_DIR ) /lib/libharfbuzz.a $(DIST_DIR ) /lib/libexpat.a $(DIST_DIR ) /lib/libfribidi.a $(DIST_DIR ) /lib/libfreetype.a build/lib/fontconfig/configure
149118 cd build/lib/fontconfig && \
150- emconfigure ./configure \
151- --prefix=" $( DIST_DIR) " \
152- --host=x86-none-linux \
153- --build=x86_64 \
154- --disable-shared \
155- --enable-static \
119+ $(call CONFIGURE_AUTO) \
156120 --disable-docs \
157121 --with-default-fonts=/fonts \
158122 && \
@@ -169,15 +133,8 @@ build/lib/libass/configured: lib/libass
169133
170134$(DIST_DIR ) /lib/libass.a : $(DIST_DIR ) /lib/libfontconfig.a $(DIST_DIR ) /lib/libharfbuzz.a $(DIST_DIR ) /lib/libexpat.a $(DIST_DIR ) /lib/libfribidi.a $(DIST_DIR ) /lib/libfreetype.a $(DIST_DIR ) /lib/libbrotlidec.a build/lib/libass/configured
171135 cd build/lib/libass && \
172- emconfigure ../../../lib/libass/configure \
173- --prefix=" $( DIST_DIR) " \
174- --host=x86-none-linux \
175- --build=x86_64 \
176- --disable-shared \
177- --enable-static \
136+ $(call CONFIGURE_AUTO,../../../lib/libass) \
178137 --disable-asm \
179- \
180- --enable-harfbuzz \
181138 --enable-fontconfig \
182139 && \
183140 emmake make -j8 && \
0 commit comments