+++ /dev/null
-# Description: The all in one NES/Famicon Emulator
-# URL: http://fceux.com/
-# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
-# Depends on: zlib libsdl
-
-name=fceux
-version=2.1.2
-release=1
-source=(http://dl.sourceforge.net/project/fceultra/Source%20Code/$version%20src/$name-$version.src.tar.bz2)
-
-build() {
- cd $name-$version
-ls
-exit
- sed -i Makefile \
- -e "s|\$(shell sdl-config --cflags)|-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT|" \
- -e "s|\$(shell sdl-config --libs)|-L$CLFS/usr/lib -lSDL -lpthread|" \
- -e "s|CC=gcc|CC=$CC|" \
- -e "s|CPP=gcc|CPP=$CC|"
-
- make SDLVERSION=$(pkginfo -r $CLFS -i | grep libsdl | awk '{print $2}')
-
- install -d $PKG/usr/{bin,share/$name,man/man6}
- install -m 0755 $name $PKG/usr/share/$name
- install -m 0644 data.zip $PKG/usr/share/$name
- install -m 0644 $name.6.gz $PKG/usr/man/man6
-
- cat > $PKG/usr/bin/$name << __EOF__
-#!/bin/sh
-
-cd /usr/share/$name
-./$name \$@
-cd - >/dev/null
-__EOF__
- chmod +x $PKG/usr/bin/$name
-}