wok annotate pcsxr-svn/receipt @ rev 7660
Up: postfix to 2.7.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Dec 15 20:54:26 2010 +0000 (2010-12-15) |
parents | 75a5178e04be |
children | 0307e0345907 |
rev | line source |
---|---|
slaxemulator@6801 | 1 # SliTaz package receipt. |
slaxemulator@6801 | 2 |
slaxemulator@6801 | 3 PACKAGE="pcsxr-svn" |
slaxemulator@7392 | 4 VERSION="60142" |
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@6801 | 9 BUILD_DEPENDS="glib-dev libcdio libcdio-dev libglade-dev xorg-libXtst xorg-libXtst-dev xorg-libXv xorg-libXv-dev mesa-dev \ |
slaxemulator@6801 | 10 zlib-dev libsdl libsdl-dev subversion nasm gettext" |
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@6801 | 17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.gz |
slaxemulator@6801 | 18 if [ -f $TARBALL ]; then |
slaxemulator@6801 | 19 tar xzf $TARBALL |
slaxemulator@6801 | 20 else |
slaxemulator@6801 | 21 echo "Cloning revision $VERSION from subversion repository..." |
slaxemulator@6802 | 22 echo "t" | svn co https://pcsxr.svn.codeplex.com/svn -r $VERSION $PACKAGE-$VERSION |
slaxemulator@6801 | 23 tar czf $TARBALL $PACKAGE-$VERSION |
slaxemulator@6801 | 24 fi |
slaxemulator@6801 | 25 cd $src/pcsxr |
slaxemulator@6801 | 26 ./configure \ |
slaxemulator@6801 | 27 --prefix=/usr \ |
slaxemulator@6801 | 28 --infodir=/usr/share/info \ |
slaxemulator@6801 | 29 --mandir=/usr/share/man \ |
slaxemulator@6801 | 30 --enable-libcdio \ |
slaxemulator@6801 | 31 --enable-opengl \ |
slaxemulator@6801 | 32 $CONFIGURE_ARGS && |
slaxemulator@6801 | 33 make && make DESTDIR=$PWD/_pkg install |
slaxemulator@6801 | 34 } |
slaxemulator@6801 | 35 |
slaxemulator@6801 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6801 | 37 genpkg_rules() |
slaxemulator@6801 | 38 { |
slaxemulator@6801 | 39 _pkg=$WOK/$PACKAGE/$PACKAGE-$VERSION/pcsxr/_pkg |
slaxemulator@6801 | 40 mkdir -p $fs/usr/share |
slaxemulator@6801 | 41 cp -a $_pkg/usr/bin $fs/usr |
slaxemulator@6801 | 42 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6801 | 43 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
slaxemulator@6801 | 44 cp -a $_pkg/usr/share/psemu $fs/usr/share |
slaxemulator@6801 | 45 cp -a $_pkg/usr/share/pcsx $fs/usr/share |
slaxemulator@6801 | 46 find $fs/usr/lib -name "*.la" -delete |
slaxemulator@6801 | 47 } |
slaxemulator@6801 | 48 |