open-src/lib/freetype/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Wed, 26 Nov 2008 16:23:15 -0800
changeset 591 a2c6b61a92aa
parent 561 3c2df35483af
child 780 2ea47e897e86
permissions -rw-r--r--
6777135 X builds should record version info in ELF comments
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# Freetype 2.x Makefile
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
     5
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Use subject to license terms.
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
#
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# Permission is hereby granted, free of charge, to any person obtaining a
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# copy of this software and associated documentation files (the
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# "Software"), to deal in the Software without restriction, including
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# without limitation the rights to use, copy, modify, merge, publish,
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# distribute, and/or sell copies of the Software, and to permit persons
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# to whom the Software is furnished to do so, provided that the above
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# copyright notice(s) and this permission notice appear in all copies of
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# the Software and that both the above copyright notice(s) and this
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# permission notice appear in supporting documentation.
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# 
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# 
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# Except as contained in this notice, the name of a copyright holder
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# shall not be used in advertising or otherwise to promote the sale, use
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
# or other dealings in this Software without prior written authorization
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
# of the copyright holder.
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    33
# @(#)Makefile	1.78	08/11/26
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
#
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
PWD:sh=pwd
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
TOP=$(PWD)/../..
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    39
# Package name used in tarballs
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    40
MODULE_NAME=freetype
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    41
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    42
# Library name used in man pages & spec files
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    43
LIBNAME=freetype
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
# Version number (used in path names)
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    46
MODULE_VERSION=2.3.7
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
# Download site for source
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
    49
SOURCE_URL=http://download.savannah.gnu.org/releases/freetype/$(SOURCE_TARBALL_NAME)
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 150
diff changeset
    50
SOURCE_URL_SET=yes
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
# Patches to apply to source after unpacking, in order
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
    53
SOURCE_PATCHES= \
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
    54
	freetype-config.patch \
440
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
    55
	ftoption.h.0.patch \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
    56
	ftconfig.h.1.patch \
465
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    57
	freetype.h.2.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    58
	ttobjs.h.3.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    59
	ttobjs.c.4.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    60
	ttinterp.h.5.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    61
	ttinterp.c.6.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    62
	ttgload.c.7.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    63
	ftconfig.in.8.patch \
440
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
    64
	unix-cc.in.9.patch \
465
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    65
	freetype2.in.10.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    66
	configure.11.patch \
2109a795b937 6723656 Upgrade Freetype2 to version 2.3.7
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 440
diff changeset
    67
	configure.12.patch
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
255
32600afcc112 6632594 FreeType move from /usr/sfw to /usr [LSARC/2007/662]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 203
diff changeset
    69
# Where to install freetype files
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    70
MODULE_PREFIX=/usr
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    71
MODULE_PREFIX_SET=yes
255
32600afcc112 6632594 FreeType move from /usr/sfw to /usr [LSARC/2007/662]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 203
diff changeset
    72
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    73
# Additional command line options to GNU autoconf configure script
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    74
MODULE_CONFIG_OPTS= \
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
    75
	--with-zlib \
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
    76
	--with-pic
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
203
3457d3d2eeae 6593503 unreferenced object=/usr/lib/libz.so.1; unused dependency of /usr/lib/libfontconfig.so.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 197
diff changeset
    78
# pkg-config files that need to have -R added
3457d3d2eeae 6593503 unreferenced object=/usr/lib/libz.so.1; unused dependency of /usr/lib/libfontconfig.so.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 197
diff changeset
    79
FIX_PC_FILES=builds/unix/freetype2.in
3457d3d2eeae 6593503 unreferenced object=/usr/lib/libz.so.1; unused dependency of /usr/lib/libfontconfig.so.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 197
diff changeset
    80
355
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 330
diff changeset
    81
# License file
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 330
diff changeset
    82
LICENSE_FILE=docs/FTL.TXT
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 330
diff changeset
    83
