mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ibrdtn: Disable dependency on glib-2.0 library
Since the current release of the package does not provide a configure option to disable this dependency, a patch is necessary to add this option. Signed-off-by: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>
This commit is contained in:
@@ -34,7 +34,8 @@ define Package/ibrdtn/description
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_ARGS += \
|
CONFIGURE_ARGS += \
|
||||||
--with-compression
|
--with-compression \
|
||||||
|
--without-glib
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)
|
$(INSTALL_DIR) $(1)
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -159,12 +159,21 @@ AS_IF([test "x$enable_android" = "xyes"], [
|
||||||
|
dnl -----------------------------------------------
|
||||||
|
dnl check for glib support
|
||||||
|
dnl -----------------------------------------------
|
||||||
|
- PKG_CHECK_MODULES([GLIB], [glib-2.0], [
|
||||||
|
- AC_SUBST(GLIB_CFLAGS)
|
||||||
|
- AC_SUBST(GLIB_LIBS)
|
||||||
|
- AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
|
||||||
|
- REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
|
||||||
|
- ], [
|
||||||
|
+ AC_ARG_WITH([glib], [AS_HELP_STRING([--without-glib], [Disable linking to glib-2.0 library])], [with_glib=no], [with_glib=yes])
|
||||||
|
+ AS_IF([test "x$with_glib" != xno],
|
||||||
|
+ [
|
||||||
|
+ PKG_CHECK_MODULES([GLIB], [glib-2.0], [
|
||||||
|
+ AC_SUBST(GLIB_CFLAGS)
|
||||||
|
+ AC_SUBST(GLIB_LIBS)
|
||||||
|
+ AC_DEFINE(HAVE_GLIB, [1], ["glib library is available"])
|
||||||
|
+ REQUIRES_LIBS="$REQUIRES_LIBS glib-2.0"
|
||||||
|
+ ], [
|
||||||
|
+ with_glib=no
|
||||||
|
+ ])
|
||||||
|
+ ], [])
|
||||||
|
+
|
||||||
|
+ AS_IF([test "x$with_glib" = xno],
|
||||||
|
+ [
|
||||||
|
AS_IF([test "x$has_endian_h" = "xyes"],[
|
||||||
|
AC_MSG_NOTICE([use endian.h for endianess conversion])
|
||||||
|
],[
|
||||||
|
--
|
||||||
|
1.9.1
|
||||||
|
|
||||||
Reference in New Issue
Block a user