wok view compiz-core/receipt @ rev 12652

codeblocks, compiz-core: add LDFLAGS for Binutils 2.22
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 30 09:47:26 2012 +0200 (2012-04-30)
parents 4db4ca0c9c3e
children 5286a067ac76
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz-core"
4 VERSION="0.9.4"
5 CATEGORY="x-window"
6 SHORT_DESC="Compiz is an OpenGL compositing manager for 3D effect."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.compiz.org/"
10 WGET_URL="http://releases.compiz.org/0.9.4/$TARBALL"
12 DEPENDS="librsvg libxslt startup-notification libboost-serialization \
13 glibmm mesa emerald dbus dbus-glib"
14 BUILD_DEPENDS="xorg-dev cmake intltool librsvg-dev libxslt-dev \
15 startup-notification-dev libboost-dev libboost-serialization-dev \
16 glibmm-dev mesa-dev file dbus-dev dbus-glib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
22 export LDFLAGS="-Wl,--copy-dt-needed-entries"
24 cd $src
25 mkdir build && cd build
26 cmake \
27 -DCMAKE_INSTALL_PREFIX="/usr" \
28 -DCOMPIZ_DISABLE_PLUGIN_KDE=ON \
29 -DCOMPIZ_DESTDIR="../../install" .. &&
30 make && make install &&
31 make findcompiz_install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/share
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/compiz $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 cp -a $install/usr/share/compiz $fs/usr/share
42 rm -rf $fs/usr/share/compiz/cmake
43 }