xboxdrv: build with our {C,LD}FLAGS and fix cross compilation.

Close #1173
This commit is contained in:
Juan RP 2015-03-20 12:10:01 +01:00
parent 6ad5337a5a
commit 8c8c69c7c9

View file

@ -9,6 +9,9 @@ short_desc="Xbox Gamepad Userspace Driver"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-3"
homepage="http://pingus.seul.org/~grumbel/xboxdrv/"
make_build_target=${pkgname}
distfiles="https://github.com/Grumbel/${pkgname}/archive/v${version}.zip"
checksum=96247450cda3184b1cfb09e2ac8758d81c6a78271b614e645399eb2a07fd3d38
do_build() {
scons CC=$CC CXX=$CXX CCFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LINKFLAGS="$LDFLAGS"
}