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