Project = xdebug
UserType = Developer
ToolType = Library
_OS_VERSION = $(shell sw_vers -productVersion | cut -d. -f1-2)
Extra_Environment = INSTALL_ROOT="$(DSTROOT)"
Extra_Configure_Flags = --enable-xdebug
Extra_Make_Flags =
GnuAfterInstall = install-macosx
Install_Prefix = $(USRDIR)/local
Install_Man = $(Install_Prefix)/share/man
Install_Info = $(Install_Prefix)/info
AEP = YES
AEP_Version = 2.1.3
AEP_Binaries = $(shell $(DSTROOT)$(USRBINDIR)/php-config --extension-dir)/$(Project).so
AEP_LicenseFile =
AEP_Patches =
.PHONY: post-extract-source $(GnuAfterInstall)
install::
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/AEP.make
DESTDIR = $(DSTROOT)
Install_Flags = DESTDIR="$(DSTROOT)" INSTALL_ROOT="$(DSTROOT)"
Install_Target = install
$(GNUConfigStamp): post-extract-source
post-extract-source: extract-source
@echo "Overlaying phpized build files..."
cd $(Sources)/.. && tar xzf $(SRCROOT)/xdebug-phpized.tar.gz
install-macosx:
@echo "Archiving binaries..."
$(_v) for file in $(addprefix $(DSTROOT),$(AEP_Binaries)); \
do \
$(CP) $${file} $(SYMROOT); \
$(DSYMUTIL) --out=$(SYMROOT)/$${file##*/}.dSYM $${file};\
done