File tree 1 file changed +8
-12
lines changed
src/SPC/builder/unix/library
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,17 @@ trait freetype
18
18
*/
19
19
protected function build (): void
20
20
{
21
- $ suggested = $ this ->builder ->getLib ('libpng ' ) ? '--with-png ' : '--without-png ' ;
22
- $ suggested .= ' ' ;
23
- $ suggested .= $ this ->builder ->getLib ('bzip2 ' ) ? ('--with-bzip2= ' . BUILD_ROOT_PATH ) : '--without-bzip2 ' ;
24
- $ suggested .= ' ' ;
25
- $ suggested .= $ this ->builder ->getLib ('brotli ' ) ? ('--with-brotli= ' . BUILD_ROOT_PATH ) : '--without-brotli ' ;
26
- $ suggested .= ' ' ;
21
+ $ extra_libs = $ this ->builder ->getLib ('libpng ' ) ? '--with-png ' : '--without-png ' ;
22
+ $ extra_libs .= ' ' ;
23
+ $ extra_libs .= $ this ->builder ->getLib ('bzip2 ' ) ? ('--with-bzip2= ' . BUILD_ROOT_PATH ) : '--without-bzip2 ' ;
24
+ $ extra_libs .= ' ' ;
25
+ $ extra_libs .= $ this ->builder ->getLib ('brotli ' ) ? ('--with-brotli= ' . BUILD_ROOT_PATH ) : '--without-brotli ' ;
26
+ $ extra_libs .= ' ' ;
27
27
28
28
shell ()->cd ($ this ->source_dir )
29
29
->setEnv (['CFLAGS ' => $ this ->getLibExtraCFlags (), 'LDFLAGS ' => $ this ->getLibExtraLdFlags (), 'LIBS ' => $ this ->getLibExtraLibs ()])
30
- ->exec ('sh autogen.sh ' )
31
- ->execWithEnv (
32
- './configure ' .
33
- '--enable-static --disable-shared --without-harfbuzz --prefix= ' .
34
- $ suggested
35
- )
30
+ ->execWithEnv ('./autogen.sh ' )
31
+ ->execWithEnv ('./configure --without-harfbuzz --prefix= ' . $ extra_libs )
36
32
->execWithEnv ('make clean ' )
37
33
->execWithEnv ("make -j {$ this ->builder ->concurrency }" )
38
34
->execWithEnv ('make install DESTDIR= ' . BUILD_ROOT_PATH );
You can’t perform that action at this time.
0 commit comments