Package Details: mingw-w64-cairo 1.18.2-1

Git Clone URL: https://aur.archlinux.org/mingw-w64-cairo.git (read-only, click to copy)
Package Base: mingw-w64-cairo
Description: 2D graphics library with support for multiple output devices (mingw-w64)
Upstream URL: https://cairographics.org
Keywords: cairo mingw mingw-w64
Licenses: LGPL-2.1-only OR MPL-1.1
Conflicts: mingw-w64-cairo-bootstrap
Replaces: mingw-w64-cairo-bootstrap
Submitter: Schala
Maintainer: pingplug
Last Packager: pingplug
Votes: 17
Popularity: 0.000000
First Submitted: 2012-09-05 18:20 (UTC)
Last Updated: 2024-09-03 13:17 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4

entidi commented on 2012-10-11 20:51 (UTC)

This package wont build. It has some serious issue: 1. no PKG_CONFIG_LIBDIR/PKG_CONFIG_PATH set; 2. xcb must be disabled because there is no X server on windows; 3. cairo 1.12 is buggy on win64 platforms (see https://bugs.freedesktop.org/show_bug.cgi?id=48750 and https://bugs.freedesktop.org/show_bug.cgi?id=53121). I downgraded the package to 1.10.2 and followed the Fedora directives at http://pkgs.fedoraproject.org/cgit/mingw-cairo.git/tree/. Here is a working PKGBUILD: -- pkgname=mingw-w64-cairo pkgver=1.10.2 pkgrel=1 pkgdesc="Cairo vector graphics library (mingw-w64)" arch=(any) url="http://cairographics.org/" license=("LGPL" "MPL") makedepends=(mingw-w64-gcc) depends=(mingw-w64-crt mingw-w64-glib2 mingw-w64-libpng mingw-w64-fontconfig mingw-w64-pixman) options=(!libtool !strip !buildflags) source=("http://cairographics.org/releases/cairo-$pkgver.tar.gz" "http://pkgs.fedoraproject.org/cgit/mingw-cairo.git/plain/mingw32-cairo-fix-ffs-declaration.patch?h=f18" "http://pkgs.fedoraproject.org/cgit/mingw-cairo.git/plain/mingw32-cairo-A1_surfaces.patch?h=f18" "http://pkgs.fedoraproject.org/cgit/mingw-cairo.git/plain/mingw32-cairo-reset_clip.patch?h=f18") md5sums=('f101a9e88b783337b20b2e26dfd26d5f' 'ab9be7532af22d092b79a9659e650727' '197e184a45b039338af30b50c873e399' '7613b505f1350a8780d516a1b1b02bef') _architectures="i686-w64-mingw32 x86_64-w64-mingw32" build() { local tardir="$srcdir/${pkgname#mingw-w64-}-$pkgver" # Apply patches from fedora repository cd "$tardir" patch -p0 < '../mingw32-cairo-fix-ffs-declaration.patch?h=f18' patch -p1 < '../mingw32-cairo-A1_surfaces.patch?h=f18' patch -p1 < '../mingw32-cairo-reset_clip.patch?h=f18' # The libtool bundled with this package is too old for win64 support NOCONFIGURE=1 ./autogen.sh for _arch in ${_architectures}; do mkdir -p "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" export PKG_CONFIG_LIBDIR="/usr/${_arch}/lib/pkgconfig" export CFLAGS="-O2 -pipe -mms-bitfields" unset LDFLAGS PKG_CONFIG_PATH "$tardir/configure" \ --prefix=/usr/${_arch} \ --build=$CHOST \ --host=${_arch} \ --disable-pthread \ --disable-xlib \ --disable-xcb \ --enable-win32 \ --enable-fc \ --enable-ft \ --enable-png \ --enable-static \ --enable-gobject \ --enable-tee make done } package() { for _arch in ${_architectures}; do cd "${srcdir}/${pkgname}-${pkgver}-build-${_arch}" make DESTDIR="$pkgdir" install find "$pkgdir/usr/${_arch}" -name '*.exe' -o -name '*.bat' -o -name '*.def' -o -name '*.exp' | xargs -rtl1 rm find "$pkgdir/usr/${_arch}" -name '*.dll' | xargs -rtl1 ${_arch}-strip -g -x find "$pkgdir/usr/${_arch}" -name '*.a' | xargs -rtl1 ${_arch}-strip -g rm -r "$pkgdir/usr/${_arch}/share" done }