wok-next annotate fox/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 43650d7c14eb
children c4e53a39395a
rev   line source
pascal@20058 1 # SliTaz package receipt v2.
pankso@2779 2
pankso@2779 3 PACKAGE="fox"
slaxemulator@15838 4 VERSION="1.6.49"
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"
pankso@2779 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@2779 10 WEB_SITE="http://www.fox-toolkit.org/"
pascal@12724 11 WGET_URL="http://ftp.fox-toolkit.org/pub/$TARBALL"
pankso@16085 12 HOST_ARCH="i486 arm"
pankso@2779 13
al@20454 14 BUILD_DEPENDS="libpng16-dev jpeg-dev tiff-dev xorg-libXft-dev mesa-dev \
psychomaniak@19907 15 libglu-mesa-dev freetype-dev fontconfig-dev expat-dev libxml2-dev xorg-dev \
psychomaniak@19907 16 xorg-libxshmfence-dev"
pascal@20058 17 SPLIT="adie calculator fox-dev fox-doc pathfinder shutterbug"
pascal@13796 18
pankso@16085 19 # Handle SliTaz arch.
pankso@16085 20 case "$SLITAZ_ARCH" in
al@20454 21 arm) BUILD_DEPENDS="libjpeg libpng16 tiff xorg-libXft" ;;
pankso@16085 22 esac
pankso@16085 23
pankso@16085 24 # Handle cross compilation.
pankso@16085 25 case "$ARCH" in
pankso@16085 26 arm)
al@20454 27 BUILD_DEPENDS="jpeg-dev libpng16-dev tiff-dev xorg-libXft-dev"
pankso@16085 28 ARCH_ARGS="--with-opengl=no" ;;
pankso@16085 29 esac
pankso@16085 30
pankso@2779 31 # Rules to configure and make the package.
pankso@2779 32 compile_rules()
pankso@2779 33 {
pankso@2779 34 ./configure \
pankso@2779 35 --prefix=/usr \
pankso@2779 36 --mandir=/usr/share/man \
pankso@2779 37 --with-xft \
pankso@16085 38 $CONFIGURE_ARGS $ARCH_ARGS &&
gokhlayeh@11574 39 make $MAKEFLAGS &&
pascal@13812 40 make DESTDIR=$DESTDIR install
pankso@2779 41 }
pankso@2779 42
pankso@16085 43 testsuite() {
pankso@16085 44 readelf -h $install/usr/bin/adie || exit 1
pankso@16085 45 }
pankso@16085 46
pankso@2779 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2779 48 genpkg_rules()
pankso@2779 49 {
pascal@20058 50 case $PACKAGE in
pascal@20058 51 fox)
pascal@20058 52 SUGGESTED="adie calculator pathfinder shutterbug"
al@20454 53 DEPENDS="libpng16 jpeg tiff xorg-libXft bzlib mesa libglu-mesa \
pascal@20058 54 xorg-libXcursor xorg-libXrandr xorg-libXxf86vm \
pascal@20058 55 xorg-libXdamage libdrm jbigkit"
pascal@20058 56 mkdir -p $fs/usr/lib
pascal@20058 57 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@20058 58 ;;
pascal@20058 59 adie)
pascal@20058 60 CAT="x-window|Advanced text editor using the Fox Toolkit."
pascal@20058 61 TAGS="text-editor"
pascal@20058 62 DEPENDS="fox"
pascal@20058 63 mkdir -p $fs/usr/bin
pascal@20058 64 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
pascal@20058 65 copy_generic_files
pascal@20058 66 ;;
pascal@20058 67 calculator)
pascal@20058 68 CAT="utilities|Calculator using the Fox Toolkit."
pascal@20058 69 TAGS="calculator"
pascal@20058 70 DEPENDS="fox"
pascal@20058 71 mkdir -p $fs/usr/bin
pascal@20058 72 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
pascal@20058 73 copy_generic_files
pascal@20058 74 ;;
pascal@20058 75 fox-dev)
pascal@20058 76 CAT="x-window|Fox Toolkit devel files."
pascal@20058 77 DEPENDS="fox pkg-config"
pascal@20058 78 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@20058 79 cp -a $install/usr/include $fs/usr
pascal@20058 80 cp -a $install/usr/lib/*.*a $fs/usr/lib
pascal@20058 81 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
pascal@20058 82 cp -a $install/usr/bin/fox-config $fs/usr/bin
pascal@20058 83 cp -a $install/usr/bin/reswrap $fs/usr/bin
pascal@20058 84 chmod +x $fs/usr/bin/*
pascal@20058 85 ;;
pascal@20058 86 fox-doc)
pascal@20058 87 CAT="misc|Fox Toolkit documentation."
pascal@20058 88 mkdir -p $fs/usr/share
pascal@20058 89 cp -a $install/usr/share/doc $fs/usr/share
pascal@20058 90 ;;
pascal@20058 91 pathfinder)
pascal@20058 92 CAT="x-window|Fast and light file manager using the Fox Toolkit."
pascal@20058 93 TAGS="file-manager"
pascal@20058 94 DEPENDS="fox"
pascal@20058 95 mkdir -p $fs/usr/bin
pascal@20058 96 cp -a $install/usr/bin/PathFinder $fs/usr/bin
pascal@20058 97 copy_generic_files
pascal@20058 98 ;;
pascal@20058 99 shutterbug)
pascal@20058 100 CAT="x-window|Screenshot application from the Fox Toolkit."
pascal@20058 101 DEPENDS="fox"
pascal@20058 102 mkdir -p $fs/usr/bin
pascal@20058 103 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
pascal@20058 104 copy_generic_files
pascal@20058 105 ;;
pascal@20058 106 esac
pankso@2779 107 }