wok-next annotate lite/receipt @ rev 20458
Unlock x86_64 architecture
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 02 12:12:14 2018 +0200 (2018-03-02) |
parents | 17e313b5b9c1 |
children | a7b1395df64a |
rev | line source |
---|---|
pankso@15998 | 1 # SliTaz package receipt. |
pankso@15998 | 2 |
pankso@15998 | 3 PACKAGE="lite" |
pankso@15998 | 4 VERSION="0.8.10" |
pankso@15998 | 5 CATEGORY="graphics" |
pankso@15998 | 6 SHORT_DESC="LiTE is a Toolkit Engine using DirectFB" |
pankso@15998 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@15998 | 8 LICENSE="GPL2" |
pankso@15998 | 9 SOURCE="LiTE" |
pankso@15998 | 10 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
pankso@15998 | 11 WEB_SITE="http://www.directfb.org/index.php?path=Platform/LiTE" |
pankso@15998 | 12 WGET_URL="http://www.directfb.org/downloads/Libs/$TARBALL" |
pankso@15998 | 13 |
pankso@15998 | 14 DEPENDS="directfb" |
pankso@15998 | 15 BUILD_DEPENDS="directfb-dev" |
pankso@15998 | 16 |
pankso@15998 | 17 # Handle cross compilation. |
pankso@15998 | 18 case "$ARCH" in |
pankso@15998 | 19 arm) |
pascal@17670 | 20 export LDFLAGS="$LDFLAGS -L/cross/arm/sysroot/usr/lib" |
pascal@17670 | 21 export CPPFLAGS="$CPPFLAGS -I/cross/arm/sysroot/usr/include/directfb" ;; |
pankso@15998 | 22 esac |
pankso@15998 | 23 |
pankso@15998 | 24 # Rules to configure and make the package. |
pankso@15998 | 25 compile_rules() |
pankso@15998 | 26 { |
pankso@15998 | 27 patch -Np1 -i ${stuff}/lite_fix_stat_naming.patch || return 1 |
pankso@15998 | 28 patch -Np1 -i ${stuff}/lite_fix_pkgconfig.patch || return 1 |
pankso@15998 | 29 ./configure \ |
pankso@15998 | 30 $CONFIGURE_ARGS && |
pankso@15998 | 31 make && make install |
pankso@15998 | 32 } |
pankso@15998 | 33 |
pankso@15998 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@15998 | 35 genpkg_rules() |
pankso@15998 | 36 { |
pankso@15998 | 37 mkdir -p $fs/usr/lib |
pankso@15998 | 38 cp -a $install/usr/bin $fs/usr |
pankso@15998 | 39 cp -a $install/usr/share $fs/usr |
pankso@15998 | 40 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@15998 | 41 } |