distribution/packages/x11/lib/xtrans/package.mk
2022-07-01 21:39:43 -04:00

24 lines
906 B
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="xtrans"
PKG_VERSION="1.4.0"
PKG_SHA256="377c4491593c417946efcd2c7600d1e62639f7a8bbca391887e2c4679807d773"
PKG_LICENSE="OSS"
PKG_SITE="http://www.X.org"
PKG_URL="http://xorg.freedesktop.org/archive/individual/lib/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_TARGET="toolchain util-macros"
PKG_LONGDESC="Abstract network code for X."
PKG_CONFIGURE_OPTS_TARGET="--without-xmlto"
pre_configure_target() {
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.am
sed -i 's|^pkgconfigdir = .*|pkgconfigdir = /usr/lib/pkgconfig|' ${PKG_BUILD}/Makefile.in
}
post_makeinstall_target() {
mkdir -p ${SYSROOT_PREFIX}/usr/lib/pkgconfig
cp xtrans.pc ${SYSROOT_PREFIX}/usr/lib/pkgconfig
}