summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-sports/miniracer
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-sports/miniracer')
-rw-r--r--games-sports/miniracer/Manifest1
-rw-r--r--games-sports/miniracer/files/miniracer-1.04-ldflags.patch48
-rw-r--r--games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch23
-rw-r--r--games-sports/miniracer/metadata.xml8
-rw-r--r--games-sports/miniracer/miniracer-1.04.ebuild42
5 files changed, 122 insertions, 0 deletions
diff --git a/games-sports/miniracer/Manifest b/games-sports/miniracer/Manifest
new file mode 100644
index 00000000000..8ec0be480cc
--- /dev/null
+++ b/games-sports/miniracer/Manifest
@@ -0,0 +1 @@
+DIST miniracer-1.04.tar.gz 5315353 SHA256 474ab98fd952df6233e51a5080bae655012ad573ff22cb42eca2ceaf97fe385d SHA512 6dc34371b6ea2d67c4a7d86b1200c9e7c7d56ef6b91af5ec4b0648da11dcfe6e125f6dc401a85e4c5bd3af2980d5a54b322c5466f96b7e21683e85ec4a7b0d6c WHIRLPOOL 79a1bccbb1106ccfdcaa5a3af07fc51e41783ff0e699d27721524e5efbc0908c859040c5bbb11e5bc6dbdee19e53d2dc1bad944ab2de397974554930c5c1ebf1
diff --git a/games-sports/miniracer/files/miniracer-1.04-ldflags.patch b/games-sports/miniracer/files/miniracer-1.04-ldflags.patch
new file mode 100644
index 00000000000..4c37dc9e1aa
--- /dev/null
+++ b/games-sports/miniracer/files/miniracer-1.04-ldflags.patch
@@ -0,0 +1,48 @@
+--- Makefile.old 2010-10-13 12:41:01.000000000 +0200
++++ Makefile 2010-10-13 12:56:04.000000000 +0200
+@@ -10,13 +10,12 @@
+
+ BUILDDIR=obj
+
+-CC=gcc
+ DEFS=-DVIDMODEXT_GAMMA_RAMP -DSOUND
+-INCLUDES= -I. -I/usr/X11R6/include -I/usr/include/SDL
+-CFLAGS=$(DEFS) $(INCLUDES) -O3 -march=i486 -ffast-math -fexpensive-optimizations
++INCLUDES= -I. -I/usr/X11R6/include $(shell sdl-config --cflags)
++CFLAGS=$(DEFS) $(INCLUDES) @CFLAGS@
+
+ GL_LDFLAGS=-L/usr/X11R6/lib -lGL -lXxf86dga -lXxf86vm -lX11 -lXext -lm
+-LDFLAGS=$(GL_LDFLAGS) -ldl -lSDL -lSDL_mixer -lpthread
++LDLIBS=$(GL_LDFLAGS) -ldl -lSDL_mixer $(shell sdl-config --libs)
+
+ #############################################################################
+ # SETUP AND BUILD
+@@ -43,15 +42,16 @@
+ build_release: engine.glx
+
+ install:
+- install -d $(DESTDIR)/usr/bin
++ install -d $(DESTDIR)@GAMES_BINDIR@
+ install -d $(DESTDIR)/usr/share/man/man6
+ install -d $(DESTDIR)/usr/share/games/MiniRacer
+ install -d $(DESTDIR)/usr/share/games/MiniRacer/data
+ install -d $(DESTDIR)/usr/share/games/MiniRacer/data/maps
+- install -m 755 engine.glx $(DESTDIR)/usr/share/games/MiniRacer
++ install -d $(DESTDIR)@GAMES_LIBDIR@
++ install -m 755 engine.glx $(DESTDIR)@GAMES_LIBDIR@
+ install -m 644 data/pak0.pak $(DESTDIR)/usr/share/games/MiniRacer/data
+ install -m 644 data/config.cfg $(DESTDIR)/usr/share/games/MiniRacer/data
+- install -m 755 miniracer $(DESTDIR)/usr/bin/miniracer
++ install -m 755 miniracer $(DESTDIR)@GAMES_BINDIR@/miniracer
+ install -m 644 miniracer.6 $(DESTDIR)/usr/share/man/man6
+ install -m 644 data/maps/*.bsp $(DESTDIR)/usr/share/games/MiniRacer/data/maps
+ install -m 644 data/maps/maps1.lst $(DESTDIR)/usr/share/games/MiniRacer/data/maps
+@@ -145,7 +145,7 @@
+ $(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $<
+
+ engine.glx : $(GLMR_OBJS)
+- $(CC) $(CFLAGS) -o $@ $(GLMR_OBJS) $(LDFLAGS)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(GLMR_OBJS) $(LDLIBS)
+
+ #############################################################################
+ # MISC
diff --git a/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch b/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch
new file mode 100644
index 00000000000..0bb0b5da846
--- /dev/null
+++ b/games-sports/miniracer/files/miniracer-1.04-nosharedelf.patch
@@ -0,0 +1,23 @@
+--- miniracer.old 2010-02-27 21:05:11.000000000 +0100
++++ miniracer 2010-02-27 21:10:34.000000000 +0100
+@@ -12,10 +12,6 @@
+ fi
+
+ #checks for files
+-if ! [ -f $HOME/.MiniRacer/engine.glx ]; then
+- ln -s $MINIRACERDIR/engine.glx $HOME/.MiniRacer
+-fi
+-
+ if ! [ -f $HOME/.MiniRacer/data/pak0.pak ]; then
+ ln -s $MINIRACERDIR/data/pak0.pak $HOME/.MiniRacer/data
+ fi
+@@ -35,7 +31,4 @@
+
+ # change directory and start MiniRacer
+ cd $HOME/.MiniRacer
+-./engine.glx $*
+-
+-exit 0
+-
+\ No newline at end of file
++exec @GAMES_LIBDIR@/engine.glx $*
diff --git a/games-sports/miniracer/metadata.xml b/games-sports/miniracer/metadata.xml
new file mode 100644
index 00000000000..a7a28412717
--- /dev/null
+++ b/games-sports/miniracer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <upstream>
+ <remote-id type="sourceforge">miniracer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-sports/miniracer/miniracer-1.04.ebuild b/games-sports/miniracer/miniracer-1.04.ebuild
new file mode 100644
index 00000000000..4675eab0502
--- /dev/null
+++ b/games-sports/miniracer/miniracer-1.04.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="an OpenGL car racing game, based on ID's famous Quake engine"
+HOMEPAGE="http://miniracer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86dga
+ x11-libs/libXxf86vm
+ media-libs/libsdl
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}
+ x11-proto/xf86dgaproto
+ x11-proto/xf86vidmodeproto
+ x11-proto/xproto"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-nosharedelf.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "s:@CFLAGS@:${CFLAGS}:" \
+ -e "s:@GAMES_LIBDIR@:$(games_get_libdir)/${PN}:" \
+ -e "s:@GAMES_BINDIR@:${GAMES_BINDIR}:" \
+ miniracer Makefile || die
+}
+
+src_install() {
+ default
+ prepgamesdirs
+}