Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

manylinux: Revert compiling harfbuzz on MacOS#3724

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
illume merged 1 commit intomainfromrevert-harfbuzz-macos
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -26,40 +26,46 @@ cd $FREETYPE
make
make install # this freetype is not installed to mac cache dir

cd ..

# 2. Compile harfbuzz with freetype support
cd ${HARFBUZZ_NAME}

# harfbuzz has a load of optional dependencies but only freetype is important
# to us.
# Cairo and chafa are only needed for harfbuzz commandline utilities so we
# don't use it. glib available is a bit old so we don't prefer it as of now.
# we also don't compile-in icu so that harfbuzz uses built-in unicode handling
# LDFLAGS are passed explicitly so that harfbuzz picks the freetype we
# installed first
./configure $ARCHS_CONFIG_FLAG --with-freetype=yes \
--with-cairo=no --with-chafa=no --with-glib=no --with-icu=no \
--disable-static LDFLAGS="-L/usr/local/lib"
make
make install

if [[ "$OSTYPE" == "darwin"* ]]; then
# Install to mac deps cache dir as well
make install DESTDIR=${MACDEP_CACHE_PREFIX_PATH}
fi
# harfbuzz was not well tested, only enable on linux
if [[ "$OSTYPE" == "linux-gnu"* ]]; then

cd ..
cd ..

# 3. Recompile freetype, and this timewithharfbuzz support
cd $FREETYPE
# 2. Compile harfbuzzwithfreetype support
cd ${HARFBUZZ_NAME}

# fully clean previous install
make clean
# harfbuzz has a load of optional dependencies but only freetype is important
# to us.
# Cairo and chafa are only needed for harfbuzz commandline utilities so we
# don't use it. glib available is a bit old so we don't prefer it as of now.
# we also don't compile-in icu so that harfbuzz uses built-in unicode handling
# LDFLAGS are passed explicitly so that harfbuzz picks the freetype we
# installed first
./configure $ARCHS_CONFIG_FLAG --with-freetype=yes \
--with-cairo=no --with-chafa=no --with-glib=no --with-icu=no \
--disable-static LDFLAGS="-L/usr/local/lib"
make
make install

./configure $ARCHS_CONFIG_FLAG --with-harfbuzz=yes
make
make install
if [[ "$OSTYPE" == "darwin"* ]]; then
# Install to mac deps cache dir as well
make install DESTDIR=${MACDEP_CACHE_PREFIX_PATH}
fi

cd ..

# 3. Recompile freetype, and this time with harfbuzz support
cd $FREETYPE

# fully clean previous install
make clean

./configure $ARCHS_CONFIG_FLAG --with-harfbuzz=yes
make
make install

fi

if [[ "$OSTYPE" == "darwin"* ]]; then
# Install to mac deps cache dir as well
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -78,9 +78,14 @@ cd ..
tar xzf ${TTF2}.tar.gz
cd $TTF2

# We already build freetype+harfbuzz for pygame.freetype
# So we make SDL_ttf use that instead of SDL_ttf vendored copies
./configure $ARCHS_CONFIG_FLAG --disable-freetype-builtin --disable-harfbuzz-builtin
# harfbuzz was not well tested, only enable on linux
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# We already build freetype+harfbuzz for pygame.freetype
# So we make SDL_ttf use that instead of SDL_ttf vendored copies
DO_HARFBUZZ="--disable-freetype-builtin --disable-harfbuzz-builtin"
fi

./configure $ARCHS_CONFIG_FLAG $DO_HARFBUZZ
make
make install

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp