Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS 11 arm64 homebrew configure file tweaks #76

Closed
hrbrmstr opened this issue Mar 5, 2021 · 0 comments
Closed

macOS 11 arm64 homebrew configure file tweaks #76

hrbrmstr opened this issue Mar 5, 2021 · 0 comments

Comments

@hrbrmstr
Copy link

hrbrmstr commented Mar 5, 2021

as per the twitter thread, I ended up having to tweak PKG_CONFIG_NAME, PKG_BREW_NAME, and PKG_LIBS:

# Library settings
PKG_CONFIG_NAME="freetype2 libpng libtiff-4 webp harfbuzz"
PKG_DEB_NAME="libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev"
PKG_RPM_NAME="freetype-devel libpng-devel libtiff-devel libjpeg-turbo-devel"
PKG_CSW_NAME="libfreetype_dev libpng16_dev libtiff_dev libjpeg_dev"
PKG_BREW_NAME="freetype libpng libtiff zlib libjpeg-turbo webp harfbuzz"
PKG_TEST_HEADER="#include <ft2build.h>\n#include <png.h>\n#include <tiffio.h>\n#include <jpeglib.h>\n"
PKG_LIBS="-lfreetype -lpng16 -ltiff -lz -ljpeg -lbz2 -lwebp -lharfbuzz"
PKG_CFLAGS=""

as well as:

  PKG_CFLAGS=``/opt/homebrew/bin/pkg-config --cflags ${PKG_CONFIG_NAME}`
  PKG_LIBS=``/opt/homebrew/bin/pkg-config --libs ${PKG_CONFIG_NAME}`
  PKG_LIBS="$PKG_LIBS -ljpeg -lwebp"

to get it to compile.

Compilation also requires a full Xcode installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants