|
|
5a7952 |
#
|
|
|
5a7952 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
|
5a7952 |
#
|
|
|
5a7952 |
|
|
|
5a7952 |
pkg_xpdf_configure() {
|
|
|
5a7952 |
if ! rtl_fileop rm config.cache \
|
|
|
5a7952 |
|| ! env CXX_FLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
|
|
|
5a7952 |
cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
|
|
|
5a7952 |
-DCMAKE_BUILD_TYPE="Debug" \
|
|
|
5a7952 |
-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
|
|
|
5a7952 |
-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_CXX}" \
|
|
|
5a7952 |
-DCMAKE_SYSROOT=${PREFIX_NATIVE} \
|
|
|
5a7952 |
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
|
|
|
5a7952 |
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
|
|
|
5a7952 |
-DCMAKE_INSTALL_PREFIX="" \
|
|
|
5a7952 |
-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
|
|
|
5a7952 |
-DFREETYPE_LIBRARY=${PREFIX_NATIVE}/lib/libfreetype.lib.a \
|
|
|
5a7952 |
-DFREETYPE_INCLUDE_DIR_ft2build={PREFIX_NATIVE}/include/ft2build \
|
|
|
5a7952 |
-DFONTCONFIG_LIBRARY=${PREFIX_NATIVE}/lib/libfontconfig.lib.a \
|
|
|
5a7952 |
"../xpdf-${PKG_VERSION}"; then
|
|
|
5a7952 |
return 1;
|
|
|
5a7952 |
fi;
|
|
|
5a7952 |
};
|
|
|
5a7952 |
|
|
|
5a7952 |
# vim:filetype=sh textwidth=0
|