Proje Gitea'ya taşındı (Temiz başlangıç)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>game.sports</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,44 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import scons
|
||||
from pisi.actionsapi import get
|
||||
|
||||
import os
|
||||
|
||||
NoStrip = "/"
|
||||
|
||||
def fixperms(d):
|
||||
for root, dirs, files in os.walk(d):
|
||||
for name in dirs:
|
||||
shelltools.chmod(os.path.join(root, name), 0755)
|
||||
for name in files:
|
||||
shelltools.chmod(os.path.join(root, name), 0644)
|
||||
if name.startswith("SConscript"):
|
||||
shelltools.unlink(os.path.join(root, name))
|
||||
|
||||
def setup():
|
||||
fixperms("data")
|
||||
|
||||
|
||||
def build():
|
||||
scons.make('release=1 \
|
||||
destdir="%s" \
|
||||
prefix=/usr \
|
||||
datadir=share/vdrift \
|
||||
bindir=bin \
|
||||
localedir=share/locale' % get.installDIR())
|
||||
|
||||
def install():
|
||||
pisitools.dobin("src/vdrift")
|
||||
pisitools.dodir("/usr/share")
|
||||
shelltools.copytree("data", "%s/usr/share/vdrift" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("LICENSE", "README*")
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
diff -up ./src/graphics/model_obj.cpp.gcc6 ./src/graphics/model_obj.cpp
|
||||
--- ./src/graphics/model_obj.cpp.gcc6 2016-02-09 19:02:50.282554264 -0500
|
||||
+++ ./src/graphics/model_obj.cpp 2016-02-09 19:03:10.566308088 -0500
|
||||
@@ -221,7 +221,7 @@ bool ModelObj::Save(const std::string &
|
||||
std::ofstream f(strFileName.c_str());
|
||||
if (!f)
|
||||
{
|
||||
- error_output << "Error opening file for writing: " << error_output << endl;
|
||||
+ error_output << "Error opening file for writing: " << strFileName << endl;
|
||||
return false;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
--- ./src/SConscript.orig 2014-09-04 16:06:21.000000000 -0400
|
||||
+++ ./src/SConscript 2017-10-15 11:22:06.536446627 -0400
|
||||
@@ -151,7 +151,7 @@ src = Split("""
|
||||
utils.cpp
|
||||
window.cpp""")
|
||||
|
||||
-src.sort(lambda x, y: cmp(x.lower(),y.lower()))
|
||||
+src.sort(key=lambda x: x.lower())
|
||||
|
||||
#------------------------#
|
||||
# Copy Build Environment #
|
||||
@@ -0,0 +1,59 @@
|
||||
--- ./SConstruct.orig 2014-08-04 08:43:04.000000000 -0400
|
||||
+++ ./SConstruct 2017-10-15 11:18:01.792656230 -0400
|
||||
@@ -92,9 +92,9 @@ elif sys.platform == 'darwin':
|
||||
|
||||
for a in env['universal']:
|
||||
if not sdk_path:
|
||||
- print 'Building a universal binary require access to an ' + \
|
||||
+ print ('Building a universal binary require access to an ' + \
|
||||
'SDK that has universal \nbinary support.If you know ' + \
|
||||
- 'the location of such an SDK, specify it using the \n"SDK" option'
|
||||
+ 'the location of such an SDK, specify it using the \n"SDK" option')
|
||||
Exit(1)
|
||||
env.Append( CCFLAGS = ['-arch', a], LINKFLAGS = ['-arch', a] )
|
||||
|
||||
@@ -141,11 +141,11 @@ else:
|
||||
CC = 'gcc', CXX = 'g++',
|
||||
options = opts)
|
||||
# Take environment variables into account
|
||||
- if os.environ.has_key('CXX'):
|
||||
+ if 'CXX' in os.environ:
|
||||
env['CXX'] = os.environ['CXX']
|
||||
- if os.environ.has_key('CXXFLAGS'):
|
||||
+ if 'CXXFLAGS' in os.environ:
|
||||
env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
|
||||
- if os.environ.has_key('LDFLAGS'):
|
||||
+ if 'LDFLAGS' in os.environ:
|
||||
env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
|
||||
check_headers = ['GL/gl.h', 'SDL2/SDL.h', 'SDL2/SDL_image.h', 'vorbis/vorbisfile.h', 'curl/curl.h', 'bullet/btBulletCollisionCommon.h', 'bullet/btBulletDynamicsCommon.h']
|
||||
check_libs = []
|
||||
@@ -232,7 +232,7 @@ def distcopy (target, source, env):
|
||||
def tarballer (target, source, env):
|
||||
cmd = 'tar -jcf "%s" -C "%s" .' % ( str(target[0]), str(source[0]) )
|
||||
#cmd = 'tar -jcf ' + str (target[0]) + ' ' + str(source[0]) + " --exclude '*~' "
|
||||
- print 'running ', cmd, ' ... '
|
||||
+ print ('running ', cmd, ' ... ')
|
||||
p = os.popen (cmd)
|
||||
return p.close ()
|
||||
|
||||
@@ -362,11 +362,11 @@ env.ParseConfig('pkg-config bullet --lib
|
||||
conf = Configure(env)
|
||||
for header in check_headers:
|
||||
if not conf.CheckCXXHeader(header):
|
||||
- print 'You do not have the %s headers installed. Exiting.' % header
|
||||
+ print ('You do not have the %s headers installed. Exiting.' % header)
|
||||
Exit(1)
|
||||
for lib in check_libs:
|
||||
if not conf.CheckLibWithHeader(lib[0], lib[1], 'C', lib[2]):
|
||||
- print lib[3]
|
||||
+ print (lib[3])
|
||||
Exit(1)
|
||||
|
||||
env = conf.Finish()
|
||||
@@ -535,4 +535,5 @@ if 'data-package' in COMMAND_LINE_TARGET
|
||||
if 'autopackage' in COMMAND_LINE_TARGETS:
|
||||
os.system("CXX1=g++-3.4 CXX2=g++-4.1 APBUILD_CXX1=g++-3.4 APBUILD_NO_STATIC_X=1 VDRIFT_VERSION=%s VDRIFT_MINIMAL=%d VDRIFT_RELEASE=%d makepackage tools/autopackage/vdrift.apspec" % (version, env['minimal'], env['release']))
|
||||
|
||||
-SConscript('src/SConscript', variant_dir = build_dir, duplicate = 0)
|
||||
+VariantDir(build_dir, '.', duplicate = 0)
|
||||
+SConscript('src/SConscript')
|
||||
@@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name=VDrift
|
||||
Name[tr]=VDrift
|
||||
GenericName=Drift Racing
|
||||
GenericName[tr]=Drift Yarışı
|
||||
Icon=vdrift
|
||||
Exec=vdrift
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Application;Game;SportsGame;
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 698 B |
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>vdrift</Name>
|
||||
<Homepage>http://www.vdrift.net</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<Icon>vdrift</Icon>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Driving simulation</Summary>
|
||||
<Description>VDrift is a driving simulation game with drift racing in mind.</Description>
|
||||
<Archive sha1sum="1b98f6e70d64952dee24788989697dae444c6056" type="tarbz2">mirrors://sourceforge/vdrift/vdrift-2014-10-20.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>libsdl2-devel</Dependency>
|
||||
<Dependency>sdl2-image-devel</Dependency>
|
||||
<Dependency>glew-devel</Dependency>
|
||||
<Dependency>mesa-devel</Dependency>
|
||||
<Dependency>mesa-glu-devel</Dependency>
|
||||
<Dependency>libvorbis-devel</Dependency>
|
||||
<Dependency>curl-devel</Dependency>
|
||||
<Dependency>bullet-devel</Dependency>
|
||||
<Dependency>icon-theme-hicolor</Dependency>
|
||||
<Dependency>libarchive-devel</Dependency>
|
||||
<Dependency>scons</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch>vdrift-gcc6.patch</Patch>
|
||||
<Patch>vdrift-sconscript.patch</Patch>
|
||||
<Patch>vdrift-sconstruct.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>vdrift</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libsdl2</Dependency>
|
||||
<Dependency>sdl2-image</Dependency>
|
||||
<Dependency>glew</Dependency>
|
||||
<Dependency>mesa</Dependency>
|
||||
<Dependency>mesa-glu</Dependency>
|
||||
<Dependency>libvorbis</Dependency>
|
||||
<Dependency>bullet</Dependency>
|
||||
<Dependency>curl</Dependency>
|
||||
<Dependency>libarchive</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="data">/usr/share/applications</Path>
|
||||
<Path fileType="data">/usr/share/vdrift</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share/pixmaps</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/vdrift.desktop">vdrift.desktop</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/vdrift.png">vdrift.png</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2018-12-31</Date>
|
||||
<Version>20141020</Version>
|
||||
<Comment>First Release</Comment>
|
||||
<Name>Ali Cengiz Kurt</Name>
|
||||
<Email>alicengizkurt@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>vdrift</Name>
|
||||
<Summary xml:lang="tr">Araba yarışı</Summary>
|
||||
<Description xml:lang="tr">Drift tarzı yarışabileceğiniz araba simulasyonu</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user