wok annotate compiz-core/receipt @ rev 17845
Add gcc49
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 24 08:43:01 2015 +0100 (2015-03-24) |
parents | 17e313b5b9c1 |
children | d3eb5f4b53ea |
rev | line source |
---|---|
pascal@11219 | 1 # SliTaz package receipt. |
pascal@11219 | 2 |
pascal@11219 | 3 PACKAGE="compiz-core" |
pascal@11219 | 4 VERSION="0.9.4" |
pascal@11219 | 5 CATEGORY="x-window" |
pascal@11219 | 6 SHORT_DESC="Compiz is an OpenGL compositing manager for 3D effect." |
pascal@11219 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15022 | 8 LICENSE="MIT GPL LGPL" |
pascal@11219 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@11219 | 10 WEB_SITE="http://www.compiz.org/" |
pascal@11219 | 11 WGET_URL="http://releases.compiz.org/0.9.4/$TARBALL" |
pascal@11219 | 12 |
pankso@12405 | 13 DEPENDS="librsvg libxslt startup-notification libboost-serialization \ |
pankso@12409 | 14 glibmm mesa emerald dbus dbus-glib" |
pankso@12405 | 15 BUILD_DEPENDS="xorg-dev cmake intltool librsvg-dev libxslt-dev \ |
pankso@12405 | 16 startup-notification-dev libboost-dev libboost-serialization-dev \ |
pankso@12409 | 17 glibmm-dev mesa-dev file dbus-dev dbus-glib-dev" |
pankso@12405 | 18 |
pascal@11219 | 19 # Rules to configure and make the package. |
pascal@11219 | 20 compile_rules() |
pascal@11219 | 21 { |
pascal@12652 | 22 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
psychomaniak@17760 | 24 |
psychomaniak@17760 | 25 patch $src/include/compiz.h <<EOT |
psychomaniak@17760 | 26 --- compiz.h |
psychomaniak@17760 | 27 +++ compiz.h |
psychomaniak@17760 | 28 @@ -0,0 +1 @@ |
psychomaniak@17760 | 29 +#include <dirent.h> |
psychomaniak@17760 | 30 EOT |
pascal@11219 | 31 mkdir build && cd build |
pascal@11219 | 32 cmake \ |
pascal@11219 | 33 -DCMAKE_INSTALL_PREFIX="/usr" \ |
pascal@15950 | 34 -DCOMPIZ_DISABLE_PLUGIN_KDE=ON \ |
pascal@11219 | 35 -DCOMPIZ_DESTDIR="../../install" .. && |
pascal@15297 | 36 make -j 1 && make install && |
pascal@11219 | 37 make findcompiz_install |
pascal@11219 | 38 } |
pascal@11219 | 39 |
pascal@11219 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11219 | 41 genpkg_rules() |
pascal@11219 | 42 { |
pascal@11219 | 43 mkdir -p $fs/usr/lib $fs/usr/share |
pankso@12405 | 44 cp -a $install/usr/bin $fs/usr |
pankso@12405 | 45 cp -a $install/usr/lib/compiz $fs/usr/lib |
pankso@12405 | 46 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12405 | 47 cp -a $install/usr/share/compiz $fs/usr/share |
pascal@11219 | 48 rm -rf $fs/usr/share/compiz/cmake |
pascal@11219 | 49 } |