diff options
author | Olivier Cessenat <cessenat@gmail.com> | 2021-10-02 22:27:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-02 16:27:38 -0400 |
commit | 2ce3be3a273b282f47d70be846579a27ba2fec38 (patch) | |
tree | db74bf2c84ea02c17b3d5b11045326ce7f67262d | |
parent | b65360f7217b49b8f8bc357d596adb061837842b (diff) | |
download | spack-2ce3be3a273b282f47d70be846579a27ba2fec38.tar.gz spack-2ce3be3a273b282f47d70be846579a27ba2fec38.tar.bz2 spack-2ce3be3a273b282f47d70be846579a27ba2fec38.tar.xz spack-2ce3be3a273b282f47d70be846579a27ba2fec38.zip |
fltk: new version 1.3.7, new variant xft (#26423)
-rw-r--r-- | var/spack/repos/builtin/packages/fltk/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fltk/package.py b/var/spack/repos/builtin/packages/fltk/package.py index f4f6e6c213..3b364776dc 100644 --- a/var/spack/repos/builtin/packages/fltk/package.py +++ b/var/spack/repos/builtin/packages/fltk/package.py @@ -20,7 +20,10 @@ class Fltk(Package): """ homepage = 'https://www.fltk.org/' url = 'https://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz' + git = 'https://github.com/fltk/fltk.git' + version('master', branch='master') + version('1.3.7', sha256='5d2ccb7ad94e595d3d97509c7a931554e059dd970b7b29e6fd84cb70fd5491c6') version('1.3.3', sha256='f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97') depends_on('libx11') @@ -41,9 +44,14 @@ class Fltk(Package): variant('gl', default=True, description='Enables opengl support') + variant('xft', default=False, + description='Enables Anti-Aliased Fonts') + # variant dependencies depends_on('gl', when='+gl') + depends_on('libxft', when='+xft') + def install(self, spec, prefix): options = ['--prefix=%s' % prefix, '--enable-localjpeg', @@ -53,6 +61,12 @@ class Fltk(Package): if '+shared' in spec: options.append('--enable-shared') + if '+xft' in spec: + # https://www.fltk.org/articles.php?L374+I0+TFAQ+P1+Q + options.append('--enable-xft') + else: + options.append('--disable-xft') + if '~gl' in spec: options.append('--disable-gl') |