2021-08-21 12:12:10 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE="https://freeimage.sourceforge.io"
|
2020-08-03 23:57:54 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="The library project for developers who would like to support popular graphics image formats."
|
|
|
|
TERMUX_PKG_LICENSE="custom"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="license-fi.txt, license-gplv2.txt, license-gplv3.txt, license-bsd-2-clause.txt"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-08-03 23:57:54 +02:00
|
|
|
TERMUX_PKG_VERSION=3.18.0
|
2021-08-27 10:44:11 +02:00
|
|
|
TERMUX_PKG_REVISION=4
|
2021-08-21 12:12:10 +02:00
|
|
|
TERMUX_PKG_SRCURL="https://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${TERMUX_PKG_VERSION}/FreeImage${TERMUX_PKG_VERSION//./}.zip"
|
2020-08-03 23:57:54 +02:00
|
|
|
TERMUX_PKG_SHA256=f41379682f9ada94ea7b34fe86bf9ee00935a3147be41b6569c9605a53e438fd
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2021-08-21 12:12:10 +02:00
|
|
|
cp -f "${TERMUX_PKG_BUILDER_DIR}/license-bsd-2-clause.txt" "${TERMUX_PKG_SRCDIR}"
|
|
|
|
|
2021-08-26 19:27:20 +02:00
|
|
|
if [ "${TERMUX_ARCH}" = "aarch64" ] || [ "${TERMUX_ARCH}" = "arm" ]; then
|
|
|
|
CFLAGS+=" -DPNG_ARM_NEON_OPT=0"
|
|
|
|
fi
|
|
|
|
|
2020-08-03 23:57:54 +02:00
|
|
|
}
|