wok-6.x annotate pcsxr-svn/receipt @ rev 8116

Fixed pcsxr-svn.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 23 20:01:37 2011 +0000 (2011-01-23)
parents b89a598ef281
children 068c73391102
rev   line source
slaxemulator@6801 1 # SliTaz package receipt.
slaxemulator@6801 2
slaxemulator@6801 3 PACKAGE="pcsxr-svn"
slaxemulator@8110 4 VERSION="62214"
slaxemulator@6801 5 CATEGORY="games"
slaxemulator@6801 6 SHORT_DESC="A Sony PlayStation emulator based on the PCSX-df Project"
slaxemulator@6801 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@6801 8 DEPENDS="libcdio libglade xorg-libXtst xorg-libXv mesa libsdl"
slaxemulator@8116 9 BUILD_DEPENDS="glib-dev libcdio libcdio-dev libglade-dev gtk+-dev xorg-libXtst xorg-libXtst-dev xorg-libXv xorg-libXv-dev mesa-dev \
slaxemulator@8116 10 zlib-dev libsdl libsdl-dev subversion nasm gettext intltool sed tar"
slaxemulator@6801 11 WEB_SITE="http://pcsxr.codeplex.com/"
slaxemulator@6801 12
slaxemulator@6801 13 # Rules to configure and make the package.
slaxemulator@6801 14 compile_rules()
slaxemulator@6801 15 {
slaxemulator@6801 16 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
slaxemulator@8110 17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.lzma
slaxemulator@8116 18 #NEW_TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar
slaxemulator@8111 19 [ -L /bin/tar ] && tazpkg get-install tar --forced
slaxemulator@6801 20 if [ -f $TARBALL ]; then
slaxemulator@8116 21 #cp $TARBALL $PACKAGE-$VERSION.tar.lzma
slaxemulator@8116 22 #unlzma $PACKAGE-$VERSION.tar.lzma && tar xf $PACKAGE-$VERSION.tar
slaxemulator@8116 23 #if [ -f $PACKAGE-$VERSION.tar ]; then
slaxemulator@8116 24 # rm -f $PACKAGE-$VERSION.tar
slaxemulator@8116 25 #fi
slaxemulator@8116 26 tar -x -f $TARBALL
slaxemulator@6801 27 else
slaxemulator@6801 28 echo "Cloning revision $VERSION from subversion repository..."
slaxemulator@8116 29 echo "t" | svn co https://pcsxr.svn.codeplex.com/svn/pcsxr -r $VERSION $PACKAGE-$VERSION
slaxemulator@8116 30 #tar cf $NEW_TARBALL $PACKAGE-$VERSION
slaxemulator@8116 31 #lzma-alone e $NEW_TARBALL $TARBALL
slaxemulator@8116 32 #if [ -f $NEW_TARBALL ]; then
slaxemulator@8116 33 # rm -f $NEW_TARBALL
slaxemulator@8116 34 #fi
slaxemulator@8111 35 tar -c --lzma -f $TARBALL $PACKAGE-$VERSION
slaxemulator@6801 36 fi
slaxemulator@8116 37 cd $src
slaxemulator@8116 38 ./autogen.sh \
slaxemulator@6801 39 --prefix=/usr \
slaxemulator@6801 40 --infodir=/usr/share/info \
slaxemulator@6801 41 --mandir=/usr/share/man \
slaxemulator@6801 42 --enable-libcdio \
slaxemulator@6801 43 --enable-opengl \
slaxemulator@6801 44 $CONFIGURE_ARGS &&
slaxemulator@6801 45 make && make DESTDIR=$PWD/_pkg install
slaxemulator@6801 46 }
slaxemulator@6801 47
slaxemulator@6801 48 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6801 49 genpkg_rules()
slaxemulator@6801 50 {
slaxemulator@6801 51 mkdir -p $fs/usr/share
slaxemulator@6801 52 cp -a $_pkg/usr/bin $fs/usr
slaxemulator@6801 53 cp -a $_pkg/usr/lib $fs/usr
slaxemulator@6801 54 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
slaxemulator@6801 55 cp -a $_pkg/usr/share/psemu $fs/usr/share
slaxemulator@6801 56 cp -a $_pkg/usr/share/pcsx $fs/usr/share
slaxemulator@6801 57 find $fs/usr/lib -name "*.la" -delete
slaxemulator@6801 58 }
slaxemulator@6801 59