wok diff cgames/receipt @ rev 13950

add libwmf libwmf-dev
author ernia <monghitri@aruba.it>
date Tue Jan 29 21:00:25 2013 +0000 (2013-01-29)
parents
children 00c51b3a010b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cgames/receipt	Tue Jan 29 21:00:25 2013 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="cgames"
     1.7 +VERSION="2.2"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Games for the Linux Console."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.muppetlabs.com/~breadbox/software/cgames.html"
    1.13 +WGET_URL="http://www.muppetlabs.com/~breadbox/pub/software/$TARBALL"
    1.14 +DEPENDS="ncurses"
    1.15 +BUILD_DEPENDS="ncurses-dev"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	sed -i	-e 's|install -.*\$|&(destdir)/$|' \
    1.22 +		-e "s|^prefix|destdir = $DESTDIR\\n&|" \
    1.23 +		-e 's/g games/g root/' */Makefile.in
    1.24 +	sed -i 's/.* getline(.*/#define getline mygetline\n&/' */fileread.h
    1.25 +	./configure --prefix=/usr \
    1.26 +	--mandir=/usr/share/man \
    1.27 +	--datadir=/usr/share \
    1.28 +	--disable-mouse \
    1.29 +	--with-ncurses \
    1.30 +	$CONFIGURE_ARGS &&
    1.31 +	make &&
    1.32 +	make install
    1.33 +}
    1.34 +
    1.35 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 +genpkg_rules()
    1.37 +{
    1.38 +	mkdir -p $fs/usr/share
    1.39 +	cp -a $_pkg/usr/games $fs/usr
    1.40 +	cp -a $_pkg/usr/share/cblocks $fs/usr/share
    1.41 +	cp -a $_pkg/usr/share/csokoban $fs/usr/share
    1.42 +}
    1.43 +