Makefile   [plain text]


#
# Copyright (c) 2008-2012 Apple Inc. All Rights Reserved.
#

# General project info
Project         = freetype
UserType        = Developer
ToolType        = Library

# Project-specific additions.
#Extra_Environment	= 
Extra_Configure_Flags	= --enable-static --disable-shared \
				--without-ats --without-fsref --without-fsspec \
				--without-old-mac-fonts \
				--without-quickdraw-carbon --without-quickdraw-toolbox
Extra_Make_Flags        =
# Required or AEP parts won't be picked up.
GnuAfterInstall		= install-macosx

# Override defaults because we do want this in /usr/local...
Install_Prefix	= $(USRDIR)/local
Install_Man	= $(Install_Prefix)/share/man
Install_Info	= $(Install_Prefix)/info

# Automatic Extract & Patch
AEP			= YES
AEP_Version		= 2.4.9
# License file must be empty as this is a subproject.
AEP_LicenseFile		=
AEP_Patches		=


# Local targets that must be defined before including the following
# files to get the dependency order correct
.PHONY: $(GnuAfterInstall)

install::

# Include common makefile targets for B&I
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/AEP.make

# Override settings from above include
ifndef MACOSX_DEPLOYMENT_TARGET
	MACOSX_DEPLOYMENT_TARGET = $(shell sw_vers -productVersion | cut -d. -f1-2)
endif
DESTDIR	= $(DSTROOT)

# This needs to be overridden because the project properly uses DESTDIR.
Install_Flags	= DESTDIR="$(DSTROOT)"
# This project does not support the default "install-strip" target.
Install_Target	= install


install-macosx:
	@echo "Reorganizing install for Mac OS X..."
	$(RMDIR) $(DSTROOT)/usr/local/share
	$(RMDIR) $(DSTROOT)/usr/local/bin