CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
p5-sdl1-perl: Changed port name to p5-sdl.
[attic/ports/opt-cross.git] / slim / Pkgfile
1 # Description: Graphical login utility
2 # URL: http://slim.berlios.de
3 # Packager: Simone Rota sip at crux dot nu
4 # Maintainer: Thomas Penteker tek at serverop dot de
5 # Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
6 # Depends on: xorg-xauth libjpeg libpng
7
8 name=slim
9 version=1.3.1
10 release=2
11 source=(http://download.berlios.de/$name/$name-$version.tar.gz \
12 http://jw.tks6.net/files/slim-crux-smooth.tar.gz $name.rc
13 $name.diff)
14
15 build () {
16 cd $name-$version
17
18 # fix the build with g++ 4.4
19 patch -p1 -i $SRC/$name.diff
20
21 INC="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/libpng12"
22 INC="$INC -I$CLFS/usr/include/X11/extensions -I$CLFS/usr/include/X11/Xft"
23 INC="$INC -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/freetype2/config"
24
25 make CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS -Wall -I. $INC"
26 make DESTDIR=$PKG install
27
28 mkdir $PKG/etc/rc.d
29 install -m 755 ../$name.rc $PKG/etc/rc.d/$name
30 cd ../
31
32 rm -f slim-crux-smooth/README
33 cp -r slim-crux-smooth $PKG/usr/share/slim/themes/crux-smooth
34 chmod 0644 $PKG/usr/share/slim/themes/crux-smooth/*
35 }