valabind: fix cross, switch to meson

This commit is contained in:
q66 2019-04-17 01:06:11 +02:00 committed by maxice8
parent c6cff953ac
commit 1b2180f6e1
2 changed files with 14 additions and 4 deletions

View file

@ -0,0 +1,12 @@
--- meson.build
+++ meson.build
@@ -26,7 +26,8 @@ libvala_dep = dependency('libvala-@0@'.format(libvala_version))
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
-valaccodegen_dep = cc.find_library('valaccodegen', dirs : [libvala_dep.get_pkgconfig_variable('pkglibdir')])
+cc_sysroot = run_command(cc.cmd_array()[0], '-print-sysroot').stdout().strip()
+valaccodegen_dep = cc.find_library('valaccodegen', dirs : [cc_sysroot + libvala_dep.get_pkgconfig_variable('pkglibdir')])
executable(
'valabind',

View file

@ -1,8 +1,8 @@
# Template file for 'valabind'
pkgname=valabind
version=1.7.1
revision=1
build_style=gnu-makefile
revision=2
build_style=meson
hostmakedepends="pkg-config vala-devel git"
makedepends="vala-devel glib-devel"
depends="vala-devel>=0.26"
@ -12,5 +12,3 @@ license="GPL-3.0-or-later"
homepage="http:s//radare.org/r/"
distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
checksum=b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e
nocross="Unknown option -lvalaccodegen"