# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv) # Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) PKG_NAME="pixman" PKG_VERSION="0.40.0" PKG_SHA256="da8ed9fe2d1c5ef8ce5d1207992db959226bd4e37e3f88acf908fd9a71e2704e" PKG_LICENSE="OSS" PKG_SITE="http://www.x.org/" PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/${PKG_NAME}-${PKG_VERSION}.tar.xz" PKG_DEPENDS_HOST="toolchain:host" PKG_DEPENDS_TARGET="toolchain util-macros" PKG_LONGDESC="Pixman is a generic library for manipulating pixel regions, contains low-level pixel manipulation routines." PKG_TOOLCHAIN="configure" if [ "${TARGET_ARCH}" = arm ]; then if target_has_feature neon; then PIXMAN_NEON="--enable-arm-neon" else PIXMAN_NEON="--disable-arm-neon" fi PIXMAN_CONFIG="--disable-mmx --disable-sse2 --disable-vmx --enable-arm-simd ${PIXMAN_NEON} --disable-arm-iwmmxt" elif [ "${TARGET_ARCH}" = aarch64 ]; then PIXMAN_CONFIG="--disable-mmx --disable-sse2 --disable-vmx --disable-arm-simd --disable-arm-neon --disable-arm-iwmmxt" elif [ "${TARGET_ARCH}" = x86_64 ]; then PIXMAN_CONFIG="--enable-mmx --enable-sse2 --disable-ssse3 --disable-vmx --disable-arm-simd --disable-arm-neon" fi PKG_CONFIGURE_OPTS_TARGET="--disable-openmp \ --disable-loongson-mmi \ ${PIXMAN_CONFIG} \ --disable-mips-dspr2 \ --enable-gcc-inline-asm \ --disable-timers \ --disable-gtk \ --disable-libpng \ --with-gnu-ld" post_makeinstall_target() { cp ${SYSROOT_PREFIX}/usr/lib/pkgconfig/pixman-1.pc \ ${SYSROOT_PREFIX}/usr/lib/pkgconfig/pixman.pc cp -rf ${SYSROOT_PREFIX}/usr/include/pixman-1 \ ${SYSROOT_PREFIX}/usr/include/pixman }