|
Lucio Andrés Illanes Albornoz |
417386 |
#
|
|
Lucio Andrés Illanes Albornoz |
e1d469 |
# set +o errexit -o noglob -o nounset is assumed.
|
|
Lucio Andrés Illanes Albornoz |
417386 |
#
|
|
Lucio Andrés Illanes Albornoz |
417386 |
|
|
Lucio Andrés Illanes Albornoz |
417386 |
pkg_openjpeg_configure() {
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
if ! rtl_fileop rm config.cache \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|| ! env CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}" PREFIX="" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
cmake -DCMAKE_AR="${PREFIX}/bin/${PKG_AR}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="ONLY" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="ONLY" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="NEVER" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_INSTALL_PREFIX="" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLCMS2_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DLCMS2_LIBRARY="${PKG_PREFIX}/lib/liblcms2.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DPNG_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libpng.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DPNG_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libpng.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DPNG_PNG_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DTIFF_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DTIFF_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libtiff.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DTIFF_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libtiff.lib.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
-DZLIB_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libz.a" \
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
"../openjpeg-${PKG_VERSION}"; then
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
return 1;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
fi;
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
};
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
|
|
Lucio Andrés Illanes Albornoz |
bf9edf |
# vim:filetype=sh textwidth=0
|