2002-01-08 21:34:11 +03:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2005-06-05 03:04:30 +04:00
|
|
|
# Copyright 2002, 2003, 2004, 2005 by
|
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
#
|
|
|
|
#
|
2005-05-24 08:49:42 +04:00
|
|
|
# Call the `configure' script located in `builds/unix'.
|
2002-01-08 21:34:11 +03:00
|
|
|
#
|
* README.UNX: updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time..
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c,
src/base/ftmac.c, src/base/ftobjs.c,
src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c:
added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc...)
this eases the porting of FreeType 2 to exotic environments like
XFree86 modules/extensions..
also removed many #include <string.h>, #include <stdlib.h>, etc...
from the engine's sources where they're not needed..
2002-04-12 13:31:48 +04:00
|
|
|
|
2005-05-24 08:49:42 +04:00
|
|
|
rm -f config.mk builds/unix/unix-def.mk builds/unix/unix-cc.mk
|
|
|
|
|
2002-05-05 14:57:06 +04:00
|
|
|
if test "x$GNUMAKE" = x; then
|
* README.UNX: updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time..
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c,
src/base/ftmac.c, src/base/ftobjs.c,
src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c:
added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc...)
this eases the porting of FreeType 2 to exotic environments like
XFree86 modules/extensions..
also removed many #include <string.h>, #include <stdlib.h>, etc...
from the engine's sources where they're not needed..
2002-04-12 13:31:48 +04:00
|
|
|
GNUMAKE=make
|
|
|
|
fi
|
|
|
|
|
2002-05-05 14:57:06 +04:00
|
|
|
if test -z "`$GNUMAKE -v 2>/dev/null | grep GNU`"; then
|
2004-04-13 12:35:05 +04:00
|
|
|
if test -z "`$GNUMAKE -v 2>/dev/null | grep makepp`"; then
|
|
|
|
echo "GNU make (>= 3.79.1) or makepp (>= 1.19) is required to build FreeType2." >&2
|
|
|
|
echo "Please try" >&2
|
|
|
|
echo " \`GNUMAKE=<GNU make command name> $0'." >&2
|
|
|
|
echo "or >&2"
|
|
|
|
echo " \`GNUMAKE=\"makepp --norc-substitution\" $0'." >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
* README.UNX: updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time..
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c,
src/base/ftmac.c, src/base/ftobjs.c,
src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c:
added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc...)
this eases the porting of FreeType 2 to exotic environments like
XFree86 modules/extensions..
also removed many #include <string.h>, #include <stdlib.h>, etc...
from the engine's sources where they're not needed..
2002-04-12 13:31:48 +04:00
|
|
|
fi
|
|
|
|
|
2002-05-05 14:57:06 +04:00
|
|
|
# Uh, oh. This is taken from autoconf. They know what they are doing...
|
|
|
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
|
|
|
ft_expr=expr
|
|
|
|
else
|
|
|
|
ft_expr=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
ft2_dir=`(dirname "$0") 2>/dev/null ||
|
|
|
|
$ft_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
|
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
|
|
|
X"$0" : 'X\(//\)$' \| \
|
|
|
|
X"$0" : 'X\(/\)' \| \
|
|
|
|
. : '\(.\)' 2>/dev/null ||
|
|
|
|
echo X"$0" |
|
|
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
|
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
|
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
|
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
|
|
|
s/.*/./; q'`
|
|
|
|
|
|
|
|
abs_curr_dir=`pwd`
|
|
|
|
abs_ft2_dir=`cd "$ft2_dir" && pwd`
|
|
|
|
|
|
|
|
# build a dummy Makefile if we are not building in the source tree
|
|
|
|
|
|
|
|
if test "$abs_curr_dir" != "$abs_ft2_dir"; then
|
2003-07-09 19:20:32 +04:00
|
|
|
mkdir reference
|
2005-02-13 08:46:50 +03:00
|
|
|
echo "TOP_DIR := $abs_ft2_dir" > Makefile
|
|
|
|
echo "OBJ_DIR := $abs_curr_dir" >> Makefile
|
|
|
|
echo "OBJ_BUILD := \$(OBJ_DIR)" >> Makefile
|
|
|
|
echo "DOC_DIR := \$(OBJ_DIR)/reference" >> Makefile
|
|
|
|
echo "LIBTOOL := \$(OBJ_DIR)/libtool" >> Makefile
|
|
|
|
echo "ifndef FT2DEMOS" >> Makefile
|
|
|
|
echo " include \$(TOP_DIR)/Makefile" >> Makefile
|
|
|
|
echo "else" >> Makefile
|
|
|
|
echo " TOP_DIR_2 := \$(TOP_DIR)/../ft2demos" >> Makefile
|
|
|
|
echo " PROJECT := freetype" >> Makefile
|
|
|
|
echo " CONFIG_MK := \$(OBJ_DIR)/config.mk" >> Makefile
|
|
|
|
echo " include \$(TOP_DIR_2)/Makefile" >> Makefile
|
|
|
|
echo "endif" >> Makefile
|
2002-05-05 14:57:06 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# call make
|
|
|
|
|
* README.UNX: updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time..
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c,
src/base/ftmac.c, src/base/ftobjs.c,
src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c:
added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc...)
this eases the porting of FreeType 2 to exotic environments like
XFree86 modules/extensions..
also removed many #include <string.h>, #include <stdlib.h>, etc...
from the engine's sources where they're not needed..
2002-04-12 13:31:48 +04:00
|
|
|
CFG="$@" $GNUMAKE setup unix
|
2002-05-05 14:57:06 +04:00
|
|
|
|
|
|
|
# eof
|