wok-current annotate fceux/receipt @ rev 25127
updated arpwatch (2.1a15 -> 3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 28 16:41:22 2022 +0100 (2022-06-28) |
parents | 640a2eba2511 |
children |
rev | line source |
---|---|
slaxemulator@7174 | 1 # SliTaz package receipt. |
slaxemulator@7174 | 2 |
slaxemulator@7174 | 3 PACKAGE="fceux" |
Hans-G?nter@22716 | 4 VERSION="2.2.3" |
slaxemulator@7174 | 5 CATEGORY="games" |
Hans-G?nter@22716 | 6 TAGS="emulator nes" |
Hans-G?nter@22716 | 7 SHORT_DESC="A fast and ultra-compatible NES/Famicom emulator with SDL, OpenGL and SVGALIB support." |
slaxemulator@7174 | 8 MAINTAINER="slaxemulator@gmail.com" |
pascal@15002 | 9 LICENSE="GPL2" |
pascal@24746 | 10 WEB_SITE="https://fceux.com/web/home.html" |
Hans-G?nter@22716 | 11 |
Hans-G?nter@22716 | 12 TARBALL="$PACKAGE-$VERSION.src.tar.gz" |
slaxemulator@7174 | 13 WGET_URL="$SF_MIRROR/fceultra/$TARBALL" |
slaxemulator@7174 | 14 |
Hans-G?nter@22716 | 15 DEPENDS="gtk+ libsdl lua" |
Hans-G?nter@22716 | 16 BUILD_DEPENDS="elfutils-dev gtk+-dev libsdl-dev lua-dev mesa-dev scons zlib-dev" |
pascal@13796 | 17 |
pascal@24385 | 18 # What is the latest version available today? |
pascal@24385 | 19 current_version() |
pascal@24385 | 20 { |
pascal@24385 | 21 wget -O - https://sourceforge.net/projects/fceultra/files/Source%20Code/ 2>/dev/null | \ |
pascal@24385 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24385 | 23 sed '/scope="row/!d;s|.*fceux-||;s|.tar.*||' |
pascal@24385 | 24 } |
pascal@24385 | 25 |
slaxemulator@7174 | 26 # Rules to configure and make the package. |
slaxemulator@7174 | 27 compile_rules() |
slaxemulator@7174 | 28 { |
pascal@12758 | 29 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pascal@17670 | 30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11" |
Hans-G?nter@22716 | 31 |
slaxemulator@12133 | 32 sed -i 's/void\* gzfile/gzFile_s* gzfile/' src/file.cpp |
Hans-G?nter@22716 | 33 |
slaxemulator@7174 | 34 scons |
slaxemulator@7174 | 35 |
Hans-G?nter@22716 | 36 # sed -i "s|/usr/local|$DESTDIR/usr|" SConstruct |
Hans-G?nter@22716 | 37 scons --prefix=$DESTDIR/usr install |
slaxemulator@7174 | 38 } |
slaxemulator@7174 | 39 |
slaxemulator@7174 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7174 | 41 genpkg_rules() |
slaxemulator@7174 | 42 { |
slaxemulator@7174 | 43 mkdir -p $fs/usr |
Hans-G?nter@22716 | 44 cp -a $install/usr/bin $fs/usr |
slaxemulator@7174 | 45 } |