29 lines
1.1 KiB
Makefile
29 lines
1.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="libxcb"
|
||
|
PKG_VERSION="1.14"
|
||
|
PKG_SHA256="a55ed6db98d43469801262d81dc2572ed124edc3db31059d4e9916eb9f844c34"
|
||
|
PKG_LICENSE="OSS"
|
||
|
PKG_SITE="http://xcb.freedesktop.org"
|
||
|
PKG_URL="http://xcb.freedesktop.org/dist/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||
|
PKG_DEPENDS_TARGET="toolchain util-macros Python3:host xcb-proto libpthread-stubs libXau"
|
||
|
PKG_LONGDESC="X C-language Bindings library."
|
||
|
PKG_BUILD_FLAGS="+pic"
|
||
|
|
||
|
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
|
||
|
--disable-shared \
|
||
|
--disable-screensaver \
|
||
|
--disable-xprint \
|
||
|
--disable-selinux \
|
||
|
--disable-xvmc"
|
||
|
|
||
|
pre_configure_target() {
|
||
|
PYTHON_LIBDIR=${SYSROOT_PREFIX}/usr/lib/${PKG_PYTHON_VERSION}
|
||
|
PYTHON_TOOLCHAIN_PATH=${PYTHON_LIBDIR}/site-packages
|
||
|
|
||
|
PKG_CONFIG+=" --define-variable=pythondir=${PYTHON_TOOLCHAIN_PATH}"
|
||
|
PKG_CONFIG+=" --define-variable=xcbincludedir=${SYSROOT_PREFIX}/usr/share/xcb"
|
||
|
}
|