Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c2f1dc119 | ||
|
|
2f2511ab74 | ||
| 7cfd213f8d | |||
|
|
a5144c6ac3 |
5 changed files with 32 additions and 36 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: vdrift
|
||||
# $Id$
|
||||
NAME := vdrift
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
9e3e3c91960146354c2a9fb65da3bd97 vdrift-2008-08-05-src.tar.bz2
|
||||
5960be8c966bcbde42c054ca667b46ef vdrift-2009-02-15-src.tar.bz2
|
||||
|
|
|
|||
4
vdrift-20090215-joepack-includes.patch
Normal file
4
vdrift-20090215-joepack-includes.patch
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
--- src/joepack.cpp.orig 2009-02-23 11:49:13.000000000 -0600
|
||||
+++ src/joepack.cpp 2009-02-23 11:49:13.000000000 -0600
|
||||
@@ -12,0 +13 @@
|
||||
+#include <stdint.h>
|
||||
41
vdrift.spec
41
vdrift.spec
|
|
@ -1,14 +1,14 @@
|
|||
Name: vdrift
|
||||
Version: 20080805
|
||||
Release: 2%{?dist}
|
||||
Summary: VDrift is a cross-platform, open source driving/drift racing simulation
|
||||
Version: 20090215
|
||||
Release: 1%{?dist}
|
||||
Summary: Driving/drift racing simulation
|
||||
|
||||
Group: Amusements/Games
|
||||
License: GPLv2+
|
||||
URL: http://vdrift.net
|
||||
Source0: %{name}-2008-08-05-src.tar.bz2
|
||||
Source0: %{name}-2009-02-15-src.tar.bz2
|
||||
#Original upstream:
|
||||
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-2008-08-05-src.tar.bz2
|
||||
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-2009-02-15-src.tar.bz2
|
||||
# Modified:
|
||||
# cd docs
|
||||
# rm HOW_TO_COMPILE.txt SConscript INSTALL
|
||||
|
|
@ -25,6 +25,7 @@ Patch0: vdrift-SConstruct.patch
|
|||
Patch1: vdrift-20071226-paths.patch
|
||||
#Patch2: vdrift-20071226-gcc4.3.patch
|
||||
#Patch3: vdrift-20071226-jamfile.patch
|
||||
Patch4: vdrift-20090215-joepack-includes.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
|
||||
BuildRequires: SDL-devel
|
||||
BuildRequires: SDL_image-devel
|
||||
|
|
@ -52,7 +53,7 @@ available for Linux, FreeBSD, Mac OS X and Windows (Cygwin).
|
|||
|
||||
%prep
|
||||
|
||||
%setup -qn vdrift-08-05-08
|
||||
%setup -qn vdrift-2009-02-15
|
||||
|
||||
%ifarch ppc ppc64
|
||||
sed -i 's/linuxx86/linuxppc/' src/SConscript
|
||||
|
|
@ -62,20 +63,25 @@ sed -i 's/linuxx86/linuxppc/' src/SConscript
|
|||
%patch1 -p0
|
||||
#%patch2 -p0
|
||||
#%patch3 -p0
|
||||
%patch4 -p0
|
||||
|
||||
/bin/chmod -x src/gamestate.cpp
|
||||
/bin/chmod -x src/logo.cpp
|
||||
/bin/chmod -x src/objects.cpp
|
||||
#/bin/chmod -x src/gamestate.cpp
|
||||
#/bin/chmod -x src/logo.cpp
|
||||
#/bin/chmod -x src/objects.cpp
|
||||
/bin/chmod -x src/main.cpp
|
||||
/bin/chmod -x src/game.cpp
|
||||
|
||||
/bin/chmod -x bullet-2.66/src/LinearMath/*.h
|
||||
|
||||
%build
|
||||
cd bullet-2.66
|
||||
%configure
|
||||
jam bulletcollision bulletmath
|
||||
cd ..
|
||||
tar -xzf bullet-2.73-sp1.tgz
|
||||
/bin/chmod -x bullet-2.73/src/LinearMath/*.h
|
||||
#cd bullet-2.73
|
||||
#./autogen.sh
|
||||
#./configure
|
||||
#jam bulletcollision bulletmath
|
||||
#cmake .
|
||||
#make
|
||||
#cd ..
|
||||
|
||||
CC="gcc" CXX="g++" CXXFLAGS="%{optflags}" scons bin=/bin use_binreloc=0 release=1 os_cc=1 os_cxx=1 os_cxxflags=1 NLS=0
|
||||
|
||||
|
|
@ -123,6 +129,13 @@ rm -rf %{buildroot}
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 19 2009 Jon Ciesla <limb@jcomserv.net> - 20090215-1
|
||||
- Update to 2009-02-15.
|
||||
- Includes patch.
|
||||
|
||||
* Mon Nov 24 2008 Jon Ciesla <limb@jcomserv.net> - 20080805-3
|
||||
- Cleaned up summary.
|
||||
|
||||
* Tue Oct 21 2008 Hans de Goede <hdegoede@redhat.com> - 20080805-2
|
||||
- Actually install the data now that its merged into the main package
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue