diff options
author | Félix Saparelli | 2015-06-20 12:13:07 +1200 |
---|---|---|
committer | Félix Saparelli | 2015-06-20 12:13:07 +1200 |
commit | 5c4e9152c001f84b6bd33d68e7724e0d5acc6773 (patch) | |
tree | 4aa21578c7e29befbbbe6284fd7de733c6e48d01 | |
download | aur-glfrontier.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | Makefile-C.patch | 22 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rwxr-xr-x | glfrontier | 3 | ||||
-rw-r--r-- | glfrontier.desktop | 9 |
5 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..02253fa96278 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = glfrontier + pkgdesc = A reverse-engineered version of Frontier Elite 2 to allow OpenGL rendering. + pkgver = 20060623 + pkgrel = 5 + url = http://tom.noflag.org.uk/glfrontier.html + arch = i686 + arch = x86_64 + license = unknown + depends = sdl + depends = mesa + depends = libvorbis + source = http://tom.noflag.org.uk/glfrontier/frontvm3-20060623.tar.bz2 + source = http://tom.noflag.org.uk/misc/frontvm-audio-20060222.tar.bz2 + source = glfrontier.desktop + source = glfrontier + source = Makefile-C.patch + sha512sums = 45c4b5aaf4f7e2caac632c6af8936992684b048df87c183387283fbb627966e077ac4a50d5e4df0072f025e755a82e43bb9684cb81d1ac4080fc0042d2a36159 + sha512sums = 50fdd3e7ac5547a0ca2081ab0350a8b7f5ecbeed015d2f3b1947777921fd145cc4475e5fc36910898577d1c9c3fec87d11e0e18240c03490991441c2bd484f6a + sha512sums = f3a703684d06ae1e936c5e86b2105266f0ce26fc605d433e653c6376b1dd24bee6d08489867aec1b3a3e28e7e3c9653299bd42ba724086c89139165550e0806c + sha512sums = 3916deb63352d14b4f3ff020892ce66ad0a4fdd2f232302c1d381b1e8c08537ef21494a977ec91e71097aaa0d19aaef5c0cfb957e78430eee4a11e557c2b6dcc + sha512sums = 90820bef6936037721d7e47c8b5b7ffc3712121340059b109588f523f2a3ba554b5a6efec9cb8ae4a9bfde2852de35aaf7ed992af062192c3a311bf8d92717c5 + +pkgname = glfrontier + diff --git a/Makefile-C.patch b/Makefile-C.patch new file mode 100644 index 000000000000..59fd1fe45013 --- /dev/null +++ b/Makefile-C.patch @@ -0,0 +1,22 @@ +--- frontvm3-20060623/Makefile-C 2006-06-24 11:08:29.000000000 +1200 ++++ Makefile-C 2014-06-07 00:17:02.531086333 +1200 +@@ -1,5 +1,5 @@ + export CFLAGS = -O2 -g -Wall -DOGG_MUSIC +-export LIBS = -lGL -lGLU -lvorbisfile -lvorbis -logg ++export LIBS = -lGL -lGLU -lvorbisfile -lvorbis -logg -lm + export FE2OBJS = ../fe2.part1.o ../fe2.part2.o + + THIS=Makefile-C +@@ -25,10 +25,10 @@ + fe2obj: + as68k/as68k --output-c fe2.s + # this bit can be optimised because it is lots of small functions +- $(CC) -DPART1 -O1 -fomit-frame-pointer -Wall -Wno-unused -s `sdl-config --cflags` -c fe2.s.c -o fe2.part1.o ++ $(CC) -DPART1 -O2 -fomit-frame-pointer -Wall -Wno-unused -s `sdl-config --cflags` -c fe2.s.c -o fe2.part1.o + # this can't unless you have shitloads of memory and a fuck meaty + # machine, because it is a huge stinking function. +- $(CC) -DPART2 -O0 -fomit-frame-pointer -Wall -Wno-unused -s `sdl-config --cflags` -c fe2.s.c -o fe2.part2.o ++ $(CC) -DPART2 -O2 -fomit-frame-pointer -Wall -Wno-unused -s `sdl-config --cflags` -c fe2.s.c -o fe2.part2.o + + clean: + $(MAKE) -C src/ clean diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ef0a5fd883e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Félix Saparelli <aur@passcod.name> +# Contributor: Eric Forgeot <http://ifiction.free.fr> +pkgname=glfrontier +pkgver=20060623 +pkgrel=5 +pkgdesc="A reverse-engineered version of Frontier Elite 2 to allow OpenGL rendering." +arch=('i686' 'x86_64') +url="http://tom.noflag.org.uk/glfrontier.html" +license=('unknown') +depends=('sdl' 'mesa' 'libvorbis') +source=('http://tom.noflag.org.uk/glfrontier/frontvm3-20060623.tar.bz2' + 'http://tom.noflag.org.uk/misc/frontvm-audio-20060222.tar.bz2' + 'glfrontier.desktop' + 'glfrontier' + 'Makefile-C.patch') +sha512sums=('45c4b5aaf4f7e2caac632c6af8936992684b048df87c183387283fbb627966e077ac4a50d5e4df0072f025e755a82e43bb9684cb81d1ac4080fc0042d2a36159' + '50fdd3e7ac5547a0ca2081ab0350a8b7f5ecbeed015d2f3b1947777921fd145cc4475e5fc36910898577d1c9c3fec87d11e0e18240c03490991441c2bd484f6a' + 'f3a703684d06ae1e936c5e86b2105266f0ce26fc605d433e653c6376b1dd24bee6d08489867aec1b3a3e28e7e3c9653299bd42ba724086c89139165550e0806c' + '3916deb63352d14b4f3ff020892ce66ad0a4fdd2f232302c1d381b1e8c08537ef21494a977ec91e71097aaa0d19aaef5c0cfb957e78430eee4a11e557c2b6dcc' + '90820bef6936037721d7e47c8b5b7ffc3712121340059b109588f523f2a3ba554b5a6efec9cb8ae4a9bfde2852de35aaf7ed992af062192c3a311bf8d92717c5') + +build() { + cd $srcdir/frontvm3-$pkgver + patch Makefile-C ../Makefile-C.patch + make -f Makefile-C || return 1 +} + +package() { + cd $srcdir + mkdir -p $pkgdir/usr/share/$pkgname/savs + chmod 777 $pkgdir/usr/share/$pkgname/savs + + install -Dm644 {frontvm3-$pkgver,$pkgdir/usr/share/$pkgname}/README + install -Dm644 {frontvm3-$pkgver,$pkgdir/usr/share/$pkgname}/fe2.s.bin + install -Dm755 {frontvm3-$pkgver,$pkgdir/usr/share/$pkgname}/frontier + install -Dm644 {,$pkgdir/usr/share/applications/}${pkgname}.desktop + install -Dm755 {,$pkgdir/usr/bin/}$pkgname + + cp -dr --no-preserve=ownership frontvm-audio-20060222/{music,sfx} $pkgdir/usr/share/$pkgname/ +} diff --git a/glfrontier b/glfrontier new file mode 100755 index 000000000000..ba31319c5ea9 --- /dev/null +++ b/glfrontier @@ -0,0 +1,3 @@ +#!/usr/bin/sh +cd /usr/share/glfrontier +./frontier $@ diff --git a/glfrontier.desktop b/glfrontier.desktop new file mode 100644 index 000000000000..4f5d79fdf18e --- /dev/null +++ b/glfrontier.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=GL Frontier +GenericName=GL Frontier +Comment=A port of Frontier Elite 2 to openGL +Exec=glfrontier +Categories=Game; + |