wok annotate fltk/receipt @ rev 19177
Up sc-im (20160603)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Fri Jun 03 20:48:12 2016 +0100 (2016-06-03) |
parents | 5922ffb18ae9 |
children | 9e2e108fff96 |
rev | line source |
---|---|
pankso@627 | 1 # SliTaz package receipt. |
pankso@627 | 2 |
pankso@627 | 3 PACKAGE="fltk" |
pankso@16084 | 4 VERSION="1.3.2" |
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" |
devl547@11260 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
pankso@627 | 10 WEB_SITE="http://www.fltk.org/" |
pankso@16084 | 11 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL" |
pankso@16357 | 12 HOST_ARCH="i486 arm" |
pankso@627 | 13 |
pascal@13796 | 14 DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \ |
al@18534 | 15 xorg-libXext xorg-libXft xorg-libXrender zlib gcc-lib-base mesa libglu-mesa" |
pascal@13796 | 16 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev" |
pascal@13796 | 17 |
pankso@16357 | 18 # Handle SliTaz arch |
pankso@16357 | 19 case "$SLITAZ_ARCH" in |
pankso@16359 | 20 arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;; |
pankso@16357 | 21 esac |
pankso@16357 | 22 |
pankso@16085 | 23 # Handle cross compilation. |
pankso@16084 | 24 case "$ARCH" in |
pascal@16364 | 25 #i?86) |
pascal@16364 | 26 # ARCH_ARGS="--with-archflags=i386" ;; |
pankso@16357 | 27 arm) |
pankso@16357 | 28 BUILD_DEPENDS="jpeg-dev libpng-dev xorg-libXft-dev" |
pankso@16358 | 29 ARCH_ARGS="--x-includes=/cross/$ARCH/sysroot/usr/include \ |
pankso@16358 | 30 --x-libraries=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16084 | 31 esac |
pankso@16084 | 32 |
pankso@627 | 33 # Rules to configure and make the package. |
pankso@627 | 34 compile_rules() |
pankso@627 | 35 { |
pankso@16357 | 36 sed -i \ |
pankso@16357 | 37 -e 's/$(LINKFLTK)/$(LINKSHARED)/' \ |
pankso@16357 | 38 -e 's/$(LINKFLTKIMG)/$(LINKSHARED)/' test/Makefile |
pankso@16357 | 39 ./configure ${ARCH_ARGS} \ |
pankso@627 | 40 --enable-shared \ |
pankso@627 | 41 --enable-xft \ |
slaxemulator@6557 | 42 --enable-threads \ |
pascal@1492 | 43 $CONFIGURE_ARGS && |
pankso@16357 | 44 make lib $MAKEFLAGS && |
pascal@13796 | 45 make DESTDIR=$DESTDIR install |
pankso@627 | 46 } |
pankso@627 | 47 |
pankso@627 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@627 | 49 genpkg_rules() |
pankso@627 | 50 { |
pankso@627 | 51 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps |
pascal@13796 | 52 cp -a $install/usr/bin/fluid $fs/usr/bin |
pascal@13796 | 53 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@627 | 54 cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png |
pankso@627 | 55 } |