wok-next view xchat/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 1f8d622f0165
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xchat"
4 VERSION="2.8.8"
5 CATEGORY="network"
6 SHORT_DESC="IRC client using GTK+"
7 MAINTAINER="lenios@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.xchat.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://www.xchat.org/files/source/${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="gtk2-dev dbus-dev openssl10-dev shared-mime-info \
15 gettext-tools perl-dev"
16 SPLIT="xchat-plugin:plugin"
18 compile_rules() {
19 export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0"
20 export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0 -lgmodule-2.0"
22 sed -i -e 's|glib/gslist.h|glib.h|' -e 's|glib/giochannel.h|glib.h|' \
23 -e 's|glib/glist.h|glib.h|' -e 's|glib/gstrfuncs.h|glib.h|' \
24 -e 's|glib/gutils.h|glib.h|' src/common/xchat.h
25 sed -i 's|glib/ghash.h|glib.h|' src/common/servlist.c src/common/text.c
26 sed -i 's|glib/gmarkup.h|glib.h|' src/common/util.c
28 case $SET in
29 '') SET_ARGS='--disable-plugin';;
30 plugin) SET_ARGS='';;
31 esac
33 ./configure \
34 --disable-tcl \
35 --enable-spell=static \
36 --enable-ipv6 \
37 --enable-openssl=/usr/lib/openssl-1.0 \
38 $SET_ARGS \
39 $CONFIGURE_ARGS &&
40 fix libtool &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 xchat)
48 copy @std
49 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core xorg-libX11"
50 ;;
51 xchat-plugin)
52 copy @std
53 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core xorg-libX11"
54 PROVIDE="xchat"
55 CAT="network|with plugins support"
56 ;;
57 esac
58 }