31 lines
1,021 B
Bash
31 lines
1,021 B
Bash
# Template file for 'xchat'
|
|
pkgname=xchat
|
|
version=2.8.8
|
|
revision=18
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config gdk-pixbuf-devel perl"
|
|
makedepends="gtk+-devel libressl-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 <gottox@voidlinux.eu>"
|
|
homepage="http://www.xchat.org/"
|
|
license="GPL-2"
|
|
distfiles="http://www.xchat.org/files/source/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=37b7afd87b5576e17f5dbdd0ed8c14004ac71b8c5430baff9a785bad8df0310b
|
|
|
|
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/-mtune=generic//' \
|
|
-e "s#/usr/lib#${XBPS_CROSS_BASE}\0#")
|
|
sed -i "s#PERL_LDFLAGS=#\0$perlflags#" configure
|
|
sed -i "s#PERL_CFLAGS=#\0$CFLAGS#" configure
|
|
fi
|
|
}
|