wok annotate leocad/receipt @ rev 16979

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