Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #
  2. # FreeType 2 installation instructions for Unix systems
  3. #
  4.  
  5.  
  6. # Copyright 1996-2000, 2002, 2003, 2006, 2013 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 no longer install internal headers, and we remove any
  28. # `internal' subdirectory found in `$(includedir)/freetype2/freetype'.
  29. #
  30. install: $(PROJECT_LIBRARY)
  31.         $(MKINSTALLDIRS) $(DESTDIR)$(libdir)                               \
  32.                          $(DESTDIR)$(libdir)/pkgconfig                     \
  33.                          $(DESTDIR)$(includedir)/freetype2/freetype/config \
  34.                          $(DESTDIR)$(bindir)                               \
  35.                          $(DESTDIR)$(datadir)/aclocal
  36.         $(LIBTOOL) --mode=install $(INSTALL)                             \
  37.                                   $(PROJECT_LIBRARY) $(DESTDIR)$(libdir)
  38.         -for P in $(PUBLIC_H) ; do                           \
  39.           $(INSTALL_DATA)                                    \
  40.             $$P $(DESTDIR)$(includedir)/freetype2/freetype ; \
  41.         done
  42.         -for P in $(CONFIG_H) ; do                                  \
  43.           $(INSTALL_DATA)                                           \
  44.             $$P $(DESTDIR)$(includedir)/freetype2/freetype/config ; \
  45.         done
  46.         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/cache/*
  47.         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/cache
  48.         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/internal/*
  49.         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/internal
  50.         $(INSTALL_DATA) $(BUILD_DIR)/ft2unix.h \
  51.           $(DESTDIR)$(includedir)/ft2build.h
  52.         $(INSTALL_DATA) $(OBJ_BUILD)/ftconfig.h                        \
  53.           $(DESTDIR)$(includedir)/freetype2/freetype/config/ftconfig.h
  54.         $(INSTALL_DATA) $(OBJ_DIR)/ftmodule.h                          \
  55.           $(DESTDIR)$(includedir)/freetype2/freetype/config/ftmodule.h
  56.         $(INSTALL_SCRIPT) -m 755 $(OBJ_BUILD)/freetype-config \
  57.           $(DESTDIR)$(bindir)/freetype-config
  58.         $(INSTALL_SCRIPT) -m 644 $(BUILD_DIR)/freetype2.m4 \
  59.           $(DESTDIR)$(datadir)/aclocal/freetype2.m4
  60.         $(INSTALL_SCRIPT) -m 644 $(OBJ_BUILD)/freetype2.pc \
  61.           $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
  62.  
  63.  
  64. uninstall:
  65.         -$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/$(LIBRARY).$A
  66.         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/config/*
  67.         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype/config
  68.         -$(DELETE) $(DESTDIR)$(includedir)/freetype2/freetype/*
  69.         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2/freetype
  70.         -$(DELDIR) $(DESTDIR)$(includedir)/freetype2
  71.         -$(DELETE) $(DESTDIR)$(includedir)/ft2build.h
  72.         -$(DELETE) $(DESTDIR)$(bindir)/freetype-config
  73.         -$(DELETE) $(DESTDIR)$(datadir)/aclocal/freetype2.m4
  74.         -$(DELETE) $(DESTDIR)$(libdir)/pkgconfig/freetype2.pc
  75.  
  76.  
  77. check:
  78.         @echo There is no validation suite for this package.
  79.  
  80.  
  81. .PHONY: clean_project_unix distclean_project_unix
  82.  
  83. # Unix cleaning and distclean rules.
  84. #
  85. clean_project_unix:
  86.         -$(DELETE) $(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)
  87.         -$(DELETE) $(patsubst %.$O,%.$(SO),$(BASE_OBJECTS) $(OBJ_M) $(OBJ_S)) \
  88.                    $(CLEAN)
  89.  
  90. distclean_project_unix: clean_project_unix
  91.         -$(DELETE) $(PROJECT_LIBRARY)
  92.         -$(DELETE) $(OBJ_DIR)/.libs/*
  93.         -$(DELDIR) $(OBJ_DIR)/.libs
  94.         -$(DELETE) *.orig *~ core *.core $(DISTCLEAN)
  95.  
  96. # EOF
  97.