fae3820764
This large patch changes the header file directory layout from `include/freetype/...' to `include/...', effectively removing one level. Since the file `ft2build.h' is also located in `include' (and it stays there even after installation), all FreeType header files are now in a single directory. Applications that use (a) `freetype-config' or FreeType's `pkg-config' file to get the include directory for the compiler, and (b) the documented way for header inclusion like #include <ft2build.h> #include FT_FREETYPE_H ... don't need any change to the source code. * include/freetype/*: Move up to... * include/*: ... this directory. * builds/amiga/include/freetype/*: Move up to... * builds/amiga/include/*: ... this directory. */*: Essentially do `s@/freetype/@/@' where appropriate. * CMakeList.txt: Simplify. * builds/unix/freetype-config.in, builds/unix/freetype2.in: For `--cflags', return a single directory. * builds/unix/install.mk (install): No longer try to remove `cache' and `internal' subdirectories; instead, remove the `freetype' subdirectory.
96 lines
3.5 KiB
Makefile
96 lines
3.5 KiB
Makefile
#
|
|
# FreeType 2 installation instructions for Unix systems
|
|
#
|
|
|
|
|
|
# Copyright 1996-2000, 2002, 2003, 2006, 2013 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 in the `freetype' subdirectory found in
|
|
# `$(includedir)/freetype2', which was the previous location of the header
|
|
# files up to version 2.5.0.
|
|
#
|
|
install: $(PROJECT_LIBRARY)
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) \
|
|
$(DESTDIR)$(libdir)/pkgconfig \
|
|
$(DESTDIR)$(includedir)/freetype2/config \
|
|
$(DESTDIR)$(bindir) \
|
|
$(DESTDIR)$(datadir)/aclocal
|
|
$(LIBTOOL) --mode=install $(INSTALL) \
|
|
$(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
|
|
-for P in $(PUBLIC_H) ; do \
|
|
$(INSTALL_DATA) \
|
|
$$P $(DESTDIR)$(includedir)/freetype2 ; \
|
|
done
|
|
-for P in $(CONFIG_H) ; do \
|
|
$(INSTALL_DATA) \
|
|
$$P $(DESTDIR)$(includedir)/freetype2/config ; \
|
|
done
|
|
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
|
|
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
|
|
$(INSTALL_DATA) $(BUILD_DIR)/ft2unix.h \
|
|
$(DESTDIR)$(includedir)/ft2build.h
|
|
$(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h \
|
|
$(DESTDIR)$(includedir)/freetype2/config/ftconfig.h
|
|
$(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h \
|
|
$(DESTDIR)$(includedir)/freetype2/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
|
|
|
|
|
|
uninstall:
|
|
-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
|
|
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/config/*
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2/config
|
|
-$(DELETE) $(DESTDIR)$(includedir)/freetype2/*
|
|
-$(DELDIR) $(DESTDIR)$(includedir)/freetype2
|
|
-$(DELETE) $(DESTDIR)$(bindir)/freetype-config
|
|
-$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
|
|
-$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
|
|
|
|
|
|
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)
|
|
-$(DELETE) $(OBJ_DIR)/.libs/*
|
|
-$(DELDIR) $(OBJ_DIR)/.libs
|
|
-$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
|
|
|
|
# EOF
|