wok-6.x annotate gambas2/receipt @ rev 25019

updated openjpeg2 and openjpeg2-dev (2.3.1 -> 2.5.0)
author Hans-G?nter Theisgen
date Wed May 18 07:22:38 2022 +0100 (2022-05-18)
parents 93d12db6c664
children 7dd01dedad38
rev   line source
pankso@7881 1 # SliTaz package receipt.
pankso@7881 2
pankso@7881 3 PACKAGE="gambas2"
pascal@17778 4 VERSION="2.24.0"
pankso@7881 5 CATEGORY="development"
pankso@7881 6 SHORT_DESC="Free development environment based on a Basic interpreter"
pankso@7881 7 MAINTAINER="pankso@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pankso@7881 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@7881 10 WEB_SITE="http://gambas.sourceforge.net/"
pankso@7881 11 WGET_URL="$SF_MIRROR/gambas/$TARBALL"
pascal@13034 12 TAGS="interpreter basic"
pankso@7881 13
pascal@18441 14 DEPENDS="poppler util-linux-uuid lcms tiff jpeg libpng"
pascal@18441 15 BUILD_DEPENDS="poppler-dev util-linux-uuid-dev lcms-dev tiff-dev jpeg-dev \
psychomaniak@19527 16 libpng-dev autoconf automake libtool freetype-dev fontconfig-dev"
pascal@15000 17
pascal@24403 18 # What is the latest version available today?
pascal@24403 19 current_version()
pascal@24403 20 {
pascal@24403 21 wget -O - https://sourceforge.net/projects/gambas/files/gambas2/ 2>/dev/null | \
pascal@24403 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 23 sed '/scope="row/!d;s|.*/gambas2/||;s|/.*||;q'
pascal@24403 24 }
pascal@24403 25
pankso@7881 26 # Rules to configure and make the package.
pankso@7881 27 compile_rules()
pankso@7881 28 {
pascal@18440 29 sed -i '/0.17.0 poppler/{N;p;s/17/20/g}' gb.pdf/configure.ac
pascal@18440 30 cp $stuff/CPdfDocument.cpp gb.pdf/src/CPdfDocument.cpp
pascal@17781 31 ./reconf-all
pankso@7881 32 ./configure \
pankso@7881 33 --prefix=/usr \
pankso@7881 34 --infodir=/usr/share/info \
pankso@7881 35 --mandir=/usr/share/man \
pankso@7881 36 $CONFIGURE_ARGS &&
pascal@18441 37 make &&
pascal@23050 38 make -j 1 DESTDIR=$DESTDIR install 2>&1 | \
pascal@18441 39 sed 's/ERROR:/Error:/;s/: No such file/: no such file/'
pankso@7881 40 }
pankso@7881 41
pankso@7881 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@7881 43 genpkg_rules()
pankso@7881 44 {
pankso@7881 45 mkdir -p $fs/usr
pascal@15000 46 cp -a $install/usr/bin $fs/usr
pascal@15000 47 cp -a $install/usr/lib $fs/usr
pascal@15000 48 cp -a $install/usr/share $fs/usr
pankso@7881 49 }
psychomaniak@18209 50