Skip to content

Commit

Permalink
update pango (static cairo)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Oct 20, 2023
1 parent 228d254 commit 20fcdd1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions var/spack/repos/builtin/packages/pango/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,10 @@ def configure_args(self):
args.append("GTKDOC_MKPDF={0}".format(true))
args.append("GTKDOC_REBASE={0}".format(true))

if self.spec["cairo"].satisfies("~shared"):
ldflags = [self.spec["pixman"].libs.search_flags]
libs = [self.spec["pixman"].libs.link_flags]
if self.spec["cairo"].satisfies("+png"):
ldflags.append(self.spec["libpng"].libs.search_flags)
libs.append(self.spec["libpng"].libs.link_flags)
args.append("LDFLAGS=%s" % " ".join(ldflags))
args.append("LIBS=%s" % " ".join(libs))
if self.spec.satisfies("^cairo ~shared"):
pkgconfig = which("pkg-config")
cairo_libs = pkgconfig("cairo", "--static", "--libs", output=str).strip()
args.append(f"LIBS={cairo_libs}")

return args

Expand Down

0 comments on commit 20fcdd1

Please sign in to comment.