summaryrefslogtreecommitdiff
path: root/package/weechat
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/weechat
Initial import
Diffstat (limited to 'package/weechat')
-rw-r--r--package/weechat/Config.in26
-rw-r--r--package/weechat/Makefile49
-rw-r--r--package/weechat/ipkg/weechat.control4
-rw-r--r--package/weechat/patches/patch-src_gui_curses_Makefile_in12
4 files changed, 91 insertions, 0 deletions
diff --git a/package/weechat/Config.in b/package/weechat/Config.in
new file mode 100644
index 000000000..0945c9dc9
--- /dev/null
+++ b/package/weechat/Config.in
@@ -0,0 +1,26 @@
+#menu "weechat........................... Lightweight IRC client"
+
+config ADK_PACKAGE_WEECHAT
+ prompt "weechat........................... Lightweight IRC client"
+ tristate
+ default n
+ select ADK_PACKAGE_LIBNCURSES
+ select ADK_PACKAGE_LIBICONV
+ help
+ Fast, light & extensible IRC client
+
+ http://weechat.flashtux.org
+
+config ADK_COMPILE_WEECHAT_WITH_TLS
+ prompt " Enable TLS support"
+ bool
+ select ADK_PACKAGE_LIBGNUTLS
+ depends ADK_PACKAGE_WEECHAT
+
+config ADK_COMPILE_WEECHAT_WITH_LUA
+ prompt " Enable LUA scripting"
+ bool
+ select ADK_PACKAGE_LIBLUA
+ depends ADK_PACKAGE_WEECHAT
+
+#endmenu
diff --git a/package/weechat/Makefile b/package/weechat/Makefile
new file mode 100644
index 000000000..1e1a5023a
--- /dev/null
+++ b/package/weechat/Makefile
@@ -0,0 +1,49 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= weechat
+PKG_VERSION:= 0.1.8
+PKG_RELEASE:= 2
+PKG_MD5SUM:= 73d6bc211ac32c597f0d278506480a20
+
+MASTER_SITES:= http://weechat.flashtux.org/download/
+
+include ${TOPDIR}/mk/package.mk
+
+PKG_DEPEND:= libncurses libiconv
+
+ifeq (${ADK_COMPILE_WEECHAT_WITH_TLS},y)
+ENABLE_TLS:= --with-libgnutls-prefix=${STAGING_DIR}/usr
+PKG_DEPEND+= gnutls
+else
+ENABLE_TLS:= --disable-gnutls
+endif
+
+ifneq (${ADK_COMPILE_WEECHAT_WITH_LUA},y)
+DISABLE_LUA:= --disable-lua
+else
+PKG_DEPEND+= liblua
+endif
+
+$(eval $(call PKG_template,WEECHAT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH},${PKG_DEPEND}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ARGS+= ${ENABLE_TLS} \
+ --with-debug=0 \
+ --disable-perl \
+ --disable-python \
+ --disable-ruby \
+ --with-libiconv-prefix='${STAGING_DIR}/usr' \
+ ${DISABLE_LUA}
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_WEECHAT}/usr/bin/
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/weechat-curses ${IDIR_WEECHAT}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/weechat/ipkg/weechat.control b/package/weechat/ipkg/weechat.control
new file mode 100644
index 000000000..81a2bec6c
--- /dev/null
+++ b/package/weechat/ipkg/weechat.control
@@ -0,0 +1,4 @@
+Package: weechat
+Section: net
+Priority: optional
+Description: Lightweight IRC client
diff --git a/package/weechat/patches/patch-src_gui_curses_Makefile_in b/package/weechat/patches/patch-src_gui_curses_Makefile_in
new file mode 100644
index 000000000..e73dd48b5
--- /dev/null
+++ b/package/weechat/patches/patch-src_gui_curses_Makefile_in
@@ -0,0 +1,12 @@
+$Id$
+--- weechat-0.1.8.orig/src/gui/curses/Makefile.in 2006-03-18 08:46:20.000000000 +0000
++++ weechat-0.1.8/src/gui/curses/Makefile.in 2007-02-15 21:56:21.000000000 +0000
+@@ -365,7 +365,7 @@ clean-binPROGRAMS:
+ done
+ weechat-curses$(EXEEXT): $(weechat_curses_OBJECTS) $(weechat_curses_DEPENDENCIES)
+ @rm -f weechat-curses$(EXEEXT)
+- $(LINK) $(weechat_curses_LDFLAGS) $(weechat_curses_OBJECTS) $(weechat_curses_LDADD) $(LIBS)
++ $(LINK) $(weechat_curses_LDFLAGS) $(weechat_curses_OBJECTS) $(weechat_curses_LDADD) $(LIBICONV) $(LIBS)
+
+ mostlyclean-compile:
+ -rm -f *.$(OBJEXT)