Lines Matching +full:pkg +full:- +full:config

1 #!/bin/bash -eu
8 # http://www.apache.org/licenses/LICENSE-2.0
18 mkdir -p $PREFIX
20 export PKG_CONFIG="`which pkg-config` --static"
26 rm -rf $WORK/*
27 rm -rf $BUILD
28 mkdir -p $BUILD
31 CFLAGS=-fPIC ./configure --static --prefix=$PREFIX
32 make install -j$(nproc)
36 ./configure --prefix="$PREFIX" --disable-shared PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
37 make -j$(nproc)
40 pushd $SRC/Little-CMS
41 ./configure --prefix="$PREFIX" --disable-shared PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
42 make -j$(nproc)
45 mkdir -p $SRC/openjpeg/build
47 cmake .. -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX
48 make -j$(nproc) install
54 --prefix=$PREFIX \
55 --libdir=lib \
56 --default-library=static \
58 ninja -C _builddir
59 ninja -C _builddir install
62 pushd $SRC/glib-2.64.2
64 --prefix=$PREFIX \
65 --libdir=lib \
66 --default-library=static \
67 -Db_lundef=false \
68 -Doss_fuzz=enabled \
69 -Dlibmount=disabled \
70 -Dinternal_pcre=true \
72 ninja -C _builddir
73 ninja -C _builddir install
77 autoreconf -fi
78 …CPPFLAGS=-I$PREFIX/include LDFLAGS=-L$PREFIX/lib ./configure --prefix="$PREFIX" --disable-shared -…
79 make -j$(nproc)
84 --prefix=$PREFIX \
85 --libdir=lib \
86 --default-library=static \
88 ninja -C _builddir
89 ninja -C _builddir install
92 pushd $SRC/pango-1.48.0
94 -Ddefault_library=static \
95 --prefix=$PREFIX \
96 --libdir=lib \
98 sed -i -e 's/ -Werror=implicit-fallthrough//g' _builddir/build.ninja
99 ninja -C _builddir
100 ninja -C _builddir install
106 sed -i -e "s/QMAKE_CXXFLAGS += -stdlib=libc++/QMAKE_CXXFLAGS += -stdlib=libc++ $CXXFLAGS\nQM…
107 sed -i -e "s/QMAKE_LFLAGS += -stdlib=libc++/QMAKE_LFLAGS += -stdlib=libc++ -lpthread $CXX…
109 sed -i -e "s/TARGET = qtharfbuzz/TARGET = qtharfbuzz\nQMAKE_CXXFLAGS += -fno-sanitize=vptr/g" src/3…
111 sed -i -e "s/MAKE\")/MAKE\" -j$(nproc))/g" configure
112--glib=no --libpng=qt -opensource -confirm-license -static -no-opengl -no-icu -no-pkg-config -plat…
113 make -j$(nproc)
117 # Poppler complains when PKG_CONFIG is set to `which pkg-config --static` so
119 export PKG_CONFIG="`which pkg-config`"
129 mkdir -p $SRC/poppler/build
132 -DCMAKE_BUILD_TYPE=debug \
133 -DBUILD_SHARED_LIBS=OFF \
134 -DENABLE_FUZZER=OFF \
135 -DFONT_CONFIGURATION=$POPPLER_FONT_CONFIGURATION \
136 -DENABLE_DCTDECODER=none \
137 -DENABLE_GOBJECT_INTROSPECTION=OFF \
138 -DENABLE_LIBPNG=OFF \
139 -DENABLE_ZLIB=OFF \
140 -DENABLE_LIBTIFF=OFF \
141 -DENABLE_LIBJPEG=OFF \
142 -DENABLE_GLIB=$POPPLER_ENABLE_GLIB \
143 -DENABLE_LIBCURL=OFF \
144 -DENABLE_QT5=ON \
145 -DENABLE_UTILS=OFF \
146 -DWITH_Cairo=$POPPLER_ENABLE_GLIB \
147 -DWITH_NSS3=OFF \
148 -DCMAKE_INSTALL_PREFIX=$PREFIX
150 export PKG_CONFIG="`which pkg-config` --static"
151 make -j$(nproc) poppler poppler-cpp poppler-qt5
153 make -j$(nproc) poppler-glib
156 PREDEPS_LDFLAGS="-Wl,-Bdynamic -ldl -lm -lc -lz -pthread -lrt -lpthread"
161 BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $DEPS`"
162 BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $DEPS`"
164 fuzzers=$(find $SRC/poppler/cpp/tests/fuzzing/ -name "*_fuzzer.cc")
169 $CXX $CXXFLAGS -std=c++11 -I$SRC/poppler/cpp -I$SRC/poppler/build/cpp \
171 $f -o $OUT/$fuzzer_name \
173 $SRC/poppler/build/cpp/libpoppler-cpp.a \
178 -Wl,-Bdynamic
182 …DEPS="gmodule-2.0 glib-2.0 gio-2.0 gobject-2.0 freetype2 lcms2 libopenjp2 cairo cairo-gobject pang…
183 BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $DEPS`"
184 BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $DEPS`"
186 fuzzers=$(find $SRC/poppler/glib/tests/fuzzing/ -name "*_fuzzer.cc")
190 $CXX $CXXFLAGS -std=c++11 -I$SRC/poppler/glib -I$SRC/poppler/build/glib \
192 $f -o $OUT/$fuzzer_name \
194 $SRC/poppler/build/glib/libpoppler-glib.a \
195 $SRC/poppler/build/cpp/libpoppler-cpp.a \
199 -Wl,-Bdynamic
203 PREDEPS_LDFLAGS="-Wl,-Bdynamic -ldl -lm -lc -lz -pthread -lrt -lpthread"
208 BUILD_CFLAGS="$CFLAGS `pkg-config --static --cflags $DEPS`"
209 BUILD_LDFLAGS="-Wl,-static `pkg-config --static --libs $DEPS`"
211 fuzzers=$(find $SRC/poppler/qt5/tests/fuzzing/ -name "*_fuzzer.cc")
215 $CXX $CXXFLAGS -std=c++11 -fPIC \
216 -I$SRC/poppler/qt5/src -I$SRC/poppler/build/qt5/src \
218 $f -o $OUT/$fuzzer_name \
220 $SRC/poppler/build/qt5/src/libpoppler-qt5.a \
221 $SRC/poppler/build/cpp/libpoppler-cpp.a \
225 -Wl,-Bdynamic
230 if [ ! -f "${OUT}/poppler_seed_corpus.zip" ]; then
235 if [ ! -f "${OUT}/poppler.dict" ]; then
240 fuzzers=$(find $OUT -name "*_fuzzer")
243 ln -sf $OUT/poppler_seed_corpus.zip $OUT/${fuzzer_name}_seed_corpus.zip
244 ln -sf $OUT/poppler.dict $OUT/${fuzzer_name}.dict