392cf22f8a
This change is a result of a discussion thread on freetype-devel http://lists.nongnu.org/archive/html/freetype-devel/2015-06/msg00041.html Re-introduce the `freetype2' subdirectory for all FreeType header files after installation, and rename the `freetype2' subdirectory in the git repository to `freetype'. * include/freetype2: Renamed to... * include/freetype: This. * CMakeLists.txt (PUBLIC_HEADERS, PUBLIC_CONFIG_HEADERS, PRIVATE_HEADERS): Updated. Update creation of `ftconfig.h'. Install generated `ftconfig.h'. * Jamfile (HDRMACRO, RefDoc), autogen.sh: Updated. * builds/amiga/include/config/ftconfig.h, builds/freetype.mk (PUBLIC_DIR), builds/symbian/bld.inf, builds/toplevel.mk (work), builds/unix/freetype2.in: Updated. * builds/unix/freetype-config.in: Updated. * builds/unix/configure.raw: Don't check for `rmdir'. * builds/unix/unix-def.in (DELDIR): Use `rm -rf', which is portable according to the autoconf info manual. * builds/unix/install.mk (install, uninstall, distclean_project_unix): Update and simplify. * builds/wince/*, builds/windows/*: Updated. * devel/ft2build.h, include/ft2build.h: Updated. * include/freetype2/config/ftheader.h, include/freetype2/internal/ftserv.h, include/freetype2/internal/internal.h: Update all header file macros. * src/tools/chktrcmp.py (TRACE_DEF_FILES): Updated. * docs/*: Updated.
93 lines
3.5 KiB
Makefile
93 lines
3.5 KiB
Makefile
#
|
|
# FreeType 2 installation instructions for Unix systems
|
|
#
|
|
|
|
|
|
# Copyright 1996-2015 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.
|
|
|
|
# If you say
|
|
#
|
|
# make install DESTDIR=/tmp/somewhere/
|
|
#
|
|
# don't forget the final backslash (this command is mainly for package
|
|
# maintainers).
|
|
|
|
|
|
.PHONY: install uninstall check
|
|
|
|
# Unix installation and deinstallation targets.
|
|
#
|
|
# Note that we remove any data found in `$(includedir)/freetype2' before
|
|
# installing new files to avoid interferences with files installed by
|
|
# previous FreeType versions (which use slightly different locations).
|
|
#
|
|
install: $(PROJECT_LIBRARY)
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
|
|
$(DESTDIR)$(libdir)/pkgconfig \
|
|
$(DESTDIR)$(includedir)/freetype2/freetype/config \
|
|
$(DESTDIR)$(bindir) \
|
|
$(DESTDIR)$(datadir)/aclocal \
|
|
$(DESTDIR)$(mandir)/man1
|
|
$(LIBTOOL) --mode=install $(INSTALL) \
|
|
$(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
|
|
-for P in $(PUBLIC_H) ; do \
|
|
$(INSTALL_DATA) \
|
|
$$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
|
|
done
|
|
-for P in $(CONFIG_H) ; do \
|
|
$(INSTALL_DATA) \
|
|
$$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
|
|
done
|
|
$(INSTALL_DATA) $(TOP_DIR)/include/ft2build.h \
|
|
$(DESTDIR)$(includedir)/freetype2/ft2build.h
|
|
$(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
|
|
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
|
|
$(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \
|
|
$(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
|
|
$(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
|
|
$(DESTDIR)$(bindir)/freetype-config
|
|
$(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
|
|
$(DESTDIR)$(datadir)/aclocal/freetype2.m4
|
|
$(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \
|
|
$(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
|
|
$(INSTALL_DATA) $(TOP_DIR)/docs/freetype-config.1 \
|
|
$(DESTDIR)$(mandir)/man1/freetype-config.1
|
|
|
|
|
|
uninstall:
|
|
-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2
|
|
-$(DELETE) $(DESTDIR)$(bindir)/freetype-config
|
|
-$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
|
|
-$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
|
|
-$(DELETE) $(DESTDIR)$(mandir)/man1/freetype-config.1
|
|
|
|
|
|
check:
|
|
@echo There is no validation suite for this package.
|
|
|
|
|
|
.PHONY: clean_project_unix distclean_project_unix
|
|
|
|
# Unix cleaning and distclean rules.
|
|
#
|
|
clean_project_unix:
|
|
-$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
|
|
-$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
|
|
$(CLEAN)
|
|
|
|
distclean_project_unix: clean_project_unix
|
|
-$(DELETE) $(PROJECT_LIBRARY)
|
|
-$(DELDIR) $(OBJ_DIR)/.libs
|
|
-$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
|
|
|
|
# EOF
|