Skip to content

Commit

Permalink
Fix for systemfonts
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 19, 2024
1 parent 1fc6fb6 commit 04a3ea7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion freetype
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ tar -xf libs.tar.xz --strip 1 -C $BREWDIR
rm -f libs.tar.xz

# Hardcoded flags
PKG_LIBS="-L$BREWDIR/lib -lfreetype -lpng"
PKG_LIBS="-L$BREWDIR/lib -lfreetype -lpng16"
PKG_CFLAGS="-I$BREWDIR/include -I$BREWDIR/include/freetype2"

# Prevent linking against other libs in /usr/local/lib
for FILE in $BREWDIR/lib/*.a; do
BASENAME=$(basename $FILE)
LIBNAME=$(echo "${BASENAME%.*}" | cut -c4-)
cp -f $FILE $BREWDIR/lib/libbrew$LIBNAME.a
PKG_LIBS=$(echo $PKG_LIBS | sed "s/-l$LIBNAME /-lbrew$LIBNAME /g")
done

# Cleanup
echo "rm -Rf .deps" >> cleanup
chmod +x cleanup

0 comments on commit 04a3ea7

Please sign in to comment.