wok-current annotate zbar/receipt @ rev 25124

updated apache-mod-perl (2.0.8 -> 2.0.11)
author Hans-G?nter Theisgen
date Tue Jun 28 16:23:55 2022 +0100 (2022-06-28)
parents 5ea0ce1cecc0
children
rev   line source
pascal@10903 1 # SliTaz package receipt.
pascal@10903 2
pascal@10903 3 PACKAGE="zbar"
pascal@24767 4 VERSION="0.23.90"
pascal@10903 5 CATEGORY="utilities"
Hans-G?nter@22326 6 SHORT_DESC="Decode barcode and QR code."
pascal@10903 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
pascal@22343 9 WEB_SITE="https://github.com/mchehab/zbar"
pascal@10903 10
Hans-G?nter@22326 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22326 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
Hans-G?nter@22326 13
Hans-G?nter@22326 14 DEPENDS="atk cairo fontconfig freetype gcc83-lib-base gtk+
Hans-G?nter@22326 15 imagemagick jpeg libgio pango"
Hans-G?nter@22326 16 BUILD_DEPENDS="atk-dev cairo-dev fftw-dev fontconfig-dev freetype-dev
Hans-G?nter@22326 17 gcc83 gdk-pixbuf graphviz-dev gtk+-dev ilmbase-dev imagemagick-dev
Hans-G?nter@22326 18 jpeg-dev lcms-dev libgio-dev libtool libxml2-dev linux-api-headers
Hans-G?nter@22326 19 openexr-dev pango-dev util-linux-uuid-dev"
pascal@10903 20
pascal@24767 21 # What is the latest version available today?
pascal@24055 22 current_version()
pascal@24055 23 {
pascal@24055 24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 25 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 26 }
pascal@24055 27
pascal@10903 28 # Rules to configure and make the package.
pascal@10903 29 compile_rules()
pascal@10903 30 {
Hans-G?nter@22326 31 # sed -i 's|w\(and/MagickWand\.h\)|MagickW\1|' configu* zbarimg/zbarimg.c
Hans-G?nter@22326 32
Hans-G?nter@22326 33 autoreconf -vfi &&
Hans-G?nter@22326 34 ./configure \
Hans-G?nter@22326 35 CC=gcc-83 \
Hans-G?nter@22326 36 CXX=g++-83 \
Hans-G?nter@22326 37 --prefix=/usr \
Hans-G?nter@22326 38 --mandir=/usr/share/man \
Hans-G?nter@22326 39 --localstatedir=/var \
Hans-G?nter@22326 40 --without-qt \
Hans-G?nter@22326 41 --without-python \
Hans-G?nter@22326 42 --disable-video \
Hans-G?nter@22326 43 --disable-doc \
pascal@10903 44 $CONFIGURE_ARGS &&
pascal@10903 45 make &&
pascal@10903 46 make DESTDIR=$DESTDIR install
pascal@10903 47 }
pascal@10903 48
pascal@10903 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@10903 50 genpkg_rules()
pascal@10903 51 {
pascal@10903 52 mkdir -p $fs/usr/lib
Hans-G?nter@22326 53
Hans-G?nter@22326 54 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22326 55 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@10903 56 }