wok-next view leocad/receipt @ rev 20203

qca: tiny patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 03 22:41:01 2017 +0100 (2017-11-03)
parents 17e313b5b9c1
children bce36a298f1e
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 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="$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 }