From e6654a6b1ce6cca77d7a2fb12035e7789b9a4b92 Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 27 Apr 2016 10:42:50 +0000 Subject: [PATCH] check for machine/endian.h --- x11/spice-gtk/Makefile | 18 +++++++++++++++++- x11/spice-gtk/patches/patch-configure_ac | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 x11/spice-gtk/patches/patch-configure_ac diff --git a/x11/spice-gtk/Makefile b/x11/spice-gtk/Makefile index 2237a785b59..5619af69ff5 100644 --- a/x11/spice-gtk/Makefile +++ b/x11/spice-gtk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.26 2016/03/16 13:48:25 jasper Exp $ +# $OpenBSD: Makefile,v 1.27 2016/04/27 10:42:50 jasper Exp $ COMMENT= GTK client and libraries for SPICE remote desktop servers @@ -71,4 +71,20 @@ CONFIGURE_ARGS+=--disable-webdav CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" +# XXX: Remove when bz is merged +AUTOCONF_VERSION= 2.69 +AUTOMAKE_VERSION= 1.15 +BUILD_DEPENDS += ${MODGNU_AUTOCONF_DEPENDS} \ + ${MODGNU_AUTOMAKE_DEPENDS} \ + +pre-configure: + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} aclocal + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoconf + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoheader + cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} automake + .include diff --git a/x11/spice-gtk/patches/patch-configure_ac b/x11/spice-gtk/patches/patch-configure_ac new file mode 100644 index 00000000000..9f41495a872 --- /dev/null +++ b/x11/spice-gtk/patches/patch-configure_ac @@ -0,0 +1,14 @@ +$OpenBSD: patch-configure_ac,v 1.1 2016/04/27 10:42:50 jasper Exp $ + +https://bugs.freedesktop.org/show_bug.cgi?id=94570 + +--- configure.ac.orig Wed Apr 27 12:36:59 2016 ++++ configure.ac Wed Apr 27 12:37:13 2016 +@@ -65,6 +65,7 @@ AM_CONDITIONAL([OS_WIN32],[test "$os_win32" = "yes"]) + AC_CHECK_HEADERS([sys/ipc.h sys/shm.h]) + AC_CHECK_HEADERS([sys/socket.h netinet/in.h arpa/inet.h]) + AC_CHECK_HEADERS([termios.h]) ++AC_CHECK_HEADERS([machine/endian.h]) + + AC_CHECK_LIBM + AC_SUBST(LIBM)