wok-next view xfe/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 | 2340610f6420 |
children | c4e53a39395a |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xfe"
4 VERSION="1.40"
5 CATEGORY="system-tools"
6 SHORT_DESC="Xfe File manager and utility using Fox toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://roland65.free.fr/xfe/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="file-manager"
13 #HOST_ARCH="i486 arm"
15 BUILD_DEPENDS="libpng16-dev jpeg-dev tiff-dev xorg-libXft-dev fox-dev automake"
16 GENERIC_MENUS="no"
17 SPLIT="xfe xfe-extras xfi xfw"
19 # Handle cross compilation.
20 case "$ARCH" in
21 i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool" ;;
22 arm)
23 export LDLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Required by freetype-dev-2.4.11
30 sed -i 's|config/ftheader.h|freetype/config/ftheader.h|' configure.ac
31 ./autogen.sh
32 ./configure $CONFIGURE_ARGS && make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 case $PACKAGE in
39 xfe)
40 SUGGESTED="adie calculator shutterbug xfe-extras xfi"
41 DEPENDS="libpng16 jpeg tiff xorg-libXft fox"
42 mkdir -p $fs/usr/bin $fs/usr/share/xfe/icons
43 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
44 cp -a $install/usr/share/xfe/xferc $fs/usr/share/xfe
45 sed -i 's/gnomeblue-theme/tango-theme/' $fs/usr/share/xfe/xferc
46 # Tango/Gnome icons theme only
47 cp -a $install/usr/share/xfe/icons/tango-theme \
48 $fs/usr/share/xfe/icons
49 cp -a $install/usr/share/xfe/icons/gnome-theme \
50 $fs/usr/share/xfe/icons
51 ;;
52 xfe-extras)
53 CAT="system-tools|Xfe File manager tools."
54 DEPENDS="xfe"
55 GENERIC_MENUS="no"
56 mkdir -p $fs/usr/bin \
57 $fs/usr/share/applications \
58 $fs/usr/share/icons
60 cp -a $install/usr/bin/xf[i,v,p,w] $fs/usr/bin
61 cp -a $install/usr/share/applications/xf[i,v,p,w]* $fs/usr/share/applications
62 cp -a $src/xf[i,v,p,w].png $fs/usr/share/icons
63 ;;
64 xfi)
65 CAT="x-window|X File Image viewer using the Fox Toolkit."
66 LOCALE=""
67 DEPENDS="fox"
68 mkdir -p $fs/usr/bin
69 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
70 copy_generic_files
71 ;;
72 xfw)
73 CAT="x-window|X File Writer - Text editor using the Fox Toolkit."
74 LOCALE=""
75 TAGS="text-editor"
76 DEPENDS="fox"
77 mkdir -p $fs/usr/bin
78 cp -a $install/usr/bin/$PACKAGE $fs/usr/bin
79 copy_generic_files
80 ;;
81 esac
82 }