diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-05-08 19:35:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-05-08 19:35:43 +0000 |
commit | 7f0ce3691fbf2800e1decf229d5b0def2cb90a34 (patch) | |
tree | 15754c01c24d911885f1c040dc915f78bb185b85 /media-gfx/sane-backends/sane-backends-1.0.23.ebuild | |
parent | Pregenerate lexer and parser tables. (diff) | |
download | historical-7f0ce3691fbf2800e1decf229d5b0def2cb90a34.tar.gz historical-7f0ce3691fbf2800e1decf229d5b0def2cb90a34.tar.bz2 historical-7f0ce3691fbf2800e1decf229d5b0def2cb90a34.zip |
Make cross-compiling work.
Package-Manager: portage-2.2.0_alpha170/cvs/Linux x86_64
Manifest-Sign-Key: 0xFB7C4156
Diffstat (limited to 'media-gfx/sane-backends/sane-backends-1.0.23.ebuild')
-rw-r--r-- | media-gfx/sane-backends/sane-backends-1.0.23.ebuild | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/media-gfx/sane-backends/sane-backends-1.0.23.ebuild b/media-gfx/sane-backends/sane-backends-1.0.23.ebuild index 1883a77a6116..cd80e2aac46a 100644 --- a/media-gfx/sane-backends/sane-backends-1.0.23.ebuild +++ b/media-gfx/sane-backends/sane-backends-1.0.23.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.23.ebuild,v 1.16 2013/02/22 21:02:33 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.23.ebuild,v 1.17 2013/05/08 19:35:31 vapier Exp $ EAPI="5" -inherit eutils flag-o-matic multilib udev user +inherit eutils flag-o-matic multilib udev user toolchain-funcs # gphoto and v4l are handled by their usual USE flags. # The pint backend was disabled because I could not get it to compile. @@ -230,6 +230,25 @@ src_compile() { grep -v '^$' libsane.usermap > libsane.usermap.new mv libsane.usermap.new libsane.usermap fi + + if tc-is-cross-compiler; then + # The build system sucks and doesn't handle this properly. + # https://alioth.debian.org/tracker/index.php?func=detail&aid=314236&group_id=30186&atid=410366 + tc-export_build_env BUILD_CC + cd "${S}"/tools + ${BUILD_CC} ${BUILD_CPPFLAGS} ${BUILD_CFLAGS} -I. -I../include \ + ../sanei/sanei_config.c ../sanei/sanei_constrain_value.c \ + ../sanei/sanei_init_debug.c sane-desc.c -o sane-desc || die + local dirs=( hal hotplug hotplug-ng udev ) + local targets=( + hal/libsane.fdi + hotplug/libsane.usermap + hotplug-ng/libsane.db + udev/libsane.rules + ) + mkdir -p "${dirs[@]}" || die + emake "${targets[@]}" + fi } src_install () { |