wok annotate leocad/receipt @ rev 20225
grub: add ext4 patch (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 01 11:50:30 2018 +0100 (2018-03-01) |
parents | 17e313b5b9c1 |
children | eeba7ab1dffe |
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 { |
pascal@19716 | 23 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11 -ldl -lpng12" |
slaxemulator@9310 | 24 make PREFIX="/usr" config && |
pankso@10744 | 25 make && make install |
rcx@3709 | 26 } |
rcx@3709 | 27 |
rcx@3709 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
rcx@3709 | 29 genpkg_rules() |
rcx@3709 | 30 { |
pankso@10744 | 31 mkdir -p $fs/usr/lib/leocad \ |
pankso@10744 | 32 $fs/usr/bin |
slaxemulator@9310 | 33 |
pankso@10744 | 34 # Create the shell script launcher |
pankso@10744 | 35 cat > $fs/usr/bin/leocad << EOF |
pankso@10744 | 36 #!/bin/sh |
pankso@10744 | 37 LEOCAD_LIB=/usr/share/leocad \\ |
pankso@10744 | 38 /usr/lib/leocad/leocad |
pankso@10744 | 39 EOF |
pascal@13796 | 40 |
pankso@10744 | 41 chmod +x $fs/usr/bin/leocad |
pankso@10744 | 42 cp -a $install/* $fs |
rcx@3709 | 43 } |