0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-12-15 13:19:46 +00:00
2024-04-18 09:29:24 +02:00

54 lines
2.1 KiB
Makefile

# 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.43.4"
PKG_SHA256="48d8539f35488d694a2fef3ce17394d1153ed4e71c05d1e621904d574be5df19"
PKG_LICENSE="OSS"
PKG_SITE="https://www.x.org/"
PKG_URL="https://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."
if [ "${TARGET_ARCH}" = arm ]; then
if target_has_feature neon; then
PIXMAN_NEON="-Dneon=enabled"
else
PIXMAN_NEON="-Dneon=disabled"
fi
PIXMAN_CONFIG="-Dmmx=disabled -Dsse2=disabled -Dvmx=disabled -Darm-simd=enabled ${PIXMAN_NEON} -Diwmmxt=disabled"
elif [ "${TARGET_ARCH}" = aarch64 ]; then
PIXMAN_CONFIG="-Dmmx=disabled -Dsse2=disabled -Dvmx=disabled -Darm-simd=disabled -Dneon=disabled -Diwmmxt=disabled"
elif [ "${TARGET_ARCH}" = x86_64 -o "${TARGET_ARCH}" = i386 ]; then
PIXMAN_CONFIG="-Dmmx=enabled -Dsse2=enabled -Dssse3=disabled -Dvmx=disabled -Darm-simd=disabled -Dneon=disabled"
fi
PKG_MESON_OPTS_HOST="-Dgtk=disabled \
-Dtests=disabled \
-Ddemos=disabled"
PKG_MESON_OPTS_TARGET="-Dopenmp=disabled \
-Dloongson-mmi=disabled \
${PIXMAN_CONFIG} \
-Dmips-dspr2=disabled \
-Dgnu-inline-asm=enabled \
-Dtimers=false \
-Dgtk=disabled \
-Dlibpng=disabled \
-Dtests=disabled \
-Ddemos=disabled"
if [ "${ARCH}" = "i386" ]; then
TARGET_ARCH="x86"
TARGET_SUBARCH="x86"
fi
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
}