mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 08:52:56 +02:00
hplip: Allow building with gui support
Closes: #7867 [via git-merge-pr]
This commit is contained in:
parent
22c5b2956b
commit
7e3588ff0a
1 changed files with 6 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
||||||
# Template file for 'hplip'
|
# Template file for 'hplip'
|
||||||
pkgname=hplip
|
pkgname=hplip
|
||||||
version=3.17.9
|
version=3.17.9
|
||||||
revision=1
|
revision=2
|
||||||
#XXX: pyqt pkgs for python gui
|
#XXX: pyqt pkgs for python gui
|
||||||
hostmakedepends="pkg-config automake libtool python"
|
hostmakedepends="pkg-config automake libtool python"
|
||||||
makedepends="libressl-devel python-devel libxml2-python cups-devel sane-devel
|
makedepends="libressl-devel python-devel libxml2-python cups-devel sane-devel
|
||||||
ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel dbus-devel"
|
ghostscript-devel net-snmp-devel libusb-devel libjpeg-turbo-devel dbus-devel"
|
||||||
depends="python-gobject2 python-dbus foomatic-db foomatic-db-engine desktop-file-utils"
|
depends="python-gobject2 python-dbus $(vopt_if gui python-PyQt4) foomatic-db foomatic-db-engine desktop-file-utils"
|
||||||
conf_files="/etc/hp/hplip.conf"
|
conf_files="/etc/hp/hplip.conf"
|
||||||
make_dirs="/var/lib/hp 0755 root root"
|
make_dirs="/var/lib/hp 0755 root root"
|
||||||
pycompile_dirs="usr/share/hplip"
|
pycompile_dirs="usr/share/hplip"
|
||||||
|
@ -17,6 +17,9 @@ license="GPL-2"
|
||||||
distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/hplip/hplip/${version}/hplip-${version}.tar.gz"
|
||||||
checksum=b2aad842f51dae7da2dd08d09ce2c27bc5f73c82a560b9494dd33589b0948678
|
checksum=b2aad842f51dae7da2dd08d09ce2c27bc5f73c82a560b9494dd33589b0948678
|
||||||
|
|
||||||
|
build_options="gui"
|
||||||
|
desc_option_gui="Build with Qt4 gui support"
|
||||||
|
|
||||||
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/libusb-1.0 -I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
|
@ -36,7 +39,7 @@ do_configure() {
|
||||||
# do not install systemd service file
|
# do not install systemd service file
|
||||||
sed -i '/[[:space:]]install-dist_rulessystemDATA/s,install-dist_rulessystemDATA,,' Makefile.in
|
sed -i '/[[:space:]]install-dist_rulessystemDATA/s,install-dist_rulessystemDATA,,' Makefile.in
|
||||||
|
|
||||||
./configure ${configure_args} --disable-gui-build \
|
./configure ${configure_args} $(vopt_enable gui gui-build) \
|
||||||
--disable-foomatic-rip-hplip-install \
|
--disable-foomatic-rip-hplip-install \
|
||||||
--enable-foomatic-ppd-install \
|
--enable-foomatic-ppd-install \
|
||||||
--enable-hpcups-install \
|
--enable-hpcups-install \
|
||||||
|
|
Loading…
Add table
Reference in a new issue