mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 11:51:09 +08:00
Enable FreeType in SDL1 Mac OS X
This commit is contained in:
parent
875cb64aee
commit
3a7e280cb0
21
build-macosx
21
build-macosx
@ -22,16 +22,6 @@ echo Compiling our internal SDL 1.x
|
|||||||
#echo Compiling our internal SDLnet 1.x
|
#echo Compiling our internal SDLnet 1.x
|
||||||
#(cd vs2015/sdlnet && ./build-dosbox.sh) || exit 1
|
#(cd vs2015/sdlnet && ./build-dosbox.sh) || exit 1
|
||||||
|
|
||||||
# perfer to compile against our own freetype
|
|
||||||
echo Compiling our internal freetype
|
|
||||||
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
|
|
||||||
new="-I$top/vs2015/freetype/linux-host/include "
|
|
||||||
nld="-L$top/vs2015/freetype/linux-host/lib "
|
|
||||||
export CFLAGS="$new$CFLAGS"
|
|
||||||
export LDFLAGS="$nld$LDFLAGS"
|
|
||||||
export CPPFLAGS="$new$CPPFLAGS"
|
|
||||||
export CXXFLAGS="$new$CXXFLAGS"
|
|
||||||
|
|
||||||
# perfer to compile against our own zlib
|
# perfer to compile against our own zlib
|
||||||
echo Compiling our internal zlib
|
echo Compiling our internal zlib
|
||||||
(cd vs2015/zlib && ./build-dosbox.sh) || exit 1
|
(cd vs2015/zlib && ./build-dosbox.sh) || exit 1
|
||||||
@ -52,6 +42,17 @@ export LDFLAGS="$nld$LDFLAGS"
|
|||||||
export CPPFLAGS="$new$CPPFLAGS"
|
export CPPFLAGS="$new$CPPFLAGS"
|
||||||
export CXXFLAGS="$new$CXXFLAGS"
|
export CXXFLAGS="$new$CXXFLAGS"
|
||||||
|
|
||||||
|
# perfer to compile against our own freetype
|
||||||
|
echo Compiling our internal freetype
|
||||||
|
(cd vs2015/freetype && ./build-dosbox.sh) || exit 1
|
||||||
|
new="-I$top/vs2015/freetype/linux-host/include/freetype2 "
|
||||||
|
nld="-L$top/vs2015/freetype/linux-host/lib -lfreetype "
|
||||||
|
export CFLAGS="$new$CFLAGS"
|
||||||
|
export LDFLAGS="$nld$LDFLAGS"
|
||||||
|
export CPPFLAGS="$new$CPPFLAGS"
|
||||||
|
export CXXFLAGS="$new$CXXFLAGS"
|
||||||
|
export INTERNAL_FREETYPE=1
|
||||||
|
|
||||||
# now compile ourself
|
# now compile ourself
|
||||||
echo Compiling DOSBox-X
|
echo Compiling DOSBox-X
|
||||||
chmod +x configure
|
chmod +x configure
|
||||||
|
20
configure.ac
20
configure.ac
@ -625,16 +625,22 @@ AC_ARG_ENABLE(freetype,AC_HELP_STRING([--disable-freetype],[Disable freetype sup
|
|||||||
AM_CONDITIONAL(C_FREETYPE, test "x$enable_freetype" = "xyes")
|
AM_CONDITIONAL(C_FREETYPE, test "x$enable_freetype" = "xyes")
|
||||||
if test x$enable_freetype = xyes; then
|
if test x$enable_freetype = xyes; then
|
||||||
AC_MSG_CHECKING(for freetype)
|
AC_MSG_CHECKING(for freetype)
|
||||||
pkg-config --exists freetype2; RES=$?
|
if test x$INTERNAL_FREETYPE = x1; then
|
||||||
if test x$RES = x0; then
|
# CFLAGS and LDFLAGS were already updated by build-macosx
|
||||||
CFLAGS="$CFLAGS "`pkg-config freetype2 --cflags`
|
|
||||||
CPPFLAGS="$CPPFLAGS "`pkg-config freetype2 --cflags`
|
|
||||||
LIBS="$LIBS "`pkg-config freetype2 --libs`
|
|
||||||
AC_DEFINE(C_FREETYPE,1)
|
AC_DEFINE(C_FREETYPE,1)
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
else
|
else
|
||||||
enable_freetype=no
|
pkg-config --exists freetype2; RES=$?
|
||||||
AC_MSG_RESULT(no)
|
if test x$RES = x0; then
|
||||||
|
CFLAGS="$CFLAGS "`pkg-config freetype2 --cflags`
|
||||||
|
CPPFLAGS="$CPPFLAGS "`pkg-config freetype2 --cflags`
|
||||||
|
LIBS="$LIBS "`pkg-config freetype2 --libs`
|
||||||
|
AC_DEFINE(C_FREETYPE,1)
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
enable_freetype=no
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ cd linux-build || exit 1
|
|||||||
|
|
||||||
opts=
|
opts=
|
||||||
|
|
||||||
../configure "--srcdir=$srcdir" "--prefix=$instdir" --enable-static --disable-shared $opts || exit 1
|
../configure "--srcdir=$srcdir" "--prefix=$instdir" --enable-static --disable-shared --with-bzip2=no --with-harfbuzz=no --with-png=no $opts || exit 1
|
||||||
|
|
||||||
make -j || exit 1
|
make -j || exit 1
|
||||||
make install || exit 1 # will install into ./linux-host
|
make install || exit 1 # will install into ./linux-host
|
||||||
|
0
vs2015/freetype/builds/unix/install-sh
Normal file → Executable file
0
vs2015/freetype/builds/unix/install-sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user