2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.openjpeg.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="JPEG 2000 image compression library"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-12-29 01:52:52 +01:00
|
|
|
TERMUX_PKG_VERSION=2.4.0
|
2020-01-13 02:00:07 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/uclouvain/openjpeg/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2020-12-29 01:52:52 +01:00
|
|
|
TERMUX_PKG_SHA256=8702ba68b442657f11aaeb2b338443ca8d5fb95b0d845757968a7be31ef7f16d
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="openjpeg-dev"
|
|
|
|
TERMUX_PKG_REPLACES="openjpeg-dev"
|
2019-03-04 04:38:00 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="-DBUILD_STATIC_LIBS=OFF"
|
2019-03-07 16:32:01 +01:00
|
|
|
# for fast building packages that depend on openjpeg with cmake
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2015-07-15 13:55:38 +02:00
|
|
|
# Force symlinks to be overwritten:
|
|
|
|
rm -Rf $TERMUX_PREFIX/lib/libopenjp2.so*
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|