Bug#585673: boswars: FTBFS on kfreebsd: build system tweaking is required

Cyril Brulebois kibi at debian.org
Sat Jun 12 22:43:22 UTC 2010


Source: boswars
Version: 2.6.1-1
Severity: important
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

currently, -lGL is missing for kfreebsd-*, as seen on [1]. I'm attaching
a small patch against the upstream build system to fix the FTBFS on
kfreebsd-*.

 1. https://buildd.debian.org/status/package.php?p=boswars

Mraw,
KiBi.
-------------- next part --------------
--- boswars-2.6.1.orig/SConstruct
+++ boswars-2.6.1/SConstruct
@@ -153,7 +153,7 @@ def CheckOpenGL(env, conf):
   if 'USE_WIN32' in env['CPPDEFINES']:
      glconfig = {'LIBS': ['opengl32']}
   else:
-     if sys.platform[:5] == 'linux':
+     if sys.platform[:5] == 'linux' or sys.platform.startswith('gnukfreebsd'):
         platform = 'linux'
      glconfig = opengl.get(platform, {})
   for key in glconfig:
@@ -292,7 +292,7 @@ profile.Append(CCFLAGS = Split('-pg'))
 profile.Append(LINKFLAGS = Split('-pg'))
 
 staticenv = None
-if sys.platform.startswith('linux'):
+if sys.platform.startswith('linux') or sys.platform.startswith('gnukfreebsd'):
    staticenv = release.Clone()
    staticlibs = 'lua lua50 lua5.0 lua5.1 lua51 lualib lualib50 lualib5.0 vorbis theora ogg'
    staticlibs = staticlibs.split(' ')


More information about the Pkg-games-devel mailing list