Index: make/mcabber/mcabber.mk
===================================================================
--- make/mcabber/mcabber.mk (Revision 0)
+++ make/mcabber/mcabber.mk (Revision 0)
@@ -0,0 +1,50 @@
+$(call PKG_INIT_BIN, 0.9.7)
+$(PKG)_SOURCE:=mcabber-$($(PKG)_VERSION).tar.bz2
+$(PKG)_SITE:=http://www.lilotux.net/~mikael/mcabber/files
+$(PKG)_BINARY:=$($(PKG)_DIR)/src/mcabber
+$(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/bin/mcabber
+
+$(PKG)_DEPENDS_ON := glib2 ncurses ncurses-panel
+
+
+ifeq ($(strip $(FREETZ_PACKAGE_MCABBER_WITH_SSL)),y)
+$(PKG)_DEPENDS_ON += openssl
+MYLIBS:="-lpanel -lncurses -lintl -liconv -lm -lglib-2.0 -lssl -lcrypto -ldl"
+$(PKG)_CONFIGURE_OPTIONS += --with-ssl --with-openssl=$(TARGET_MAKE_PATH)/../usr/lib
+else
+MYLIBS:="-lpanel -lncurses -lintl -liconv -lm -lglib-2.0"
+$(PKG)_CONFIGURE_OPTIONS += --without-ssl
+endif
+
+
+ifeq ($(strip $(FREETZ_PACKAGE_MCABBER_STATIC)),y)
+MYLDFLAGS:= "-static"
+else
+MYLDFLAGS:= ""
+endif
+
+
+$(PKG_SOURCE_DOWNLOAD)
+$(PKG_UNPACKED)
+$(PKG_CONFIGURED_CONFIGURE)
+
+$($(PKG)_BINARY): $($(PKG)_DIR)/.configured
+ PATH="$(TARGET_PATH)" \
+ $(MAKE) -C $(MCABBER_DIR) \
+ LDFLAGS=$(MYLDFLAGS) \
+ LIBS=$(MYLIBS)
+
+$($(PKG)_TARGET_BINARY): $($(PKG)_BINARY)
+ $(INSTALL_BINARY_STRIP)
+
+$(pkg):
+
+$(pkg)-precompiled: $($(PKG)_TARGET_BINARY)
+
+$(pkg)-clean:
+ -$(MAKE) -C $(MCABBER_DIR) clean
+
+$(pkg)-uninstall:
+ rm -f $(MCABBER_TARGET_BINARY)
+
+$(PKG_FINISH)
Index: make/mcabber/Makefile.in
===================================================================
--- make/mcabber/Makefile.in (Revision 0)
+++ make/mcabber/Makefile.in (Revision 0)
@@ -0,0 +1,3 @@
+ifeq ($(strip $(FREETZ_PACKAGE_MCABBER)),y)
+PACKAGES+=mcabber
+endif
Index: make/mcabber/Config.in
===================================================================
--- make/mcabber/Config.in (Revision 0)
+++ make/mcabber/Config.in (Revision 0)
@@ -0,0 +1,31 @@
+config FREETZ_PACKAGE_MCABBER
+ bool "mcabber"
+ select FREETZ_LIB_libncurses if ! FREETZ_PACKAGE_MCABBER_STATIC
+ select FREETZ_LIB_libglib2 if ! FREETZ_PACKAGE_MCABBER_STATIC
+ select FREETZ_LIB_libpanel if ! FREETZ_PACKAGE_MCABBER_STATIC
+ default n
+ help
+ Consolen Client für Jabber
+
+ http://www.lilotux.net/~mikael/mcabber/
+
+config FREETZ_PACKAGE_MCABBER_STATIC
+ bool "Statically link libraries"
+ depends on FREETZ_PACKAGE_MCABBER
+ default n
+ help
+ MCABBER needs the following shared libraries which can be linked in statically
+ by activating this switch:
+ - libncurses
+ - libglib2
+ - libpanel
+ - libcrypto (if ssl-support is selected)
+ - libssl (if ssl-support is selected)
+
+config FREETZ_PACKAGE_MCABBER_WITH_SSL
+ bool "with SSL-Support"
+ select FREETZ_LIB_libssl if ! FREETZ_PACKAGE_MCABBER_STATIC
+ depends on FREETZ_PACKAGE_MCABBER
+ default n
+ help
+ enables SSL-Support for mcabber
Index: make/Config.in
===================================================================
--- make/Config.in (Revision 2427)
+++ make/Config.in (Arbeitskopie)
@@ -92,6 +92,7 @@
source make/lua/Config.in
source make/madplay/Config.in
source make/matrixtunnel/Config.in
+source make/mcabber/Config.in
source make/microperl/Config.in
source make/module-init-tools/Config.in
source make/nagios/Config.in
set username = euerusername
set server = jabber.org
set resource = console
set priority = 1
set username = euerusername
set password = euerpassword
set server = jabber.org
set resource = console
set priority = 1
(sleep 2; echo -ne "/say_to [email protected] $text\n\r/quit\n\r") | mcabber -f /pfadzur/mcabberrc
mcabber
Index: make/mcabber/mcabber.mk
===================================================================
--- make/mcabber/mcabber.mk (Revision 2555)
+++ make/mcabber/mcabber.mk (Arbeitskopie)
@@ -6,16 +6,17 @@
$(PKG)_DEPENDS_ON := glib2 ncurses ncurses-panel
-MYLIBS:="-lpanel -lncurses -lintl -liconv -lm -lglib-2.0"
ifeq ($(strip $(FREETZ_PACKAGE_MCABBER_WITH_SSL)),y)
$(PKG)_DEPENDS_ON += openssl
-MYLIBS+="-lssl -lcrypto -ldl"
+MYLIBS:="-lpanel -lncurses -lintl -liconv -lm -lglib-2.0 -lssl -lcrypto -ldl"
$(PKG)_CONFIGURE_OPTIONS += --with-ssl --with-openssl=$(TARGET_MAKE_PATH)/../usr/lib
else
+MYLIBS:="-lpanel -lncurses -lintl -liconv -lm -lglib-2.0"
$(PKG)_CONFIGURE_OPTIONS += --without-ssl
endif
+
ifeq ($(strip $(FREETZ_PACKAGE_MCABBER_STATIC)),y)
MYLDFLAGS:= "-static"
else