wok view leocad/receipt @ rev 15945
libpng: add to ARM port
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Feb 23 02:23:54 2014 +0100 (2014-02-23) |
parents | 6b09507225ec |
children | 17e313b5b9c1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="leocad"
4 VERSION="0.76.2"
5 CATEGORY="games"
6 SHORT_DESC="A CAD program that uses toy bricks."
7 MAINTAINER="rcx@zoominternet.net"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.tgz"
10 WEB_SITE="http://code.google.com/p/leocad/"
11 WGET_URL="http://leocad.googlecode.com/files/$TARBALL"
13 DEPENDS="glibc-base gcc-lib-base glib libgio expat zlib leocad-pieces \
14 gtk+ atk cairo pixman pango jpeg libpng fontconfig freetype libxcb xcb-util \
15 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
16 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXft xorg-libXinerama \
17 xorg-libXrender mesa libglu-mesa"
18 BUILD_DEPENDS="mesa-dev gtk+-dev glib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 export LDFLAGS="-Wl,--copy-dt-needed-entries -lX11 -ldl"
25 make PREFIX="/usr" config &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/leocad \
33 $fs/usr/bin
35 # Create the shell script launcher
36 cat > $fs/usr/bin/leocad << EOF
37 #!/bin/sh
38 LEOCAD_LIB=/usr/share/leocad \\
39 /usr/lib/leocad/leocad
40 EOF
42 chmod +x $fs/usr/bin/leocad
43 cp -a $install/* $fs
44 }