wok annotate fltk/receipt @ rev 24145
ventoy: set arch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 17 10:14:59 2021 +0000 (2021-11-17) |
parents | cd0ceb20abac |
children | bfabe25c21ff |
rev | line source |
---|---|
pankso@627 | 1 # SliTaz package receipt. |
pankso@627 | 2 |
pankso@627 | 3 PACKAGE="fltk" |
Hans-G?nter@22765 | 4 VERSION="1.3.5" |
pankso@627 | 5 CATEGORY="system-tools" |
pankso@627 | 6 SHORT_DESC="Fast Light Tool Kit (provide fluid)." |
pankso@627 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15004 | 8 LICENSE="LGPL2" |
pascal@20669 | 9 WEB_SITE="https://www.fltk.org/" |
Hans-G?nter@20926 | 10 |
Hans-G?nter@22765 | 11 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
Hans-G?nter@22765 | 12 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL" |
pankso@627 | 13 |
Hans-G?nter@22765 | 14 DEPENDS="expat fontconfig freetype gcc-lib-base jpeg libglu-mesa libpng mesa |
Hans-G?nter@22765 | 15 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft |
Hans-G?nter@22765 | 16 xorg-libXrender zlib" |
Hans-G?nter@22765 | 17 BUILD_DEPENDS="jpeg-dev libglu-mesa libglu-mesa-dev libpng-dev mesa mesa-dev |
Hans-G?nter@22765 | 18 slitaz-tools xorg-libXft-dev xorg-libXinerama-dev" |
Hans-G?nter@22765 | 19 |
Hans-G?nter@20926 | 20 HOST_ARCH="i486 arm" |
pascal@13796 | 21 |
pankso@16357 | 22 # Handle SliTaz arch |
pankso@16357 | 23 case "$SLITAZ_ARCH" in |
pankso@16359 | 24 arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;; |
pankso@16357 | 25 esac |
pankso@16357 | 26 |
pankso@16085 | 27 # Handle cross compilation. |
pankso@16084 | 28 case "$ARCH" in |
pascal@16364 | 29 #i?86) |
pascal@16364 | 30 # ARCH_ARGS="--with-archflags=i386" ;; |
pankso@16357 | 31 arm) |
pankso@16357 | 32 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev" |
pankso@16358 | 33 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \ |
pankso@16358 | 34 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16084 | 35 esac |
pankso@16084 | 36 |
pankso@627 | 37 # Rules to configure and make the package. |
pankso@627 | 38 compile_rules() |
pankso@627 | 39 { |
Hans-G?nter@20926 | 40 # By now (1.3.4.2) contained in sources |
Hans-G?nter@20926 | 41 # patch -p0 < $stuff/Fl_XFont_On_Demand.patch |
Hans-G?nter@20926 | 42 |
Hans-G?nter@22765 | 43 ./configure \ |
Hans-G?nter@22765 | 44 ${ARCH_ARGS} \ |
Hans-G?nter@22765 | 45 --enable-shared \ |
Hans-G?nter@22765 | 46 --enable-xft \ |
Hans-G?nter@22765 | 47 --enable-threads \ |
pascal@1492 | 48 $CONFIGURE_ARGS && |
Hans-G?nter@20926 | 49 make -j 1 lib $MAKEFLAGS && |
pascal@13796 | 50 make DESTDIR=$DESTDIR install |
pankso@627 | 51 } |
pankso@627 | 52 |
pankso@627 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@627 | 54 genpkg_rules() |
pankso@627 | 55 { |
Hans-G?nter@22765 | 56 mkdir -p $fs/usr/bin |
Hans-G?nter@22765 | 57 mkdir -p $fs/usr/lib |
Hans-G?nter@22765 | 58 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@22765 | 59 |
Hans-G?nter@22765 | 60 cp -a $install/usr/bin/fluid $fs/usr/bin |
Hans-G?nter@22765 | 61 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22765 | 62 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png |
pankso@627 | 63 } |