1 # Description: A 2D graphics library with support for multiple output devices
2 # URL: http://www.cairographics.org/
3 # Maintainer: Tilman Sauerbeck tilman at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5 # Depends on: fontconfig libpng xorg-libxrender xorg-libpixman
10 source=(http://cairographics.org/releases/$name-$version.tar.gz)
15 export DEFAULT_LIBS="-L$CLFS/usr/lib"
16 export DEFAULT_CFLAGS="-I$CLFS/usr/include"
17 export png_LIBS="$DEFAULT_LIBS -lpng12"
18 export png_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/libpng12"
19 export xlib_LIBS="$DEFAULT_LIBS -lX11"
20 export xlib_CFLAGS="$DEFAULT_CFLAGS"
21 export xlib_xrender_LIBS="$DEFAULT_LIBS -lXrender"
22 export xlib_xrender_CFLAGS="$DEFAULT_CFLAGS"
23 export pixman_LIBS="$DEFAULT_LIBS -lpixman-1"
24 export pixman_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/pixman-1"
25 export FONTCONFIG_LIBS="$DEFAULT_LIBS -lfontconfig"
26 export FONTCONFIG_CFLAGS="$DEFAULT_CFLAGS"
28 sed 's|use_png=no|use_png=yes|' -i configure
30 ./configure --build=$CHOST \
34 --enable-xlib-xrender=yes \
38 make DESTDIR=$PKG install