wok-next annotate 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 |
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+" |
lenios@3863 | 7 MAINTAINER="lenios@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@16885 | 9 WEB_SITE="http://www.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 \ |
pascal@20214 | 15 gettext-tools perl-dev" |
al@20617 | 16 SPLIT="xchat-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@16885 | 42 make DESTDIR=$DESTDIR 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@21017 | 49 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core xorg-libX11" |
al@20617 | 50 ;; |
al@20617 | 51 xchat-plugin) |
al@20617 | 52 copy @std |
al@21017 | 53 DEPENDS="gdk-pixbuf glib gtk2 openssl10 pango perl-core xorg-libX11" |
al@20617 | 54 PROVIDE="xchat" |
al@20617 | 55 CAT="network|with plugins support" |
al@20617 | 56 ;; |
al@20617 | 57 esac |
erjo@1987 | 58 } |