Commit | Line | Data |
---|---|---|
d2fbbeb1 JB |
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 | |
6 | ||
7 | name=cairo | |
8 | version=1.8.8 | |
9 | release=1 | |
10 | source=(http://cairographics.org/releases/$name-$version.tar.gz) | |
11 | ||
12 | build() { | |
13 | cd $name-$version | |
14 | ||
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" | |
27 | ||
28 | sed 's|use_png=no|use_png=yes|' -i configure | |
29 | ||
30 | ./configure --build=$CHOST \ | |
31 | --host=$CTARGET \ | |
32 | --prefix=/usr \ | |
33 | --enable-xlib=yes \ | |
34 | --enable-xlib-xrender=yes \ | |
35 | --enable-png=yes \ | |
36 | --enable-ft=yes | |
37 | make | |
38 | make DESTDIR=$PKG install | |
39 | rm -rf $PKG/usr/share | |
40 | } |