# # Copyright (c) 2008-2009 Apple Inc. All Rights Reserved. # # General project info Project = libpng UserType = Developer ToolType = Library # Some Makefile features are available only on Snow Leopard and later. _OS_VERSION = $(shell sw_vers -productVersion | cut -d. -f1-2) # Project-specific additions. #Extra_Environment = Extra_Configure_Flags = --enable-static --disable-shared # The following two flags are defined in the system Makefiles only for Snow Leopard. ifeq ($(_OS_VERSION),10.6) Extra_Make_Flags = else Extra_Configure_Environment = $(Environment) endif # 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 = 1.2.37 # 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 $(SRCROOT)/../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 ifneq ($(_OS_VERSION),10.6) # Since Environment is passed to BOTH configure AND make (overriding what may have # been defined by configure), clear the default Environment since it was already saved # for use with configure by defining Extra_Configure_Environment. Environment = endif install-macosx: @echo "Reorganizing install for Mac OS X..." $(RMDIR) $(DSTROOT)/usr/local/share $(RMDIR) $(DSTROOT)/usr/local/bin