wok-next annotate fox/receipt @ rev 20458

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