summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-12-02 12:23:31 -0600
committerGitHub <noreply@github.com>2020-12-02 19:23:31 +0100
commit898ac9f9c2587b99392e07fcb8b1991be0895607 (patch)
tree381d8099c8bb2face3b965d1b4827e277d348585
parent3c25ae51308c3fd509a106ffdf78411de1520432 (diff)
downloadspack-898ac9f9c2587b99392e07fcb8b1991be0895607.tar.gz
spack-898ac9f9c2587b99392e07fcb8b1991be0895607.tar.bz2
spack-898ac9f9c2587b99392e07fcb8b1991be0895607.tar.xz
spack-898ac9f9c2587b99392e07fcb8b1991be0895607.zip
libqglviewer: build dylib instead of Framework (#20178)
-rw-r--r--var/spack/repos/builtin/packages/libqglviewer/package.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/libqglviewer/package.py b/var/spack/repos/builtin/packages/libqglviewer/package.py
index a60ade218a..ff078b78b7 100644
--- a/var/spack/repos/builtin/packages/libqglviewer/package.py
+++ b/var/spack/repos/builtin/packages/libqglviewer/package.py
@@ -16,10 +16,21 @@ class Libqglviewer(QMakePackage):
# http://libqglviewer.com/installUnix.html
- depends_on('qt+opengl')
+ depends_on('qt+gui+opengl')
depends_on('freeglut', when='^qt@:3.0')
build_directory = 'QGLViewer'
+ def patch(self):
+ # Build dylib instead of Framework on macOS
+ if self.spec.satisfies('platform=darwin'):
+ filter_file('!staticlib: CONFIG *= lib_bundle', '',
+ join_path('QGLViewer', 'QGLViewer.pro'), string=True)
+
def qmake_args(self):
return ['PREFIX=' + self.prefix]
+
+ @run_after('install')
+ def darwin_fix(self):
+ if self.spec.satisfies('platform=darwin'):
+ fix_darwin_install_name(self.prefix.lib)