2008-01-02 17:04:33 +11:00
|
|
|
# Description: Console mouse server.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.nico.schottelius.org/software/gpm/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2008-01-02 17:04:33 +11:00
|
|
|
|
|
|
|
name=gpm
|
2019-12-09 23:39:09 +11:00
|
|
|
version=1.20.7
|
2008-01-02 17:04:33 +11:00
|
|
|
release=1
|
2018-05-07 22:03:47 +10:00
|
|
|
source=(https://nico.schottelius.org/software/gpm/archives/gpm-$version.tar.bz2
|
2019-12-09 23:39:09 +11:00
|
|
|
gpm-1.20.7-glibc_2.26-1.patch
|
2008-01-02 17:04:33 +11:00
|
|
|
gpm.rc)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd gpm-$version
|
|
|
|
|
2019-12-09 23:39:09 +11:00
|
|
|
sed -e 's:<gpm.h>:"headers/gpm.h":' \
|
|
|
|
-i src/prog/{display-buttons,display-coords,get-versions}.c
|
|
|
|
|
|
|
|
patch -p 1 -i $SRC/gpm-1.20.7-glibc_2.26-1.patch
|
|
|
|
|
|
|
|
./autogen.sh
|
2008-01-02 17:04:33 +11:00
|
|
|
|
2021-02-20 16:06:06 +00:00
|
|
|
CFLAGS+=' -fcommon' \
|
2008-05-08 20:16:08 +10:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2019-12-09 23:39:09 +11:00
|
|
|
--sysconfdir=/etc
|
|
|
|
|
|
|
|
touch doc/gpm.info
|
2008-01-02 17:04:33 +11:00
|
|
|
|
2008-06-17 10:32:52 +10:00
|
|
|
make
|
2008-01-02 17:04:33 +11:00
|
|
|
make ROOT=$PKG install
|
|
|
|
|
2008-06-17 10:32:52 +10:00
|
|
|
ln -s libgpm.so.2.1.0 $PKG/usr/lib/libgpm.so
|
2019-12-09 23:39:09 +11:00
|
|
|
install -m 0644 conf/gpm-root.conf $PKG//etc
|
2008-05-30 23:13:10 +10:00
|
|
|
install -m 0755 -D $SRC/gpm.rc $PKG/etc/rc.d/gpm
|
|
|
|
|
2008-05-08 20:16:08 +10:00
|
|
|
rm -r $PKG/usr/share/info
|
2008-01-02 17:04:33 +11:00
|
|
|
}
|