summaryrefslogtreecommitdiff
path: root/data/weechat
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-08-18 18:31:07 +0000
committerJay Freeman <saurik@saurik.com>2008-08-18 18:31:07 +0000
commitd19bbec72025cca3b03eef35ac3bf6588848323c (patch)
treec702c86594b77528d8f1d5be0a4fcbf41dd7b88c /data/weechat
parent38ba00af8024540ede8969fb84a56945d4e675b8 (diff)
Added GnuTLS for WeeChat.
git-svn-id: http://svn.telesphoreo.org/trunk@424 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/weechat')
l---------data/weechat/_metadata/gnutls.dep1
l---------data/weechat/_metadata/python.dep1
-rw-r--r--data/weechat/gnutls.diff14
-rw-r--r--data/weechat/make.sh4
4 files changed, 18 insertions, 2 deletions
diff --git a/data/weechat/_metadata/gnutls.dep b/data/weechat/_metadata/gnutls.dep
new file mode 120000
index 000000000..2dbb733a2
--- /dev/null
+++ b/data/weechat/_metadata/gnutls.dep
@@ -0,0 +1 @@
+../../gnutls \ No newline at end of file
diff --git a/data/weechat/_metadata/python.dep b/data/weechat/_metadata/python.dep
deleted file mode 120000
index 62afec14c..000000000
--- a/data/weechat/_metadata/python.dep
+++ /dev/null
@@ -1 +0,0 @@
-../../python \ No newline at end of file
diff --git a/data/weechat/gnutls.diff b/data/weechat/gnutls.diff
new file mode 100644
index 000000000..0de4a39da
--- /dev/null
+++ b/data/weechat/gnutls.diff
@@ -0,0 +1,14 @@
+diff -ru weechat-0.2.6/configure.in weechat-0.2.6+iPhone/configure.in
+--- weechat-0.2.6/configure.in 2007-09-05 14:14:00.000000000 +0000
++++ weechat-0.2.6+iPhone/configure.in 2008-08-18 18:02:35.000000000 +0000
+@@ -605,8 +597,8 @@
+ *** libgnutls was not found. You may want to get it from ftp://ftp.gnutls.org/pub/gnutls/
+ *** WeeChat will be built without GnuTLS support.]]))
+ if test "x$found_gnutls" = "xyes" ; then
+- GNUTLS_CFLAGS=`libgnutls-config --cflags`
+- GNUTLS_LFLAGS=`libgnutls-config --libs`
++ GNUTLS_CFLAGS=$LIBGNUTLS_CFLAGS
++ GNUTLS_LFLAGS=$LIBGNUTLS_LIBS
+ AC_SUBST(GNUTLS_CFLAGS)
+ AC_SUBST(GNUTLS_LFLAGS)
+ AC_DEFINE(HAVE_GNUTLS)
diff --git a/data/weechat/make.sh b/data/weechat/make.sh
index 0ac03a457..89cd34e97 100644
--- a/data/weechat/make.sh
+++ b/data/weechat/make.sh
@@ -1,5 +1,7 @@
pkg:setup
+touch aclocal.m4
autoconf
-pkg:configure --with-libiconv-prefix="${PKG_ROOT}" --disable-gnutls --disable-python --disable-ruby
+# XXX: fix libgnutls-config call to add --prefix
+libgnutls_config_args="--prefix=$(PKG_DEST_ gnutls)/usr" pkg:configure --with-libiconv-prefix="${PKG_ROOT}" --with-libgnutls-prefix="$(PKG_DEST_ gnutls)/usr" --disable-python --disable-ruby
make
pkg:install