vala: fix crossbuild
This commit is contained in:
parent
0a6e0d09f8
commit
552d1f4aae
23
srcpkgs/vala/patches/fix-cross.patch
Normal file
23
srcpkgs/vala/patches/fix-cross.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- configure.ac.orig 2017-10-06 09:45:08.321772985 +0200
|
||||
+++ configure.ac 2017-10-06 09:46:58.900866875 +0200
|
||||
@@ -104,16 +104,15 @@ cgraph_tmp_LIBADD="$LIBADD"
|
||||
cgraph_tmp_CFLAGS="$CFLAGS"
|
||||
LIBADD="$LIBADD $LIBGVC_LIBS"
|
||||
CFLAGS="$CFLAGS $LIBGVC_CFLAGS"
|
||||
-AC_RUN_IFELSE(
|
||||
+AC_COMPILE_IFELSE(
|
||||
[AC_LANG_SOURCE([
|
||||
#include <gvc.h>
|
||||
|
||||
int main(void) {
|
||||
- #ifdef WITH_CGRAPH
|
||||
- return 0;
|
||||
- #else
|
||||
- return -1;
|
||||
+ #ifndef WITH_CGRAPH
|
||||
+ #error
|
||||
#endif
|
||||
+ return 0;
|
||||
}
|
||||
])], [
|
||||
AC_MSG_RESULT([yes])
|
|
@ -3,7 +3,7 @@ pkgname=vala
|
|||
version=0.38.1
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config flex libxslt"
|
||||
hostmakedepends="pkg-config flex libxslt automake libtool"
|
||||
makedepends="libglib-devel libfl-devel graphviz-devel"
|
||||
short_desc="Compiler for the GObject type system"
|
||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||
|
@ -12,6 +12,10 @@ license="LGPL-2.1"
|
|||
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
|
||||
checksum=1035344f3ba50a572894c0aed3f794dd0efb9f08fce1c1d0cc537936e9a05084
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
libvala_package() {
|
||||
short_desc+=" - shared library"
|
||||
pkg_install() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user