libgda is needed by the symbol-db plugin, which we don't build on OpenBSD.

though GDA_CFLAGS is used in various Makefile's. So instead of changing
dozens of files, we just drop the LIB_DEPENDS and keep the BUILD_DEPENDS.
This commit is contained in:
jasper 2011-09-13 08:37:47 +00:00
parent 4f25505f72
commit 5b4cbb0785
3 changed files with 36 additions and 23 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.31 2011/09/12 20:20:18 jasper Exp $
# $OpenBSD: Makefile,v 1.32 2011/09/13 08:37:47 jasper Exp $
SHARED_ONLY= Yes
@ -6,6 +6,7 @@ COMMENT= versatile IDE for GNOME
GNOME_PROJECT= anjuta
GNOME_VERSION= 3.1.91
REVISION= 0
SHARED_LIBS += anjuta-3 0.0 # 0.0
@ -43,6 +44,10 @@ WANTLIB += ${MODPY_WANTLIB}
BUILD_DEPENDS= devel/autogen>=5.6.5 \
devel/gobject-introspection
# libgda is needed by the symbol-db plugin, which we don't build on OpenBSD.
# though GDA_CFLAGS is used in various Makefile's. So instead of changing
# dozens of files, we just drop the LIB_DEPENDS and keep the BUILD_DEPENDS.
BUILD_DEPENDS+= x11/gnome/libgda
RUN_DEPENDS= misc/shared-mime-info
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
devel/glade \
@ -52,7 +57,6 @@ LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
textproc/icu4c \
x11/gnome/devhelp \
x11/gnome/gdl \
x11/gnome/libgda \
x11/gtksourceview3
# XXX: Remove when updating to a stable release
@ -62,6 +66,9 @@ LIBTOOL_FLAGS= --tag=disable-static
DESKTOP_FILES= Yes
MODGNOME_HELP_FILES= Yes
AUTOCONF_VERSION= 2.68
CONFIGURE_STYLE= autoconf gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-plugin-subversion \
--enable-gtk-doc=no \

View File

@ -1,21 +0,0 @@
$OpenBSD: patch-configure,v 1.4 2011/09/12 07:26:20 ajacoutot Exp $
Let configure pickup the right bison; can be removed when updating
to a stable release.
--- configure.orig Mon Jul 25 10:55:12 2011
+++ configure Wed Jul 27 12:12:47 2011
@@ -4733,9 +4733,10 @@ fi
done
test -n "$YACC" || YACC="yacc"
-if test "$YACC" != "bison -y"; then
- as_fn_error $? "bison is required" "$LINENO" 5
-fi
+#if test "$YACC" != "bison -y"; then
+# as_fn_error $? "bison is required" "$LINENO" 5
+#fi
+YACC="bison -y"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'

View File

@ -0,0 +1,27 @@
$OpenBSD: patch-configure_ac,v 1.1 2011/09/13 08:37:47 jasper Exp $
--- configure.ac.orig Mon Sep 5 14:29:14 2011
+++ configure.ac Tue Sep 13 10:24:13 2011
@@ -79,10 +79,7 @@ AC_PROG_LEX
if test "$LEX" != "flex"; then
AC_MSG_ERROR(flex is required)
fi
-AC_PROG_YACC
-if test "$YACC" != "bison -y"; then
- AC_MSG_ERROR(bison is required)
-fi
+YACC="bison -y"
AC_LANG([C])
AC_LANG([C++])
AC_PROG_CXX
@@ -285,10 +282,7 @@ fi
AM_CONDITIONAL(HAVE_PYTHON, [test x$have_python = xyes])
-PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
- [libgda-5.0 >= $GDA5_REQUIRED],,
- [PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB],
- [libgda-4.0 >= $GDA4_REQUIRED])])
+PKG_CHECK_MODULES([PLUGIN_SYMBOL_DB], [])
dnl Setup Anjuta Library flags
dnl --------------------------