wok-next annotate xchat/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 0c430fcaf2d9
children
rev   line source
al@20604 1 # SliTaz package receipt v2.
erjo@1987 2
erjo@1987 3 PACKAGE="xchat"
erjo@5899 4 VERSION="2.8.8"
erjo@1987 5 CATEGORY="network"
erjo@1987 6 SHORT_DESC="IRC client using GTK+"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@21033 9 WEB_SITE="http://xchat.org/"
al@20604 10
erjo@1987 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@16885 12 WGET_URL="http://www.xchat.org/files/source/${VERSION%.*}/$TARBALL"
erjo@1987 13
al@21017 14 BUILD_DEPENDS="gtk2-dev dbus-dev openssl10-dev shared-mime-info \
al@21020 15 gettext perl-dev"
al@21020 16 SPLIT="$PACKAGE-plugin:plugin"
pascal@15000 17
al@20604 18 compile_rules() {
al@20617 19 export CPPFLAGS="$CPPFLAGS -I/usr/include/openssl-1.0"
al@20617 20 export LDFLAGS="$LDFLAGS -L/usr/lib/openssl-1.0 -lgmodule-2.0"
al@20617 21
al@16885 22 sed -i -e 's|glib/gslist.h|glib.h|' -e 's|glib/giochannel.h|glib.h|' \
al@16885 23 -e 's|glib/glist.h|glib.h|' -e 's|glib/gstrfuncs.h|glib.h|' \
al@16885 24 -e 's|glib/gutils.h|glib.h|' src/common/xchat.h
al@16885 25 sed -i 's|glib/ghash.h|glib.h|' src/common/servlist.c src/common/text.c
al@16885 26 sed -i 's|glib/gmarkup.h|glib.h|' src/common/util.c
al@16885 27
al@20617 28 case $SET in
al@20617 29 '') SET_ARGS='--disable-plugin';;
al@20617 30 plugin) SET_ARGS='';;
al@20617 31 esac
al@20617 32
al@16885 33 ./configure \
al@16885 34 --disable-tcl \
al@16885 35 --enable-spell=static \
al@16885 36 --enable-ipv6 \
al@20617 37 --enable-openssl=/usr/lib/openssl-1.0 \
al@20617 38 $SET_ARGS \
al@16885 39 $CONFIGURE_ARGS &&
al@20604 40 fix libtool &&
al@16885 41 make &&
al@21020 42 make DESTDIR=$install install
erjo@1987 43 }
erjo@1987 44
al@20604 45 genpkg_rules() {
al@20617 46 case $PACKAGE in
al@20617 47 xchat)
al@20617 48 copy @std
al@21078 49 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core libx11"
al@20617 50 ;;
al@20617 51 xchat-plugin)
al@20617 52 copy @std
al@21078 53 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core libx11"
al@20617 54 PROVIDE="xchat"
al@20617 55 CAT="network|with plugins support"
al@20617 56 ;;
al@20617 57 esac
erjo@1987 58 }