summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ftgl/package.py10
-rw-r--r--var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff11
2 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ftgl/package.py b/var/spack/repos/builtin/packages/ftgl/package.py
index 95e968e371..a2fcb7c702 100644
--- a/var/spack/repos/builtin/packages/ftgl/package.py
+++ b/var/spack/repos/builtin/packages/ftgl/package.py
@@ -37,6 +37,9 @@ class Ftgl(AutotoolsPackage):
version('2.1.2', 'f81c0a7128192ba11e036186f9a968f2')
+ # There is an unnecessary qualifier around, which makes modern GCC sad
+ patch('remove-extra-qualifier.diff')
+
# Ftgl does not come with a configure script
depends_on('autoconf', type='build')
depends_on('automake', type='build')
@@ -48,6 +51,13 @@ class Ftgl(AutotoolsPackage):
depends_on('glu')
depends_on('freetype@2.0.9:')
+ # Currently, "make install" will fail if the docs weren't built
+ #
+ # FIXME: Can someone with autotools experience fix the build system
+ # so that it doesn't fail when that happens?
+ #
+ depends_on('doxygen', type='build')
+
@property
@when('@2.1.2')
def configure_directory(self):
diff --git a/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff b/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff
new file mode 100644
index 0000000000..cff9a3836e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ftgl/remove-extra-qualifier.diff
@@ -0,0 +1,11 @@
+--- FTGL/include/FTTextureGlyph.h 2018-07-26 08:30:55.144488976 +0000
++++ FTGL/include/FTTextureGlyph.h 2018-07-26 08:29:42.072489186 +0000
+@@ -52,7 +52,7 @@
+ * Reset the currently active texture to zero to get into a known state before
+ * drawing a string. This is to get round possible threading issues.
+ */
+- static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
++ static void ResetActiveTexture(){ activeTextureID = 0;}
+
+ private:
+ /**