CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
dropbear: moved from core collection
[attic/ports/opt-cross.git] / giblib / Pkgfile
CommitLineData
95792119
JB
1# Description: Library for doubly linked lists and a wrapper for imlib2.
2# URL: http://freshmeat.net/projects/giblib/
3# Packager: Mark Rosenstand, mark at borkware dot net
4# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6# Depends on: imlib2
7
8name=giblib
9version=1.2.4
10release=1
11source=(http://linuxbrit.co.uk/downloads/$name-$version.tar.gz)
12
13build() {
14 cd giblib-$version
15
16 export CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
17
18 sed -i configure \
19 -e "s|^IMLIB_CFLAGS=.*|IMLIB_CFLAGS=\"-I$CLFS/usr/include -I$CLFS/usr/include/freetype2\"|" \
20 -e "s|^IMLIB_LIBS=.*|IMLIB_LIBS=\"-L$CLFS/usr/lib -lImlib2 -lfreetype -lz -lX11 -lXext -ldl -lm\"|"
21
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
25 --with-imlib2-prefix=$CLFS/usr
26
27 make
28 make DESTDIR=$PKG install
29 rm -r $PKG/usr/doc
30}