package/hplip: remove includedir hack
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 21 Jan 2016 23:02:32 +0000 (00:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 21 Jan 2016 23:05:47 +0000 (00:05 +0100)
commitffca78cbcdab370a3916be51db3ca54ea03fba24
treeb6786cce1fec3f98a065c2ed89a7044f6d10aade
parent8e11c38bcec6329fb02dcc9244b00a4ae959c860
package/hplip: remove includedir hack

The 0001-fix-make.patch which was added to the hplip package to remove
hardcoded paths to the libusb header introduced a solution that isn't
correct. When cross-compiling, $(includedir) is ${prefix}/include (i.e
/usr/include), so it is not the location where headers can be
found. Due to this, hplip.mk was overriding the includedir value with
--includedir which is not correct.

To replace this mechanism, this commit changes the patch to instead
use pkg-config (which is already used in other places in hplip
configure.in) to detect libusb. This way, we can get rid of the hack
and get a proper detection of libusb.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/hplip/0001-build-use-pkg-config-to-discover-libusb.patch [new file with mode: 0644]
package/hplip/0001-fix-make.patch [deleted file]
package/hplip/hplip.mk