wok-current view libsdl2-image/receipt @ rev 25383
updated units (2.19 -> 2.21)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 30 17:22:12 2022 +0100 (2022-07-30) |
parents | ede1d184d5c5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl2-image"
4 VERSION="2.0.5"
5 CATEGORY="development"
6 SHORT_DESC="An image file loading library."
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="Zlib"
9 WEB_SITE="https://www.libsdl.org/projects/SDL_image/"
10 REPOLOGY="sdl2-image"
12 SOURCE="SDL2_image"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="${WEB_SITE}release/$TARBALL"
16 DEPENDS="jpeg libpng libsdl2 tiff zlib"
17 BUILD_DEPENDS="jpeg-dev libpng-dev libsdl2-dev tiff-dev zlib-dev"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/*} 2>/dev/null | \
25 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 ./configure \
32 LIBS=" -lz " \
33 $CONFIGURE_ARGS &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cook_copy_files *.so*
42 }