wok view giblib/receipt @ rev 25732

Up liblzma (5.6.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 21 17:39:11 2024 +0000 (3 months ago)
parents 69e1e705f038
children
line source
1 # SliTaz package receipt
3 PACKAGE="giblib"
4 VERSION="1.2.4"
5 CATEGORY="graphics"
6 SHORT_DESC="Giblib graphics library."
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="MIT"
9 WEB_SITE="https://freshmeat.sourceforge.net/projects/giblib/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/cbane/giblib/archive/v$VERSION.tar.gz"
14 DEPENDS="freetype imlib2 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext"
15 BUILD_DEPENDS="freetype-dev imlib2-dev xorg-xproto xorg-libXext-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Handle cross compilation
27 case "$ARCH" in
28 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 sed -i 's|/doc|/share&|' Makefile*
35 which imlib2-config ||
36 sed -i -e 's|imlib2-config --cflags|pkg-config --cflags imlib2|' \
37 -e 's|imlib2-config --libs|pkg-config --libs imlib2|' configure*
39 ./configure \
40 --prefix=/usr \
41 --with-imlib2-exec-prefix=/usr \
42 --with-imlib2-prefix=/usr/lib/imlib2 \
43 $CONFIGURE_ARGS &&
44 make &&
45 make install DESTDIR=$DESTDIR
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cook_copy_folders bin
52 cook_copy_folders pkgconfig
53 cook_copy_files *.so*
54 }