wok view libsdl2-ttf/receipt @ rev 25547
Up utftpd (0.2.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 23 12:22:34 2023 +0000 (19 months ago) |
parents | ede1d184d5c5 |
children | 5db546345599 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl2-ttf"
4 VERSION="2.0.18"
5 CATEGORY="x-window"
6 SHORT_DESC="SDL2 ttf support."
7 MAINTAINER="tcg.thegamer@gmail.com"
8 LICENSE="Zlib"
9 WEB_SITE="https://github.com/libsdl-org/SDL_ttf"
11 SOURCE="SDL2_ttf"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/archive/refs/tags/release-$VERSION.tar.gz"
15 DEPENDS="freetype gcc83-lib-base libsdl2 zlib"
16 BUILD_DEPENDS="freetype-dev gcc83 libsdl2-dev"
18 HOST_ARCH="i486 arm"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
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 }