--disable-python \
--disable-ruby \
LUACONFIG="" \
+ ac_cv_path_LIBGNUTLS_CONFIG="pkg-config gnutls" \
-CONFIGURE_VARS+= \
- LDFLAGS="$$$$LDFLAGS -L$(STAGING_DIR)/usr/lib/libiconv/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib" \
-
-TARGET_LDFLAGS += -lgnutls
+TARGET_LDFLAGS += \
+ -L$(STAGING_DIR)/usr/lib/libiconv/lib \
+ -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
ifneq ($(CONFIG_PACKAGE_weechat-mod-lua),)
CONFIGURE_ARGS+= \
all install
endef
-define Package/weechat/install
+define Package/weechat/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/weechat-curses $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/weechat/plugins
define BuildPlugin
- define Package/weechat-mod-$(1)/install
+ define Package/weechat-mod-$(1)/install
$(INSTALL_DIR) $$(1)/usr/lib/weechat/plugins
$(CP) $(PKG_INSTALL_DIR)/usr/lib/weechat/plugins/$(1).so* $$(1)/usr/lib/weechat/plugins/
endef
--- /dev/null
+diff --git a/configure b/configure
+index f388ffe..c9ec352 100755
+--- a/configure
++++ b/configure
+@@ -31400,8 +31400,8 @@ echo "$as_me: WARNING:
+
+
+ if test "x$found_gnutls" = "xyes" ; then
+- GNUTLS_CFLAGS=`libgnutls-config --cflags`
+- GNUTLS_LFLAGS=`libgnutls-config --libs`
++ GNUTLS_CFLAGS=`pkg-config gnutls --cflags`
++ GNUTLS_LFLAGS=`pkg-config gnutls --libs`
+
+
+ cat >>confdefs.h <<\_ACEOF