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