wok view pcsxr-svn/receipt @ 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
children 75a5178e04be
line source
1 # SliTaz package receipt.
3 PACKAGE="pcsxr-svn"
4 VERSION="58374"
5 CATEGORY="games"
6 SHORT_DESC="A Sony PlayStation emulator based on the PCSX-df Project"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libcdio libglade xorg-libXtst xorg-libXv mesa libsdl"
9 BUILD_DEPENDS="glib-dev libcdio libcdio-dev libglade-dev xorg-libXtst xorg-libXtst-dev xorg-libXv xorg-libXv-dev mesa-dev \
10 zlib-dev libsdl libsdl-dev subversion nasm gettext"
11 WEB_SITE="http://pcsxr.codeplex.com/"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz
18 if [ -f $TARBALL ]; then
19 tar xzf $TARBALL
20 else
21 echo "Cloning revision $VERSION from subversion repository..."
22 svn checkout -r $VERSION \
23 https://pcsxr.svn.codeplex.com/svn $PACKAGE-$VERSION
24 tar czf $TARBALL $PACKAGE-$VERSION
25 fi
26 cd $src/pcsxr
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --enable-libcdio \
32 --enable-opengl \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 _pkg=$WOK/$PACKAGE/$PACKAGE-$VERSION/pcsxr/_pkg
41 mkdir -p $fs/usr/share
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/lib $fs/usr
44 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
45 cp -a $_pkg/usr/share/psemu $fs/usr/share
46 cp -a $_pkg/usr/share/pcsx $fs/usr/share
47 find $fs/usr/lib -name "*.la" -delete
48 }