wok annotate giblib/receipt @ rev 20707
Up tinc (1.0.35)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 06 15:24:48 2019 +0100 (2019-02-06) |
parents | f6af821600e6 |
children | 00e3b45c063b |
rev | line source |
---|---|
mallory@1133 | 1 # SliTaz package receipt |
mallory@1133 | 2 |
mallory@1133 | 3 PACKAGE="giblib" |
mallory@1133 | 4 VERSION="1.2.4" |
mallory@1133 | 5 CATEGORY="graphics" |
mallory@1133 | 6 SHORT_DESC="Giblib graphic library." |
mallory@1133 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15600 | 8 LICENSE="MIT" |
mallory@1133 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20673 | 10 WEB_SITE="http://freshmeat.sourceforge.net/projects/giblib" |
mallory@1133 | 11 WGET_URL="http://linuxbrit.co.uk/downloads/$TARBALL" |
pankso@16083 | 12 HOST_ARCH="i486 arm" |
mallory@1133 | 13 |
pascal@15600 | 14 DEPENDS="imlib2 freetype xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext" |
pascal@15600 | 15 BUILD_DEPENDS="imlib2-dev imlib2 xorg-xproto freetype-dev xorg-libXext-dev" |
pascal@15600 | 16 |
pankso@16083 | 17 # Handle cross compilation |
pankso@16083 | 18 case "$ARCH" in |
pankso@16083 | 19 arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16083 | 20 esac |
pankso@16083 | 21 |
mallory@1133 | 22 # Rules to configure and make the package. |
mallory@1133 | 23 compile_rules() |
mallory@1133 | 24 { |
pascal@19290 | 25 sed -i 's|/doc|/share&|' Makefile* |
pankso@16083 | 26 ./configure \ |
pankso@16083 | 27 --prefix=/usr \ |
pankso@16083 | 28 $CONFIGURE_ARGS && |
pascal@2485 | 29 make && |
pascal@15600 | 30 make DESTDIR=$DESTDIR install |
mallory@1133 | 31 } |
mallory@1133 | 32 |
mallory@1133 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@1133 | 34 genpkg_rules() |
mallory@1133 | 35 { |
mallory@1133 | 36 mkdir -p $fs/usr |
pascal@15600 | 37 cp -a $install/usr/bin $fs/usr |
pascal@15600 | 38 cp -a $install/usr/lib $fs/usr |
pascal@1135 | 39 rm -f $fs/usr/lib/*a |
mallory@1133 | 40 } |