summaryrefslogtreecommitdiffhomepage
path: root/groups.d/231.native_packages_etc.d/openjpeg.package
blob: 5096f19c8ffc52b343710813f4784eb138ac7bf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
: ${PKG_OPENJPEG_DEPENDS:="lcms libpng libz tiff"};
: ${PKG_OPENJPEG_SHA256SUM:=90e3896fed910c376aaf79cdd98bdfdaf98c6472efd8e1debf0a854938cbda6a};
: ${PKG_OPENJPEG_VERSION:=2.5.2};
: ${PKG_OPENJPEG_URL:=https://github.com/uclouvain/openjpeg/archive/v${PKG_OPENJPEG_VERSION}.tar.gz};
: ${PKG_OPENJPEG_CMAKE_ARGS_EXTRA:="
	-DLCMS2_INCLUDE_DIR=${PREFIX_NATIVE}/include
	-DLCMS2_LIBRARY=${PREFIX_NATIVE}/lib/liblcms2.lib.a
	-DPNG_LIBRARY_DEBUG=${PREFIX_NATIVE}/lib/libpng.lib.a
	-DPNG_LIBRARY_RELEASE=${PREFIX_NATIVE}/lib/libpng.lib.a
	-DPNG_PNG_INCLUDE_DIR=${PREFIX_NATIVE}/include
	-DTIFF_INCLUDE_DIR=${PREFIX_NATIVE}/include
	-DTIFF_LIBRARY_DEBUG=${PREFIX_NATIVE}/lib/libtiff.lib.a
	-DTIFF_LIBRARY_RELEASE=${PREFIX_NATIVE}/lib/libtiff.lib.a
	-DZLIB_INCLUDE_DIR=${PREFIX_NATIVE}/include
	-DZLIB_LIBRARY_DEBUG=${PREFIX_NATIVE}/lib/libz.a
	-DZLIB_LIBRARY_RELEASE=${PREFIX_NATIVE}/lib/libz.a"};
: ${PKG_OPENJPEG_SUBDIR:=openjpeg-${PKG_OPENJPEG_VERSION}};

ex_pkg_register "openjpeg" "${RTL_FILEOP_SOURCE_FNAME}" "native_packages";

# vim:filetype=sh textwidth=0