From 594b967e034175ac941e805e440b85a79ce5e534 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 3 Apr 2014 23:53:52 +0200 Subject: [PATCH] New package: xchat-2.8.8 --- srcpkgs/xchat/patches/glib.diff | 47 +++++++++++++++++++++++++++++++++ srcpkgs/xchat/template | 27 +++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 srcpkgs/xchat/patches/glib.diff create mode 100644 srcpkgs/xchat/template diff --git a/srcpkgs/xchat/patches/glib.diff b/srcpkgs/xchat/patches/glib.diff new file mode 100644 index 00000000000..243a87bcfc1 --- /dev/null +++ b/srcpkgs/xchat/patches/glib.diff @@ -0,0 +1,47 @@ +--- src/common/servlist.c ++++ src/common/servlist.c +@@ -24,7 +24,7 @@ + #include + + #include "xchat.h" +-#include ++#include + + #include "cfgfiles.h" + #include "fe.h" +--- src/common/text.c ++++ src/common/text.c +@@ -28,7 +28,7 @@ + #include + + #include "xchat.h" +-#include ++#include + #include "cfgfiles.h" + #include "chanopt.h" + #include "plugin.h" +--- src/common/util.c ++++ src/common/util.c +@@ -39,7 +39,7 @@ + #include + #include "xchat.h" + #include "xchatc.h" +-#include ++#include + #include + #include "util.h" + #include "../../config.h" +--- src/common/xchat.h ++++ src/common/xchat.h +@@ -1,10 +1,6 @@ + #include "../../config.h" + +-#include +-#include +-#include +-#include +-#include ++#include + #include /* need time_t */ + + #ifndef XCHAT_H diff --git a/srcpkgs/xchat/template b/srcpkgs/xchat/template new file mode 100644 index 00000000000..159c80a291b --- /dev/null +++ b/srcpkgs/xchat/template @@ -0,0 +1,27 @@ +# Template file for 'xchat' +pkgname=xchat +version=2.8.8 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config gdk-pixbuf-devel" +makedepends="gtk+-devel openssl-devel dbus-glib-devel perl" +configure_args=" --sysconfdir=/etc --enable-openssl --enable-dbus + --disable-textfe --enable-ipv6 --enable-shm --enable-spell=static" +short_desc="A GTK+ based IRC client" +maintainer="Enno Boland " +homepage="http://www.xchat.org/" +license="GPL" +distfiles="http://www.xchat.org/files/source/${version%.*}/${pkgname}-${version}.tar.xz" +checksum=37b7afd87b5576e17f5dbdd0ed8c14004ac71b8c5430baff9a785bad8df0310b +make_build_args="LDFLAGS=-lgmodule-2.0" + +pre_configure() { + local perlflags= + # Fix perl library path + if [ "$CROSS_BUILD" ];then + perlflags=`perl -MExtUtils::Embed -e ldopts | sed \ + -e 's/-lgdbm //' \ + -e "s#/usr/lib#${XBPS_CROSS_BASE}\0#"` + sed -i "s#PERL_LDFLAGS=#\0$perlflags#" configure + fi +}