valabind: fix cross, switch to meson
This commit is contained in:
parent
c6cff953ac
commit
1b2180f6e1
2 changed files with 14 additions and 4 deletions
12
srcpkgs/valabind/patches/cross.patch
Normal file
12
srcpkgs/valabind/patches/cross.patch
Normal 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',
|
|
@ -1,8 +1,8 @@
|
||||||
# Template file for 'valabind'
|
# Template file for 'valabind'
|
||||||
pkgname=valabind
|
pkgname=valabind
|
||||||
version=1.7.1
|
version=1.7.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=meson
|
||||||
hostmakedepends="pkg-config vala-devel git"
|
hostmakedepends="pkg-config vala-devel git"
|
||||||
makedepends="vala-devel glib-devel"
|
makedepends="vala-devel glib-devel"
|
||||||
depends="vala-devel>=0.26"
|
depends="vala-devel>=0.26"
|
||||||
|
@ -12,5 +12,3 @@ license="GPL-3.0-or-later"
|
||||||
homepage="http:s//radare.org/r/"
|
homepage="http:s//radare.org/r/"
|
||||||
distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
|
distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz"
|
||||||
checksum=b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e
|
checksum=b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e
|
||||||
|
|
||||||
nocross="Unknown option -lvalaccodegen"
|
|
||||||
|
|
Loading…
Reference in a new issue