File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
buildconfig/manylinux-build/docker_base/freetype Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,16 @@ jobs:
131131 export MAC_ARCH="${{ matrix.macarch }}"
132132 brew install pkg-config
133133 cd buildconfig/macdependencies
134+ cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps
134135 bash ./install_mac_deps.sh
135136
136137 CIBW_BEFORE_BUILD : |
137138 pip install requests numpy Sphinx
138139 python setup.py docs
140+ cp -r ${{ github.workspace }}/pygame_mac_deps_${{ matrix.macarch }} ${{ github.workspace }}/pygame_mac_deps
141+
142+ # To remove any speculations about the wheel not being self-contained
143+ CIBW_BEFORE_TEST : rm -rf ${{ github.workspace }}/pygame_mac_deps
139144
140145 CIBW_TEST_COMMAND : python -m pygame.tests -v --exclude opengl,timing --time_out 300
141146
Original file line number Diff line number Diff line change @@ -47,6 +47,16 @@ make install
4747if [[ " $OSTYPE " == " darwin" * ]]; then
4848 # Install to mac deps cache dir as well
4949 make install DESTDIR=${MACDEP_CACHE_PREFIX_PATH}
50+
51+ # We do a little hack...
52+ # When freetype finds harfbuzz with pkg-config, we tell freetype a little
53+ # lie that harfbuzz doesn't depend on freetype (even though it does).
54+ # This ensures no direct circular dylib link happen.
55+ # This is a bit of a brittle hack: This command removes the entire line that
56+ # contains "freetype". This is fine for now when the harfbuzz we are
57+ # building has no other dependencies
58+ sed -i ' ' ' /freetype/d' /usr/local/lib/pkgconfig/harfbuzz.pc
59+ sed -i ' ' ' s/ \/usr\/local\/lib\/libfreetype.la//g' /usr/local/lib/libharfbuzz.la
5060fi
5161
5262cd ..
@@ -56,6 +66,9 @@ cd $FREETYPE
5666
5767# fully clean previous install
5868make clean
69+ if [[ " $OSTYPE " == " darwin" * ]]; then
70+ make uninstall
71+ fi
5972
6073./configure $ARCHS_CONFIG_FLAG --with-harfbuzz=yes
6174make
You can’t perform that action at this time.
0 commit comments