mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
hplip: fix cross build.
This commit is contained in:
parent
c7273d85f4
commit
321dcac6d5
1 changed files with 8 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
# Template file for 'hplip'
|
# Template file for 'hplip'
|
||||||
pkgname=hplip
|
pkgname=hplip
|
||||||
version=3.15.2
|
version=3.15.2
|
||||||
revision=2
|
revision=3
|
||||||
#XXX: pyqt pkgs for python gui
|
#XXX: pyqt pkgs for python gui
|
||||||
hostmakedepends="pkg-config automake libtool"
|
hostmakedepends="pkg-config automake libtool python"
|
||||||
makedepends="libressl-devel>=2.1.4 python-devel libxml2-python cups-devel
|
makedepends="libressl-devel>=2.1.4 python-devel libxml2-python cups-devel
|
||||||
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
|
sane-devel ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel
|
||||||
dbus-devel polkit-devel"
|
dbus-devel polkit-devel"
|
||||||
|
@ -17,6 +17,8 @@ license="GPL-2"
|
||||||
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="$SOURCEFORGE_SITE/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=5f02eca743d85240db07ed2fc6551e1dce0dedc85ad4a0e90417e4d5b630f67c
|
checksum=5f02eca743d85240db07ed2fc6551e1dce0dedc85ad4a0e90417e4d5b630f67c
|
||||||
|
|
||||||
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# https://bugs.archlinux.org/task/30085 - hack found in Gentoo
|
# https://bugs.archlinux.org/task/30085 - hack found in Gentoo
|
||||||
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
|
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
|
||||||
|
@ -28,6 +30,9 @@ do_configure() {
|
||||||
mv ${i}.temp ${i}
|
mv ${i}.temp ${i}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
libtoolize -f
|
||||||
|
autoreconf -fi || true
|
||||||
|
|
||||||
./configure ${configure_args} --disable-gui-build \
|
./configure ${configure_args} --disable-gui-build \
|
||||||
--disable-foomatic-rip-hplip-install \
|
--disable-foomatic-rip-hplip-install \
|
||||||
--enable-foomatic-ppd-install \
|
--enable-foomatic-ppd-install \
|
||||||
|
@ -37,8 +42,7 @@ do_configure() {
|
||||||
--enable-cups-drv-install \
|
--enable-cups-drv-install \
|
||||||
--enable-hpijs-install \
|
--enable-hpijs-install \
|
||||||
--enable-foomatic-drv-install \
|
--enable-foomatic-drv-install \
|
||||||
--enable-pp-build \
|
--enable-pp-build
|
||||||
--enable-udev-acl-rules
|
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
|
|
Loading…
Add table
Reference in a new issue