56 lines
1.9 KiB
Bash
56 lines
1.9 KiB
Bash
# Template file for 'brltty'
|
|
pkgname=brltty
|
|
version=5.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config python3-Cython python3 xproto"
|
|
makedepends="ncurses-devel alsa-lib-devel gpm-devel at-spi2-core-devel dbus-devel glib-devel xproto icu-devel python3-devel libbluetooth-devel"
|
|
depends="python3"
|
|
configure_args="--enable-gpm --with-screen-driver=lx,a2,sc --with-tables-directory=/usr/share/brltty PYTHON=/usr/bin/python3"
|
|
short_desc="Braille display driver for Linux/Unix"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2, LGPL-2.1"
|
|
homepage="http://mielke.cc/brltty/"
|
|
distfiles="http://mielke.cc/brltty/archive/brltty-${version}.tar.xz"
|
|
checksum=4ebf1df5922df0efccac4795f5bd1c514fc850348c34d9ec0868e2798b565a36
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*|x86_64*) configure_args="${configure_args} --with-ports-package=glibc";;
|
|
*) configure_args="${configure_args} --with-ports-package=none";;
|
|
esac
|
|
# glibc is a misnomer here, it's just ioperm inb outp and friends, works
|
|
# fine with musl.
|
|
|
|
pre_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # There is no ldconfig in musl libc
|
|
sed -e "s;/sbin/ldconfig -n;echo;" -i configure
|
|
esac
|
|
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython3.5m"
|
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python3.5m"
|
|
}
|
|
post_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*-musl) # Fix erroneously detected "#define HAVE_SYS_IO_H 1"
|
|
sed -i config.h -e"s;#define HAVE_SYS_IO_H 1;#undef HAVE_SYS_IO_H;"
|
|
esac
|
|
}
|
|
do_install() {
|
|
make INSTALL_ROOT=${DESTDIR} install
|
|
vsv $pkgname
|
|
vsconf Documents/brltty.conf
|
|
vdoc Documents/ChangeLog
|
|
vcopy Documents/Manual-BRLTTY usr/share/doc/${pkgname}
|
|
}
|
|
|
|
brltty-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/bin/brltty-config
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|