Lucio Andrés Illanes Albornoz 417386
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob 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 417386
        rm -f config.cache;
Lucio Andrés Illanes Albornoz 417386
        env     CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"            \
Lucio Andrés Illanes Albornoz 417386
                PREFIX=""                                                       \
Lucio Andrés Illanes Albornoz 417386
	cmake   -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}"                          \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER                       \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY                        \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY                        \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"                            \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"                    \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"          \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_INSTALL_PREFIX=                                         \
Lucio Andrés Illanes Albornoz 417386
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"                    \
Lucio Andrés Illanes Albornoz 417386
		-DLCMS2_INCLUDE_DIR="${PKG_PREFIX}/include"                     \
Lucio Andrés Illanes Albornoz 417386
		-DLCMS2_LIBRARY="${PKG_PREFIX}/lib/liblcms2.lib.a"              \
Lucio Andrés Illanes Albornoz 417386
		-DPNG_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libpng.lib.a"            \
Lucio Andrés Illanes Albornoz 417386
		-DPNG_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libpng.lib.a"          \
Lucio Andrés Illanes Albornoz 417386
		-DPNG_PNG_INCLUDE_DIR="${PKG_PREFIX}/include"                   \
Lucio Andrés Illanes Albornoz 417386
		-DTIFF_INCLUDE_DIR="${PKG_PREFIX}/include"                      \
Lucio Andrés Illanes Albornoz 417386
		-DTIFF_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libtiff.lib.a"          \
Lucio Andrés Illanes Albornoz 417386
		-DTIFF_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libtiff.lib.a"        \
Lucio Andrés Illanes Albornoz 417386
		-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"                      \
Lucio Andrés Illanes Albornoz a23250
		-DZLIB_LIBRARY_DEBUG="${PKG_PREFIX}/lib/libz.a"             	\
Lucio Andrés Illanes Albornoz a23250
		-DZLIB_LIBRARY_RELEASE="${PKG_PREFIX}/lib/libz.a"           	\
Lucio Andrés Illanes Albornoz 417386
                "../openjpeg-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz 417386
}