libcairo-x: link statically with libandroid-shmem

This commit is contained in:
Leonid Pliushch 2019-08-13 16:32:01 +03:00 committed by Yaksh Bariya
parent 4beb4d8841
commit eef9dc4a81
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 7 additions and 3 deletions

View File

@ -3,11 +3,12 @@ TERMUX_PKG_DESCRIPTION="Cairo 2D vector graphics library (with X)"
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=1.16.0
TERMUX_PKG_REVISION=6
TERMUX_PKG_REVISION=7
TERMUX_PKG_SHA256=5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331
TERMUX_PKG_SRCURL=https://cairographics.org/releases/cairo-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, libandroid-shmem, liblzo, libpixman, libpng, librsvg, libx11, libxcb, libxext, libxrender, poppler, zlib"
TERMUX_PKG_DEPENDS="fontconfig, freetype, glib, liblzo, libpixman, libpng, librsvg, libx11, libxcb, libxext, libxrender, poppler, zlib"
TERMUX_PKG_BUILD_DEPENDS="libandroid-shmem-static"
TERMUX_PKG_PROVIDES="libcairo, libcairo-gobject"
TERMUX_PKG_REPLACES="${TERMUX_PKG_PROVIDES}"
TERMUX_PKG_CONFLICTS="${TERMUX_PKG_PROVIDES}, libcairo-dev"
@ -19,7 +20,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--enable-pdf
--enable-svg
--enable-ps
LIBS=-landroid-shmem
"
TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc/html"
termux_step_pre_configure() {
export LIBS="-l:libandroid-shmem.a -llog"
}