wok-next view fox/receipt @ rev 20502
Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 00:27:34 2018 +0200 (2018-03-16) |
parents | c4e53a39395a |
children | d43bf7aae921 |
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"
13 BUILD_DEPENDS="libpng16-dev jpeg-dev tiff-dev xorg-libXft-dev mesa-dev \
14 glu-dev freetype-dev fontconfig-dev expat-dev libxml2-dev xorg-dev \
15 xorg-libxshmfence-dev"
16 SPLIT="adie calculator fox-dev fox-doc pathfinder shutterbug"
18 # Handle SliTaz arch.
19 case "$SLITAZ_ARCH" in
20 arm) BUILD_DEPENDS="libjpeg libpng16 tiff xorg-libXft" ;;
21 esac
23 # Handle cross compilation.
24 case "$ARCH" in
25 arm)
26 BUILD_DEPENDS="jpeg-dev libpng16-dev tiff-dev xorg-libXft-dev"
27 ARCH_ARGS="--with-opengl=no" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 --with-xft \
37 $CONFIGURE_ARGS $ARCH_ARGS &&
38 make $MAKEFLAGS &&
39 make DESTDIR=$DESTDIR install
40 }
42 testsuite() {
43 readelf -h $install/usr/bin/adie || exit 1
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 case $PACKAGE in
50 fox)
51 SUGGESTED="adie calculator pathfinder shutterbug"
52 DEPENDS="libpng16 jpeg tiff xorg-libXft bzlib mesa glu \
53 xorg-libXcursor xorg-libXrandr xorg-libXxf86vm \
54 xorg-libXdamage libdrm jbigkit"
55 mkdir -p $fs/usr/lib
56 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 ;;
58 adie)
59 CAT="x-window|Advanced text editor using the Fox Toolkit."
60 TAGS="text-editor"
61 DEPENDS="fox"
62 mkdir -p $fs/usr/bin
63 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
64 copy_generic_files
65 ;;
66 calculator)
67 CAT="utilities|Calculator using the Fox Toolkit."
68 TAGS="calculator"
69 DEPENDS="fox"
70 mkdir -p $fs/usr/bin
71 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
72 copy_generic_files
73 ;;
74 fox-dev)
75 CAT="x-window|Fox Toolkit devel files."
76 DEPENDS="fox pkg-config"
77 mkdir -p $fs/usr/lib $fs/usr/bin
78 cp -a $install/usr/include $fs/usr
79 cp -a $install/usr/lib/*.*a $fs/usr/lib
80 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
81 cp -a $install/usr/bin/fox-config $fs/usr/bin
82 cp -a $install/usr/bin/reswrap $fs/usr/bin
83 chmod +x $fs/usr/bin/*
84 ;;
85 fox-doc)
86 CAT="misc|Fox Toolkit documentation."
87 mkdir -p $fs/usr/share
88 cp -a $install/usr/share/doc $fs/usr/share
89 ;;
90 pathfinder)
91 CAT="x-window|Fast and light file manager using the Fox Toolkit."
92 TAGS="file-manager"
93 DEPENDS="fox"
94 mkdir -p $fs/usr/bin
95 cp -a $install/usr/bin/PathFinder $fs/usr/bin
96 copy_generic_files
97 ;;
98 shutterbug)
99 CAT="x-window|Screenshot application from the Fox Toolkit."
100 DEPENDS="fox"
101 mkdir -p $fs/usr/bin
102 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
103 copy_generic_files
104 ;;
105 esac
106 }