distribution/packages/graphics/libjpeg-turbo/package.mk

39 lines
1.2 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
2023-05-09 19:21:47 +00:00
# Copyright (C) 2023-present Fewtarius
2022-02-05 14:23:32 +00:00
PKG_NAME="libjpeg-turbo"
PKG_VERSION="3.0.0"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPL"
PKG_SITE="https://libjpeg-turbo.org/"
2023-02-24 13:53:43 +00:00
PKG_URL="https://github.com/libjpeg-turbo/libjpeg-turbo/archive/${PKG_VERSION}.tar.gz"
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_HOST="toolchain"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="A high-speed version of libjpeg for x86 and x86-64 processors which uses SIMD."
PKG_BUILD_FLAGS="+pic +pic:host"
PKG_CMAKE_OPTS_HOST="-DENABLE_STATIC=ON \
-DENABLE_SHARED=OFF \
-DWITH_JPEG8=ON \
-DWITH_SIMD=OFF"
PKG_CMAKE_OPTS_TARGET="-DENABLE_STATIC=ON \
2022-06-18 15:15:15 +00:00
-DENABLE_SHARED=ON \
2022-02-05 14:23:32 +00:00
-DWITH_JPEG8=ON"
if target_has_feature "(neon|sse)"; then
PKG_CMAKE_OPTS_TARGET+=" -DWITH_SIMD=ON"
else
PKG_CMAKE_OPTS_TARGET+=" -DWITH_SIMD=OFF"
fi
2023-03-04 16:20:58 +00:00
if [[ ${TARGET_ARCH} =~ i*86|x86_64 ]]; then
2022-02-05 14:23:32 +00:00
PKG_DEPENDS_HOST+=" nasm:host"
2023-03-04 23:43:49 +00:00
PKG_DEPENDS_TARGET+=" nasm:host"
2022-02-05 14:23:32 +00:00
fi
post_makeinstall_target() {
2023-02-24 13:53:43 +00:00
rm -rf ${INSTALL}/usr/bin
2022-02-05 14:23:32 +00:00
}