LICENSE_FILE_SET=yes
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 330
diff changeset
    84
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    85
# Need to use GNU Make to build
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    86
MODULE_MAKE=$(GNUMAKE)
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    87
MODULE_MAKE_SET=yes
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    88
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    89
# Don't run normal configure/install rules - freetype is different
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    90
CONFIGURE_TARGETS=$(SOURCE_DIR)/config.mk
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    91
CONFIGURE_TARGETS_SET=yes
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    92
INSTALL_TARGETS=install_freetype
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    93
INSTALL_TARGETS_SET=yes
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
    94
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    95
# Environment variables to pass to configure & build steps
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    96
MODULE_ENV = \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    97
    SHELL="/bin/bash" \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    98
    MAKESHELL="/bin/bash" \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
    99
    CONFIG_SHELL="/bin/bash" \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   100
    CPP="$(CC) -E $(LIB_CFLAGS)" \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   101
    CXXCPP="$(CXX) -E $(CXXFLAGS)" \
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   102
    MAKE=$(GNUMAKE) GNUMAKE=$(GNUMAKE) CFG="$(CONFIG_OPTS)"
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   103
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   104
MODULE_CONFIG_ENV = $(MODULE_ENV)
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   105
MODULE_BUILD_ENV = $(CONFIG_ENV)
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   106
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   107
MODULE_INSTALL_MAKEFLAGS=bindir=$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   108
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   109
### Include common rulesets
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   110
include ../Makefile.inc
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   111
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
### Rules specific to this directory:
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
# Run configure script (Freetype helpfully does this the first time you call
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   115
# gmake - this isn't normal for autoconf programs)
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   116
$(SOURCE_DIR)/config.mk: $(UNPACK_TARGET)
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   117
	(cd $(SOURCE_DIR) ; \
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
   118
	chmod a+x builds/unix/configure builds/unix/mkinstalldirs builds/unix/install-sh ; \
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   119
	$(CONFIG_ENV) $(GNUMAKE) )
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   120
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   121
FT_bindir=$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   122
FT_libdir=$(MODULE_PREFIX)/lib$(ARCHLIBSUBDIR)
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   123
591
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   124
# Have to override default_install since the -e causes our BUILD_DIR to
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   125
# clash with the one in freetype's Makefiles
a2c6b61a92aa 6777135 X builds should record version info in ELF comments
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 561
diff changeset
   126
install_freetype:: $(BUILD_TARGETS)
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 255
diff changeset
   127
	mkdir -p $(PROTODIR)/usr/bin$(ARCHLIBSUBDIR)
440
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   128
	( cd $(SOURCE_DIR)/builds/unix ; \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   129
	    ./config.status --file ftconfig ; \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   130
	    rm -f ftconfig.h ; \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   131
	    mv ftconfig ftconfig.h ; \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   132
	    touch -acm ftconfig.h )
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   133
	( cd $(SOURCE_DIR) ; \
67cd7ac31bce 6712820 Upgrade freetype to 2.3.6
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 410
diff changeset
   134
	    cp -fp ./builds/unix/ftconfig.h ./include/freetype/config/ftconfig.h )
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   135
	( cd $(SOURCE_DIR) ; \
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   136
	  $(GNUMAKE) DESTDIR=$(PROTODIR) prefix=$(MODULE_PREFIX) libdir=$(FT_libdir) bindir=$(FT_bindir) install )
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   137
561
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   138
# $(PROTODIR)/usr/sfw is made so that the RUNPATH in mkfontscale picks up
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   139
# libfreetype from the $(PROTODIR) when running in the build
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   140
install_gen::
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   141
	-/bin/rm -f $(PROTODIR)/usr/sfw
3c2df35483af 6756343 Split FSWxorg-fonts into smaller packages & integrate to Nevada gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   142
	ln -s . $(PROTODIR)/usr/sfw
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   143
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   144
# Make 64-bit link when installing 64-bit binaries
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   145
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   146
BIN_INST_DIR=$(PROTODIR)$(MODULE_PREFIX)/bin
0
b949c5054bc4 Initial OpenSolaris release: X-src-20060331
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   147
330
dc6f3d380708 6667012 freetype upgrade broke fontconfig build
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 325
diff changeset
   148
install_64::
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   149
	-/bin/rm -f $(BIN_INST_DIR)/64
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   150
	ln -s $(SUBDIR64) $(BIN_INST_DIR)/64
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   151
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 465
diff changeset
   152