wok annotate fox/receipt @ rev 23061
cookutils: fix check-wok
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 07 18:34:36 2020 +0100 (2020-03-07) |
parents | a6b0a03ac2ce |
children | bfabe25c21ff |
rev | line source |
---|---|
pankso@2779 | 1 # SliTaz package receipt. |
pankso@2779 | 2 |
pankso@2779 | 3 PACKAGE="fox" |
Hans-G?nter@22770 | 4 VERSION="1.6.57" |
pankso@2779 | 5 CATEGORY="x-window" |
pankso@2779 | 6 SHORT_DESC="Fox toolkit." |
pankso@2779 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14996 | 8 LICENSE="LGPL2.1" |
Hans-G?nter@22770 | 9 WEB_SITE="http://www.fox-toolkit.org/" |
Hans-G?nter@22770 | 10 |
pankso@2779 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22771 | 12 WGET_URL="ftp://ftp.fox-toolkit.org/pub/$TARBALL" |
pankso@2779 | 13 |
pankso@16085 | 14 SUGGESTED="adie calculator pathfinder shutterbug" |
Hans-G?nter@22770 | 15 DEPENDS="bzlib jbigkit jpeg libdrm libglu-mesa libpng mesa tiff |
Hans-G?nter@22770 | 16 xorg-libXcursor xorg-libXdamage xorg-libXft xorg-libXrandr |
Hans-G?nter@22770 | 17 xorg-libXxf86vm" |
Hans-G?nter@22770 | 18 BUILD_DEPENDS="expat-dev fontconfig-dev freetype-dev jpeg-dev |
Hans-G?nter@22770 | 19 libglu-mesa-dev libpng-dev libxml2-dev mesa-dev |
Hans-G?nter@22770 | 20 tiff-dev xorg-libXft-dev" |
Hans-G?nter@22770 | 21 |
Hans-G?nter@22770 | 22 HOST_ARCH="i486 arm" |
pascal@13796 | 23 |
pankso@16085 | 24 # Handle SliTaz arch. |
pankso@16085 | 25 case "$SLITAZ_ARCH" in |
pankso@16085 | 26 arm) BUILD_DEPENDS="libjpeg libpng tiff xorg-libXft" ;; |
pankso@16085 | 27 esac |
pankso@16085 | 28 |
pankso@16085 | 29 # Handle cross compilation. |
pankso@16085 | 30 case "$ARCH" in |
pankso@16085 | 31 arm) |
pankso@16085 | 32 BUILD_DEPENDS="jpeg-dev libpng-dev tiff-dev xorg-libXft-dev" |
pankso@16085 | 33 ARCH_ARGS="--with-opengl=no" ;; |
pankso@16085 | 34 esac |
pankso@16085 | 35 |
pankso@2779 | 36 # Rules to configure and make the package. |
pankso@2779 | 37 compile_rules() |
pankso@2779 | 38 { |
Hans-G?nter@22770 | 39 ./configure \ |
Hans-G?nter@22770 | 40 --prefix=/usr \ |
Hans-G?nter@22770 | 41 --mandir=/usr/share/man \ |
Hans-G?nter@22770 | 42 --with-xft \ |
Hans-G?nter@22770 | 43 $CONFIGURE_ARGS \ |
Hans-G?nter@22770 | 44 $ARCH_ARGS && |
gokhlayeh@11574 | 45 make $MAKEFLAGS && |
pascal@13812 | 46 make DESTDIR=$DESTDIR install |
pankso@2779 | 47 } |
pankso@2779 | 48 |
Hans-G?nter@22770 | 49 testsuite() |
Hans-G?nter@22770 | 50 { |
pankso@16085 | 51 readelf -h $install/usr/bin/adie || exit 1 |
pankso@16085 | 52 } |
pankso@16085 | 53 |
pankso@2779 | 54 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2779 | 55 genpkg_rules() |
pankso@2779 | 56 { |
pankso@2779 | 57 mkdir -p $fs/usr/lib |
Hans-G?nter@22770 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@2779 | 59 } |