CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
fltk2: Updated to version r7513.
[attic/ports/opt-cross.git] / xterm / Pkgfile
CommitLineData
6d085014
JB
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
38b50d66 5# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6d085014
JB
6# Depends on: xorg-libxaw xorg-font-alias xorg-font-misc-misc
7
8name=xterm
04a06c21 9version=255
6d085014
JB
10release=1
11source=(ftp://invisible-island.net/$name/$name-$version.tgz \
12 configure.diff)
13
14build() {
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}