diff options
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/build-xorg | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/unix/build-xorg b/unix/build-xorg index 6aee9b71..2cbb9d3a 100755 --- a/unix/build-xorg +++ b/unix/build-xorg @@ -123,6 +123,18 @@ build () # Build Xorg echo "*** Building Xorg ***" pushd xorg + + # build freetype + echo "*** Building freetype ***" + pushd freetype-* + ./configure ${CFGHOST} --prefix=${PREFIX} --enable-static --disable-shared + if [ $? -ne 0 ]; then + echo "Failed to configure freetype." + exit + fi + $MAKE install + popd + for module in ${modules}; do extraoptions="" cd ${module}-* @@ -138,6 +150,9 @@ build () if [ "${module}" = "pixman" ]; then extraoptions="${extraoptions} --disable-gtk" fi + if [ "${module}" = "libXfont"; then + extraoptions="${extraoptions} --with-freetype-config=${PREFIX}/bin/freetype-config" + fi OLD_CFLAGS=${CFLAGS} OLD_CXXFLAGS=${CXXFLAGS} CFLAGS=${CFLAGS}' -fPIC' @@ -170,17 +185,6 @@ build () $MAKE install popd - # build freetype - echo "*** Building freetype ***" - pushd freetype-* - ./configure ${CFGHOST} --prefix=${PREFIX} --enable-static --disable-shared - if [ $? -ne 0 ]; then - echo "Failed to configure freetype." - exit - fi - $MAKE install - popd - popd fi # XONLY |