wok-next view xchat/receipt @ rev 21720

qt4: replaced libIDL by libidl
author Hans-G?nter Theisgen
date Wed Aug 05 09:22:38 2020 +0100 (2020-08-05)
parents 0c430fcaf2d9
children
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://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 perl-dev"
16 SPLIT="$PACKAGE-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=$install install
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 xchat)
48 copy @std
49 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core libx11"
50 ;;
51 xchat-plugin)
52 copy @std
53 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core libx11"
54 PROVIDE="xchat"
55 CAT="network|with plugins support"
56 ;;
57 esac
58 }