Skip to content

Commit 909c47f

Browse files
committed
otf2bdf: handle ft2build.h to fix Linux build
1 parent 1140aca commit 909c47f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Formula/o/otf2bdf.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ class Otf2bdf < Formula
3535

3636
def install
3737
chmod 0755, "mkinstalldirs"
38+
39+
# `otf2bdf.c` uses `#include <ft2build.h>`, not `<freetype2/ft2build.h>`,
40+
# so freetype2 must be put into the search path.
41+
ENV.append "CFLAGS", "-I#{Formula["freetype"].opt_include}/freetype2"
42+
3843
system "./configure", "--mandir=#{man}", *std_configure_args
3944
system "make", "install"
4045
end

0 commit comments

Comments
 (0)