wok-next diff 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 diff
1.1 --- a/fox14/receipt Thu Oct 12 22:32:02 2017 +0200 1.2 +++ b/fox14/receipt Wed Nov 01 09:16:07 2017 +0100 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="fox14" 1.8 SOURCE="fox" 1.9 @@ -12,15 +12,15 @@ 1.10 WGET_URL="http://ftp.fox-toolkit.org/pub/$TARBALL" 1.11 SUGGESTED="adie calculator pathfinder shutterbug" 1.12 1.13 -DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib mesa libglu-mesa" 1.14 BUILD_DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib \ 1.15 xorg-libXrender xorg-libXrender-dev fontconfig fontconfig-dev freetype freetype-dev \ 1.16 libpng-dev jpeg-dev tiff-dev xorg-libXft-dev mesa libglu-mesa expat-dev libxml2-dev" 1.17 +SPLIT="fox14 fox14-dev" 1.18 1.19 # Rules to configure and make the package. 1.20 compile_rules() 1.21 { 1.22 - cd $src 1.23 + sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/fxpngio.cpp 1.24 sed -i 's/(gzFile\*)/(gzFile)/' src/FXGZStream.cpp 1.25 ./configure LDFLAGS="-lXft -lfreetype -lfontconfig -lXrender" \ 1.26 --prefix=/usr \ 1.27 @@ -34,7 +34,21 @@ 1.28 # Rules to gen a SliTaz package suitable for Tazpkg. 1.29 genpkg_rules() 1.30 { 1.31 - mkdir -p $fs/usr/lib 1.32 - cp -a $install/usr/bin $fs/usr 1.33 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.34 + case $PACKAGE in 1.35 + fox14) 1.36 + DEPENDS="libpng12 jpeg tiff xorg-libXft bzlib mesa libglu-mesa" 1.37 + mkdir -p $fs/usr/lib 1.38 + cp -a $install/usr/bin $fs/usr 1.39 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.40 + ;; 1.41 + fox14-dev) 1.42 + CAT="x-window|Fox toolkit." 1.43 + SUGGESTED="adie calculator pathfinder shutterbug" 1.44 + DEPENDS="fox" 1.45 + mkdir -p $fs/usr/lib 1.46 + cp -a $install/usr/include $fs/usr 1.47 + cp -a $install/usr/lib/*.a* $fs/usr/lib 1.48 + cp -a $install/usr/lib/*.la* $fs/usr/lib 1.49 + ;; 1.50 + esac 1.51 }