wok-next view fox14/receipt @ rev 20140
fox14: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 09:16:07 2017 +0100 (2017-11-01) |
parents | 30522fa01aed |
children | 52f63f1fa1ac |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="fox14"
4 SOURCE="fox"
5 VERSION="1.4.35"
6 CATEGORY="x-window"
7 SHORT_DESC="Fox toolkit."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="LGPL2.1"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.fox-toolkit.org/"
12 WGET_URL="http://ftp.fox-toolkit.org/pub/$TARBALL"
13 SUGGESTED="adie calculator pathfinder shutterbug"
15 BUILD_DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib \
16 xorg-libXrender xorg-libXrender-dev fontconfig fontconfig-dev freetype freetype-dev \
17 libpng-dev jpeg-dev tiff-dev xorg-libXft-dev mesa libglu-mesa expat-dev libxml2-dev"
18 SPLIT="fox14 fox14-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/fxpngio.cpp
24 sed -i 's/(gzFile\*)/(gzFile)/' src/FXGZStream.cpp
25 ./configure LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --with-xft \
29 $CONFIGURE_ARGS &&
30 make $MAKEFLAGS &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 fox14)
39 DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib mesa libglu-mesa"
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 ;;
44 fox14-dev)
45 CAT="x-window|Fox toolkit."
46 SUGGESTED="adie calculator pathfinder shutterbug"
47 DEPENDS="fox"
48 mkdir -p $fs/usr/lib
49 cp -a $install/usr/include $fs/usr
50 cp -a $install/usr/lib/*.a* $fs/usr/lib
51 cp -a $install/usr/lib/*.la* $fs/usr/lib
52 ;;
53 esac
54 }