wok-stable rev 6801

Added pcsxr-svn. A playstation emulator. I'm using svn since we can't download the tar.gz directly. Its mess in archlinux to download it too.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Oct 19 04:15:21 2010 +0000 (2010-10-19)
parents 1ac39c4ea23a
children 75a5178e04be
files pcsxr-svn/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pcsxr-svn/receipt	Tue Oct 19 04:15:21 2010 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pcsxr-svn"
     1.7 +VERSION="58374"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="A Sony PlayStation emulator based on the PCSX-df Project"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="libcdio libglade xorg-libXtst xorg-libXv mesa libsdl"
    1.12 +BUILD_DEPENDS="glib-dev libcdio libcdio-dev libglade-dev xorg-libXtst xorg-libXtst-dev xorg-libXv xorg-libXv-dev mesa-dev \
    1.13 +zlib-dev libsdl libsdl-dev subversion nasm gettext"
    1.14 +WEB_SITE="http://pcsxr.codeplex.com/"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
    1.20 +	TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
    1.21 +	if [ -f $TARBALL ]; then
    1.22 +		tar xzf $TARBALL
    1.23 +	else
    1.24 +		echo "Cloning revision $VERSION from subversion repository..."
    1.25 +		svn checkout -r $VERSION \
    1.26 +			https://pcsxr.svn.codeplex.com/svn $PACKAGE-$VERSION
    1.27 +		tar czf $TARBALL $PACKAGE-$VERSION
    1.28 +	fi
    1.29 +	cd $src/pcsxr
    1.30 +	./configure \
    1.31 +		--prefix=/usr \
    1.32 +		--infodir=/usr/share/info \
    1.33 +		--mandir=/usr/share/man \
    1.34 +		--enable-libcdio \
    1.35 +		--enable-opengl \
    1.36 +		$CONFIGURE_ARGS &&
    1.37 +	make && make DESTDIR=$PWD/_pkg install
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	_pkg=$WOK/$PACKAGE/$PACKAGE-$VERSION/pcsxr/_pkg
    1.44 +	mkdir -p $fs/usr/share
    1.45 +	cp -a $_pkg/usr/bin $fs/usr
    1.46 +	cp -a $_pkg/usr/lib $fs/usr
    1.47 +	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.48 +	cp -a $_pkg/usr/share/psemu $fs/usr/share
    1.49 +	cp -a $_pkg/usr/share/pcsx $fs/usr/share
    1.50 +	find $fs/usr/lib -name "*.la" -delete
    1.51 +}
    1.52 +