• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# FreeType 2 installation instructions for Unix systems
3#
4
5
6# Copyright (C) 1996-2020 by
7# David Turner, Robert Wilhelm, and Werner Lemberg.
8#
9# This file is part of the FreeType project, and may only be used, modified,
10# and distributed under the terms of the FreeType project license,
11# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
12# indicate that you have read the license and understand and accept it
13# fully.
14
15# If you say
16#
17#   make install DESTDIR=/tmp/somewhere/
18#
19# don't forget the final backslash (this command is mainly for package
20# maintainers).
21
22
23.PHONY: install uninstall check
24
25# Unix installation and deinstallation targets.
26#
27# Note that we remove any data found in `$(includedir)/freetype2' before
28# installing new files to avoid interferences with files installed by
29# previous FreeType versions (which use slightly different locations).
30#
31# We also remove `$(includedir)/ft2build.h' for the same reason.
32#
33# Note that some header files get handled twice for simplicity; a special,
34# configured version overwrites the generic one.
35#
36install: $(PROJECT_LIBRARY)
37	-$(DELDIR) $(DESTDIR)$(includedir)/freetype2
38	-$(DELETE) $(DESTDIR)$(includedir)/ft2build.h
39	$(MKINSTALLDIRS) $(DESTDIR)$(libdir)                               \
40                         $(DESTDIR)$(libdir)/pkgconfig                     \
41                         $(DESTDIR)$(includedir)/freetype2/freetype/config \
42                         $(DESTDIR)$(datadir)/aclocal
43ifeq ($(INSTALL_FT2_CONFIG),TRUE)
44	$(MKINSTALLDIRS) $(DESTDIR)$(bindir)                               \
45                         $(DESTDIR)$(mandir)/man1
46endif
47	$(LIBTOOL) --mode=install $(INSTALL)                             \
48                                  $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
49	-for P in $(PUBLIC_H) ; do                           \
50          $(INSTALL_DATA)                                    \
51            $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
52        done
53	-for P in $(CONFIG_H) ; do                                  \
54          $(INSTALL_DATA)                                           \
55            $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
56        done
57	$(INSTALL_DATA) $(TOP_DIR)/include/ft2build.h                  \
58          $(DESTDIR)$(includedir)/freetype2/ft2build.h
59	$(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h                        \
60          $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
61	$(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h                          \
62          $(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
63	$(INSTALL_DATA) $(OBJ_BUILD)/ftoption.h                        \
64          $(DESTDIR)$(includedir)/freetype2/freetype/config/ftoption.h
65	$(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4             \
66          $(DESTDIR)$(datadir)/aclocal/freetype2.m4
67	$(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc             \
68          $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
69ifeq ($(INSTALL_FT2_CONFIG),TRUE)
70	$(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config          \
71          $(DESTDIR)$(bindir)/freetype-config
72	$(INSTALL_DATA) $(TOP_DIR)/docs/freetype-config.1              \
73          $(DESTDIR)$(mandir)/man1/freetype-config.1
74endif
75
76
77uninstall:
78	-$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
79	-$(DELDIR) $(DESTDIR)$(includedir)/freetype2
80	-$(DELETE) $(DESTDIR)$(bindir)/freetype-config
81	-$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
82	-$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
83	-$(DELETE) $(DESTDIR)$(mandir)/man1/freetype-config.1
84
85
86check:
87	$(info There is no validation suite for this package.)
88
89
90.PHONY: clean_project_unix distclean_project_unix
91
92# Unix cleaning and distclean rules.
93#
94clean_project_unix:
95	-$(LIBTOOL) --mode=clean $(RM) $(OBJECTS_LIST)
96	-$(DELETE) $(CLEAN)
97
98distclean_project_unix: clean_project_unix
99	-$(LIBTOOL) --mode=clean $(RM) $(PROJECT_LIBRARY)
100	-$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
101
102# EOF
103