CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
d1747e05872237289e62326e3ae4e9a7b11dcbf5
[attic/ports/e17-cross.git] / ecore / Pkgfile
1 # Description: Libraries which provide event loop functionality for E17.
2 # URL: http://www.enlightenment.org/
3 # Maintainer: Victor Martinez, pitillo at ono dot com
4 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5 # Depends on: evas
6
7 name=ecore
8 version=20091130
9 release=1
10 source=(http://lokalix.dyndns.org/crux/distfiles/e17/$name-$version.tar.bz2 \
11 ecore-autoconf265.patch)
12
13 build()
14 {
15 cd $SRC/e17/$name
16 export EINA_LIBS="-L$CLFS/usr/lib -leet -leina"
17 export EINA_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/eina-0 -I$CLFS/usr/include/eina-0/eina"
18 export GLIB_LIBS="-L$CLFS/usr/lib -lglib-2.0"
19 export GLIB_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include"
20 export SDL_LIBS="-L$CLFS/usr/lib -lSDL -lpthread"
21 export SDL_CFLAGS="-L$CLFS/usr/lib -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
22 export EVAS_LIBS="-L$CLFS/usr/lib -levas"
23 export EVAS_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/eina-0 -I$CLFS/usr/include/eina-0/eina"
24 export EET_LIBS="-L$CLFS/usr/lib -leet"
25 export EET_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/eina-0 -I$CLFS/usr/include/eina-0/eina"
26 export CFLAGS="$CFLAGS -I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
27 export LIBS="$LIBS -L$CLFS/usr/lib -lXrender -lX11 -lXext"
28
29 # This will only be used when XCB backend selected (--enable-ecore-x-xcb) Problems with icccm atm
30 export XCB_LIBS="-L$CLFS/usr/lib -lxcb -lpixman-1 -lxcb-image -lxcb-shm -lxcb-keysyms"
31 export XCB_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/pixman-1"
32 export XCB_RENDER_LIBS="-L$CLFS/usr/lib -lxcb-render"
33 export XCB_RENDER_CFLAGS="-I$CLFS/usr/include"
34 export XCB_COMPOSITE_LIBS="-L$CLFS/usr/lib -lxcb-composite"
35 export XCB_COMPOSITE_CFLAGS="-I$CLFS/usr/include"
36 export XCB_DAMAGE_LIBS="-L$CLFS/usr/lib -lxcb-damage"
37 export XCB_DAMAGE_CFLAGS="-I$CLFS/usr/include"
38 export XCB_DPMS_LIBS="-L$CLFS/usr/lib -lxcb-dpms"
39 export XCB_DPMS_CFLAGS="-I$CLFS/usr/include"
40 export XCB_RANDR_LIBS="-L$CLFS/usr/lib -lxcb-randr"
41 export XCB_RANDR_CFLAGS="-I$CLFS/usr/include"
42 export XCB_XFIXES_LIBS="-L$CLFS/usr/lib -lxcb-xfixes"
43 export XCB_XFIXES_CFLAGS="-I$CLFS/usr/include"
44 export XCB_SHAPE_LIBS="-L$CLFS/usr/lib -lxcb-shape"
45 export XCB_SHAPE_CFLAGS="-I$CLFS/usr/include"
46 export XCB_XINERAMA_LIBS="-L$CLFS/usr/lib -lxcb-xinerama"
47 export XCB_XINERAMA_CFLAGS="-I$CLFS/usr/include"
48
49 patch -p0 < $SRC/ecore-autoconf265.patch
50
51 ./autogen.sh --build=$CHOST \
52 --host=$CTARGET \
53 --disable-nls \
54 --prefix=/usr \
55 --enable-ecore-evas-software-sdl \
56 --enable-ecore-evas-xrender-xcb \
57 --enable-ecore-evas-software-x11 \
58 --enable-ecore-evas-xrender-x11
59 make
60 make install DESTDIR=$PKG
61 }