forked from ports/contrib
33 lines
964 B
Plaintext
33 lines
964 B
Plaintext
# Packager: Eduardo Lopes <eduol@gmx.net>
|
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
|
# Description: Console mouse server
|
|
# URL: none
|
|
|
|
name=gpm
|
|
version=1.20.1
|
|
release=5
|
|
source="
|
|
ftp://arcana.linux.it/pub/gpm/$name-$version.tar.bz2
|
|
gpm-1.20.0-nodebug.patch
|
|
gpm-1.20.1-no-dumb-error-messages.patch
|
|
gpm-1.20.1-liblow-segv.patch
|
|
$name.initfile
|
|
"
|
|
|
|
build ()
|
|
{
|
|
cd $name-$version
|
|
# idiots
|
|
sed -i 's/^MAKEINFO.*/MAKEINFO = no/;/^EMACS.*/d' Makefile.include.in
|
|
# idiots, emacs gpm support is included in emacs. xterm-mouse-mode
|
|
sed -i 's/EMACS=.*/EMACS=:/;s/ELISP=.*/ELISP=/' configure
|
|
patch -p1 < $SRC/gpm-1.20.0-nodebug.patch
|
|
patch -p1 < $SRC/gpm-1.20.1-no-dumb-error-messages.patch
|
|
patch -p1 < $SRC/gpm-1.20.1-liblow-segv.patch
|
|
./configure --prefix=/usr
|
|
make LDFLAGS='-lm'
|
|
make install ROOT=$PKG
|
|
rm -rf $PKG/usr/{info,etc}
|
|
install -D $SRC/$name.initfile -m 755 $PKG/etc/rc.d/$name
|
|
}
|