1 ############################################################################### |
1 ############################################################################### |
2 # |
2 # |
3 # Freetype 2.x font rendering library |
3 # Freetype 2.x font rendering library |
4 # |
4 # |
5 # Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved. |
5 # Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. |
6 # |
6 # |
7 # Permission is hereby granted, free of charge, to any person obtaining a |
7 # Permission is hereby granted, free of charge, to any person obtaining a |
8 # copy of this software and associated documentation files (the "Software"), |
8 # copy of this software and associated documentation files (the "Software"), |
9 # to deal in the Software without restriction, including without limitation |
9 # to deal in the Software without restriction, including without limitation |
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
10 # the rights to use, copy, modify, merge, publish, distribute, sublicense, |
85 # Patches to apply to source after unpacking, in order |
85 # Patches to apply to source after unpacking, in order |
86 SOURCE_PATCHES= \ |
86 SOURCE_PATCHES= \ |
87 freetype-GS-conflict.patch,-p1 \ |
87 freetype-GS-conflict.patch,-p1 \ |
88 unix-cc.in.9.patch,-p1 |
88 unix-cc.in.9.patch,-p1 |
89 |
89 |
90 # Where to install freetype files |
|
91 MODULE_PREFIX=/usr |
|
92 MODULE_PREFIX_SET=yes |
|
93 |
|
94 # Additional command line options to GNU autoconf configure script |
90 # Additional command line options to GNU autoconf configure script |
95 MODULE_CONFIG_OPTS= \ |
91 MODULE_CONFIG_OPTS= \ |
96 --enable-biarch-config \ |
92 --enable-biarch-config \ |
97 --with-zlib \ |
93 --with-zlib \ |
98 --with-pic |
94 --with-pic |
114 # Don't use -I paths to proto area, since freetype doesn't depend on |
110 # Don't use -I paths to proto area, since freetype doesn't depend on |
115 # anything there, but can break if it finds old freetype headers during |
111 # anything there, but can break if it finds old freetype headers during |
116 # an incremental rebuild. |
112 # an incremental rebuild. |
117 USE_DEFAULT_CONFIG_CPPFLAGS=no |
113 USE_DEFAULT_CONFIG_CPPFLAGS=no |
118 |
114 |
119 MODULE_INSTALL_MAKEFLAGS=bindir=$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) |
115 MODULE_INSTALL_MAKEFLAGS=bindir=$(MODULE_BIN_DIR)$(ARCHLIBSUBDIR) |
120 |
116 |
121 # Don't touch apinames when running set-elf-comments or it will trigger |
117 # Don't touch apinames when running set-elf-comments or it will trigger |
122 # a rebuild during "make install" that loses the comments. |
118 # a rebuild during "make install" that loses the comments. |
123 MODULE_ELF_COMMENTS_FLAGS = -X apinames |
119 MODULE_ELF_COMMENTS_FLAGS = -X apinames |
124 |
120 |
125 ### Include common rulesets |
121 ### Include common rulesets |
126 include ../Makefile.inc |
122 include ../Makefile.inc |
127 |
123 |
128 ### Rules specific to this directory: |
124 ### Rules specific to this directory: |
129 |
125 |
130 FT_libdir=$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR) |
126 install_freetype_links: $(PROTODIR)$(MODULE_FULLARCH_LIB_DIR)/libfreetype.so |
131 |
127 |
132 install_freetype_links: $(PROTODIR)$(FT_libdir)/libfreetype.so |
128 $(PROTODIR)$(MODULE_FULLARCH_LIB_DIR)/libfreetype.so: default_install |
133 |
|
134 $(PROTODIR)$(FT_libdir)/libfreetype.so: default_install |
|
135 mkdir -p $(@D) |
129 mkdir -p $(@D) |
136 -rm -f $@ |
130 -rm -f $@ |
137 ln -s libfreetype.so.6 $@ |
131 ln -s libfreetype.so.6 $@ |
138 |
132 |
139 install_freetype_docs: $(PROTODIR)$(MODULE_DOC_DIR)/index.html |
133 install_freetype_docs: $(PROTODIR)$(MODULE_DOC_DIR)/index.html |