Project

General

Profile

Feature #24483

freetype in fontutil

Added by Marc Mengel 6 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
05/27/2020
Due date:
% Done:

0%

Estimated time:
Duration:

Description

Need pull request; maybe with prefix.lib below...

--- a/var/spack/repos/builtin/packages/fontconfig/package.py
+++ b/var/spack/repos/builtin/packages/fontconfig/package.py
@@ -23,6 +23,10 @@ class Fontconfig(AutotoolsPackage):
     depends_on('font-util')
     depends_on('libuuid', when='@2.13.1:')

+    def setup_environment(self, spack_env, run_env):
+        spack_env.set("FREETYPE_CFLAGS", "-I{0}/include/freetype2".format( self.spec['freetype'].prefix))
+        spack_env.set("FREETYPE_LIBS", "-L{0} -lfreetype".format(self.spec['freetype'].prefix))
+
     def configure_args(self):
         font_path = join_path(self.spec['font-util'].prefix, 'share', 'fonts')

Also available in: Atom PDF