- moved default installation of header files to "include/freetype2"

instead of "include/freetype"

- added generation and installation of "freetype-config" script
This commit is contained in:
David Turner 2000-11-09 18:29:59 +00:00
parent 80766b137d
commit 1babd5db86
5 changed files with 120 additions and 34 deletions

View File

@ -2302,7 +2302,7 @@ done
ac_given_srcdir=$srcdir ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL" ac_given_INSTALL="$INSTALL"
trap 'rm -fr `echo "cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in ftconfig.h:ftconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 trap 'rm -fr `echo "cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in freetype-config ftconfig.h:ftconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF EOF
cat >> $CONFIG_STATUS <<EOF cat >> $CONFIG_STATUS <<EOF
@ -2404,7 +2404,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF cat >> $CONFIG_STATUS <<EOF
CONFIG_FILES=\${CONFIG_FILES-"cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in"} CONFIG_FILES=\${CONFIG_FILES-"cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in freetype-config"}
EOF EOF
cat >> $CONFIG_STATUS <<\EOF cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then

View File

@ -82,6 +82,6 @@ AM_PROG_LIBTOOL
dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk' dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk'
dnl and 'builds/cygwin/cygwin-cc.mk' that will be used by the build system dnl and 'builds/cygwin/cygwin-cc.mk' that will be used by the build system
dnl dnl
AC_OUTPUT(cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in) AC_OUTPUT(cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in freetype-config)
dnl end of configure.in dnl end of configure.in

View File

@ -33,12 +33,13 @@ INSTALL := @INSTALL@
INSTALL_DATA := @INSTALL_DATA@ INSTALL_DATA := @INSTALL_DATA@
MKINSTALLDIRS := $(BUILD)/mkinstalldirs MKINSTALLDIRS := $(BUILD)/mkinstalldirs
DISTCLEAN += $(BUILD)/config.cache \ DISTCLEAN += $(BUILD)/config.cache \
$(BUILD)/config.log \ $(BUILD)/config.log \
$(BUILD)/config.status \ $(BUILD)/config.status \
$(BUILD)/cygwin-def.mk \ $(BUILD)/cygwin-def.mk \
$(BUILD)/cygwin-cc.mk \ $(BUILD)/cygwin-cc.mk \
$(BUILD)/ftconfig.h \ $(BUILD)/ftconfig.h \
$(BUILD)/freetype-config \
$(LIBTOOL) $(LIBTOOL)

View File

@ -0,0 +1,81 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage()
{
cat <<EOF
Usage: freetype-config [OPTIONS] [LIBRARIES]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
EOF
exit $1
}
if test $# -eq 0; then
usage 1 1>&2
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo_prefix=yes
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo_exec_prefix=yes
;;
--version)
echo @VERSION@
exit 0
;;
--cflags)
echo_cflags=yes
;;
--libs)
echo_libs=yes
;;
*)
usage 1 1>&2
;;
esac
shift
done
if test "$echo_prefix" = "yes"; then
echo $prefix
fi
if test "$echo_exec_prefix" = "yes"; then
echo $exec_prefix
fi
if test "$echo_cflags" = "yes"; then
cflags="-I@includedir@/freetype2"
echo $cflags $includes
fi
if test "$echo_libs" = "yes"; then
libs="-lfreetype"
echo -L@libdir@ $libs
fi

View File

@ -1,5 +1,5 @@
# #
# FreeType 2 installation instructions for Unix-like systems # FreeType 2 installation instructions for Unix systems
# #
@ -14,46 +14,50 @@
# Unix installation and deinstallation targets. # Unix installation and deinstallation targets.
install: $(PROJECT_LIBRARY) install: $(PROJECT_LIBRARY)
$(MKINSTALLDIRS) $(libdir) \ $(MKINSTALLDIRS) $(libdir) \
$(includedir)/freetype/config \ $(includedir)/freetype2/freetype/config \
$(includedir)/freetype/internal \ $(includedir)/freetype2/freetype/internal \
$(includedir)/freetype/cache $(includedir)/freetype2/freetype/cache \
$(bindir)
$(LIBTOOL) --mode=install $(INSTALL) $(PROJECT_LIBRARY) $(libdir) $(LIBTOOL) --mode=install $(INSTALL) $(PROJECT_LIBRARY) $(libdir)
-for P in $(PUBLIC_H) ; do \ -for P in $(PUBLIC_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype ; \ $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype ; \
done done
-for P in $(BASE_H) ; do \ -for P in $(BASE_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype/internal ; \ $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/internal ; \
done done
-for P in $(CONFIG_H) ; do \ -for P in $(CONFIG_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype/config ; \ $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/config ; \
done done
-for P in $(BASE_H) ; do \ -for P in $(CACHE_H) ; do \
$(INSTALL_DATA) $$P $(includedir)/freetype/cache ; \ $(INSTALL_DATA) $$P $(includedir)/freetype2/freetype/cache ; \
done done
$(INSTALL) -m a+x $(BUILD)/freetype-config $(bindir)/freetype-config
uninstall: uninstall:
-$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/$(PROJECT_LIBRARY).$A -$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/lib$(PROJECT).$A
-$(DELETE) $(includedir)/freetype/cache/* -$(DELETE) $(includedir)/freetype2/freetype/cache/*
-$(DELDIR) $(includedir)/freetype/cache -$(DELDIR) $(includedir)/freetype2/freetype/cache
-$(DELETE) $(includedir)/freetype/config/* -$(DELETE) $(includedir)/freetype2/freetype/config/*
-$(DELDIR) $(includedir)/freetype/config -$(DELDIR) $(includedir)/freetype2/freetype/config
-$(DELETE) $(includedir)/freetype/internal/* -$(DELETE) $(includedir)/freetype2/freetype/internal/*
-$(DELDIR) $(includedir)/freetype/internal -$(DELDIR) $(includedir)/freetype2/freetype/internal
-$(DELETE) $(includedir)/freetype/* -$(DELETE) $(includedir)/freetype2/freetype/*
-$(DELDIR) $(includedir)/freetype -$(DELDIR) $(includedir)/freetype2/freetype
-$(DELDIR) $(includedir)/freetype2
-$(DELETE) $(bindir)/freetype-config
# Unix cleaning and distclean rules. # Unix cleaning and distclean rules.
# #
clean_project_cygwin: clean_project_unix:
-$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S) -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
-$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \ -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
$(CLEAN) $(CLEAN)
distclean_project_cygwin: clean_project_cygwin distclean_project_unix: clean_project_unix
-$(DELETE) $(PROJECT_LIBRARY) -$(DELETE) $(PROJECT_LIBRARY)
-$(DELETE) $(OBJ_DIR)/.libs/* -$(DELETE) $(OBJ_DIR)/.libs/*
-$(DELDIR) $(OBJ_DIR)/.libs -$(DELDIR) $(OBJ_DIR)/.libs