wok view libsdl-pango/receipt @ rev 24525

Up libav (0.6.6 -> 12.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 22 16:15:28 2022 +0000 (2022-02-22)
parents 412cfae4a54c
children 9a714ac859a3
line source
1 # SliTaz package receipt.
3 PACKAGE="libsdl-pango"
4 VERSION="0.1.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Pango SDL binding."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL2.1"
9 SOURCE="SDL_Pango"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://sdlpango.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/sdlpango/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="pango libsdl"
16 BUILD_DEPENDS="pango-dev libsdl-dev pkg-config libxml2-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 arm*) ARCH_MAKE="LIBS=/cross/$ARCH/sysroot/usr/lib" ;;
21 esac
23 # What is the latest version available today?
24 current_version()
25 {
26 wget -O - https://sourceforge.net/projects/sdlpango/files/SDL_Pango/ 2>/dev/null | \
27 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
28 sed '/scope="row/!d;s|.*/SDL_Pango/||;s|/.*||;q'
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 patch -Np0 -i $stuff/SDL_Pango-$VERSION-API-adds.patch
35 patch -Np1 -i $stuff/matrix_declarations.patch
36 ./configure \
37 $CONFIGURE_ARGS &&
38 make ${ARCH_MAKE} && make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }