wok-current view leocad/receipt @ rev 19870
linld: fix progname
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 30 15:54:03 2017 +0200 (2017-03-30) |
parents | 17e313b5b9c1 |
children | eeba7ab1dffe |
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 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl -lpng12"
24 make PREFIX="/usr" config &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib/leocad \
32 $fs/usr/bin
34 # Create the shell script launcher
35 cat > $fs/usr/bin/leocad << EOF
36 #!/bin/sh
37 LEOCAD_LIB=/usr/share/leocad \\
38 /usr/lib/leocad/leocad
39 EOF
41 chmod +x $fs/usr/bin/leocad
42 cp -a $install/* $fs
43 }