wok-6.x view fceux/receipt @ rev 25530
Up perl-io (1.51)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 27 09:07:28 2023 +0000 (20 months ago) |
parents | 640a2eba2511 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="fceux"
4 VERSION="2.2.3"
5 CATEGORY="games"
6 TAGS="emulator nes"
7 SHORT_DESC="A fast and ultra-compatible NES/Famicom emulator with SDL, OpenGL and SVGALIB support."
8 MAINTAINER="slaxemulator@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://fceux.com/web/home.html"
12 TARBALL="$PACKAGE-$VERSION.src.tar.gz"
13 WGET_URL="$SF_MIRROR/fceultra/$TARBALL"
15 DEPENDS="gtk+ libsdl lua"
16 BUILD_DEPENDS="elfutils-dev gtk+-dev libsdl-dev lua-dev mesa-dev scons zlib-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/fceultra/files/Source%20Code/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*fceux-||;s|.tar.*||'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
32 sed -i 's/void\* gzfile/gzFile_s* gzfile/' src/file.cpp
34 scons
36 # sed -i "s|/usr/local|$DESTDIR/usr|" SConstruct
37 scons --prefix=$DESTDIR/usr install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 }