| 1 | # Description: Stella is a multi-platform Atari 2600 VCS emulator |
| 2 | # URL: http://stella.sourceforge.net/ |
| 3 | # Maintainer: Jose V Beneyto, sepen at crux dot nu |
| 4 | # Packager: Jose V Beneyto, sepen at crux dot nu |
| 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 6 | # Depends on: libsdl |
| 7 | |
| 8 | name=stella |
| 9 | version=3.0 |
| 10 | release=1 |
| 11 | source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version-src.tar.gz \ |
| 12 | $name-$version.cross_compile.patch) |
| 13 | |
| 14 | build() { |
| 15 | cd $name-$version |
| 16 | |
| 17 | patch -p1 -i $SRC/$name-$version.cross_compile.patch |
| 18 | sed -i configure \ |
| 19 | -e "s|^INCLUDES +=|INCLUDES += -I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT|" \ |
| 20 | -e "s|^LIBS +=|LIBS += -L$CLFS/usr/lib -lSDL -lpthread|" |
| 21 | |
| 22 | ./configure --build=$CHOST \ |
| 23 | --host=$CTARGET \ |
| 24 | --prefix=/usr \ |
| 25 | --disable-debugger \ |
| 26 | --x-libraries=/usr/lib \ |
| 27 | --with-sdl-prefix=$CLFS/usr |
| 28 | |
| 29 | sed -i Makefile \ |
| 30 | -e 's|all: tags|all:|' \ |
| 31 | -e 's|$(INSTALL) -c -s|$(INSTALL)|' |
| 32 | |
| 33 | make |
| 34 | make DESTDIR=$PKG install |
| 35 | |
| 36 | install -D -m 0644 src/common/$name.xpm $PKG/usr/share/pixmaps/$name.xpm |
| 37 | rm -rf $PKG/usr/share/{doc,icons} |
| 38 | } |