r-geomorph and other r fixes (#5961)

This commit is contained in:
Audrey Thoma
2017-10-28 13:13:38 -05:00
committed by Christoph Junghans
parent 57611397c9
commit f340333e6e
3 changed files with 53 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ class RRgl(RPackage):
depends_on('r@3.2:3.9')
depends_on('zlib', type=('link'))
depends_on('libpng', type=('link'))
depends_on('libx11')
depends_on('freetype', type=('link'))
depends_on('mesa', type=('link'))
depends_on('mesa-glu', type=('link'))
@@ -50,3 +51,11 @@ class RRgl(RPackage):
depends_on('r-jsonlite', type=('build', 'run'))
depends_on('r-shiny', type=('build', 'run'))
depends_on('r-magrittr', type=('build', 'run'))
def configure_args(self):
args = ['--x-includes=%s' % self.spec['libx11'].prefix.include,
'--x-libraries=%s' % self.spec['libx11'].prefix.lib,
'--with-gl-includes=%s' % self.spec['mesa'].prefix.include,
'--with-gl-libraries=%s' % self.spec['mesa'].prefix.lib,
'--with-gl-prefix=%s' % self.spec['mesa'].prefix]
return args