Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
For consistency's sake, set SAGE_FREETYPE_PREFIX to empty when using …
Browse files Browse the repository at this point in the history
…the system lib

The use of --with-freetype=yes is particular to configuring libgd
  • Loading branch information
embray committed May 23, 2019
1 parent 9eeaa56 commit 4b1850a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/pkgs/freetype/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SAGE_SPKG_CONFIGURE([freetype], [
if test x$sage_spkg_install_freetype = xyes; then
AC_SUBST(SAGE_FREETYPE_PREFIX, ['$SAGE_LOCAL'])
else
AC_SUBST(SAGE_FREETYPE_PREFIX, [yes])
AC_SUBST(SAGE_FREETYPE_PREFIX, [''])
fi
])

Expand Down
9 changes: 7 additions & 2 deletions build/pkgs/libgd/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ cd src

export CFLAGS="-g $CFLAGS"

if [ -n "$SAGE_FREETYPE_PREFIX" ]; then
LIBGD_CONFIGURE="--with-freetype=$SAGE_FREETYPE_PREFIX $LIBGD_CONFIGURE"
else
LIBGD_CONFIGURE="--with-freetype=yes $LIBGD_CONFIGURE"
fi

# We explicitly disable X and fontconfig support, since (1) X is not a SAGE dependency,
# and (2) the gd build fails on a lot of OS X PPC machines when X is enabled.
sdh_configure --without-jpeg --without-xpm --without-x --without-fontconfig \
--with-zlib="$SAGE_LOCAL" --with-freetype="$SAGE_FREETYPE_PREFIX" \
$LIBGD_CONFIGURE
--with-zlib="$SAGE_LOCAL" $LIBGD_CONFIGURE
sdh_make
sdh_make_install

0 comments on commit 4b1850a

Please sign in to comment.