CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
npkg: fixed source line
[attic/ports/opt-cross.git] / xterm / Pkgfile
1 # Description: The standard termulator.
2 # URL: http://dickey.his.com/xterm/xterm.html
3 # Packager: Han Boetes, han at mijncomputer dot nl
4 # Maintainer: Jose V Beneyto, sepen at crux dot nu
5 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6 # Depends on: xorg-libxaw xorg-font-alias xorg-font-misc-misc
7
8 name=xterm
9 version=255
10 release=1
11 source=(ftp://invisible-island.net/$name/$name-$version.tgz \
12 configure.diff)
13
14 build() {
15 cd $name-$version
16 [ -z "$BASH_VERSION" ] && patch -p0 -i $SRC/configure.diff
17
18 export CFLAGS="$CFLAGS -I$CLFS/usr/include"
19 export LIBS="-lXft"
20
21 ./configure --build=$CHOST \
22 --host=$CTARGET \
23 --prefix=/usr \
24 --disable-nls \
25 --enable-256-color \
26 --enable-wide-chars
27
28 sed -i Makefile -e "s|-I/usr/include|-I$CLFS/usr/include|g"
29
30 make
31 make install DESTDIR=$PKG
32 chmod 0755 $PKG/usr/bin/$name
33 }