wok-next annotate zbar/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 5669e8b3be70
rev   line source
pascal@20319 1 # SliTaz package receipt v2.
pascal@10903 2
pascal@10903 3 PACKAGE="zbar"
pascal@10903 4 VERSION="0.10"
pascal@10903 5 CATEGORY="utilities"
al@20851 6 SHORT_DESC="Decode barcode & QR code"
pascal@10903 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
al@20851 9 WEB_SITE="http://zbar.sourceforge.net/"
al@20851 10
pascal@10903 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@10903 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@10903 13
al@20851 14 BUILD_DEPENDS="xmlto xorg-libX11-dev xorg-libXext-dev xorg-libXv-dev \
al@21017 15 libjpeg-turbo-dev imagemagick6-dev gtk2-dev"
al@21020 16 SPLIT="$PACKAGE-dev"
pascal@10903 17
al@20851 18 compile_rules() {
al@20851 19 sed -i 's|MagickWand |MagickWand-6 |g' configure # search for MagickWand-6.pc instead
al@20851 20
al@20851 21 ./configure \
pascal@10903 22 --without-qt \
pascal@10903 23 --without-python \
pascal@12562 24 --disable-video \
al@20851 25 $CONFIGURE_ARGS &&
al@20851 26 fix libtool &&
pascal@10903 27 make &&
al@20851 28 make install
pascal@10903 29 }
pascal@10903 30
al@20851 31 genpkg_rules() {
pascal@20319 32 case $PACKAGE in
al@20851 33 zbar)
al@20851 34 copy @std
al@21017 35 DEPENDS="gdk-pixbuf glib gtk2 imagemagick6 libjpeg-turbo \
al@20851 36 xorg-libX11 xorg-libXv"
al@20851 37 ;;
al@20851 38 *-dev)
al@20851 39 copy @dev
al@21017 40 DEPENDS="zbar glib-dev gtk2-dev"
al@20851 41 ;;
pascal@20319 42 esac
pascal@10903 43 }