wok-6.x annotate imlib/receipt @ rev 25088

modified recipe for lightdm
author Hans-G?nter Theisgen
date Sat Jun 18 09:31:48 2022 +0100 (2022-06-18)
parents 73968a7f1da9
children 65784e875d45
rev   line source
rcx@3192 1 # SliTaz package receipt.
rcx@3192 2
rcx@3192 3 PACKAGE="imlib"
rcx@3192 4 VERSION="1.9.15"
rcx@3192 5 CATEGORY="graphics"
rcx@3192 6 SHORT_DESC="An advanced replacement imaging library for libraries like libXpm."
rcx@3192 7 MAINTAINER="rcx@zoominternet.net"
pascal@15001 8 LICENSE="GPL2"
rcx@3192 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
rcx@3192 10 WEB_SITE="http://freshmeat.net/projects/imlib/"
pascal@24111 11 WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
rcx@3192 12
pascal@15001 13 DEPENDS="glibc-base xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext giflib jpeg libpng tiff zlib util-linux-uuid"
pascal@15001 14 BUILD_DEPENDS="slitaz-toolchain xorg-dev xorg-xextproto giflib giflib-dev jpeg jpeg-dev libpng libpng-dev tiff tiff-dev zlib zlib-dev util-linux-uuid-dev"
pascal@15001 15
pascal@24111 16 current_version()
pascal@24111 17 {
pascal@24111 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 20 }
pascal@24111 21
rcx@3192 22 # Rules to configure and make the package.
rcx@3192 23 compile_rules()
rcx@3192 24 {
pascal@22362 25 # Update for giflib >= 5 api
pascal@22366 26 patch -p0 < $stuff/giflib5.u
pascal@22362 27
rcx@3192 28 ./configure \
rcx@3192 29 --prefix=/usr \
rcx@3192 30 --sysconfdir=/etc \
rcx@3192 31 --infodir=/usr/share/info \
rcx@3192 32 --mandir=/usr/share/man \
rcx@3192 33 $CONFIGURE_ARGS &&
pascal@15001 34 make && make DESTDIR=$DESTDIR install
rcx@3192 35 }
rcx@3192 36
rcx@3192 37 # Rules to gen a SliTaz package suitable for Tazpkg.
rcx@3192 38 genpkg_rules()
rcx@3192 39 {
rcx@3192 40 mkdir -p $fs/usr
pascal@15001 41 cp -a $install/usr/bin $fs/usr
rcx@3192 42 mkdir -p $fs/usr/lib
pascal@15001 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
rcx@3192 44 mkdir -p $fs/etc
pascal@15001 45 cp -a $install/etc $fs
psychomaniak@18352 46 }