summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-09-13 09:47:52 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-09-13 09:47:52 (GMT)
commit7695cd835a5577fa515125a60b661ba01d0b2632 (patch)
tree2c08fef922613e05cc1b347bbed5b3cad0f8ce85 /Makefile
parentd70597fd9483f3e6bbea87c3d60e6023dd747252 (diff)
downloadmxe-7695cd835a5577fa515125a60b661ba01d0b2632.zip
mxe-7695cd835a5577fa515125a60b661ba01d0b2632.tar.gz
mxe-7695cd835a5577fa515125a60b661ba01d0b2632.tar.bz2
bugfix: use GNU Patch under FreeBSD (by Tony Theodore)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f41e78e..fbd12a7 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ TOP_DIR := $(patsubst %/,%,$(dir $(MAKEFILE)))
PATH := $(PREFIX)/bin:$(PATH)
SHELL := bash
SED := $(shell gsed --help >/dev/null 2>&1 && echo g)sed
+PATCH := $(shell gpatch --help >/dev/null 2>&1 && echo g)patch
INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
LIBTOOLIZE := $(shell glibtoolize --help >/dev/null 2>&1 && echo g)libtoolize
VERSION := $(shell $(SED) -n 's,^.*<span id="latest-version">\([^<]*\)</span>.*$$,\1,p' '$(TOP_DIR)/doc/index.html')
@@ -125,7 +126,7 @@ build-only-$(1):
cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1))
cd '$(2)/$($(1)_SUBDIR)'
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)),
- (cd '$(2)/$($(1)_SUBDIR)' && patch -p1 -u) < $(PKG_PATCH))
+ (cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
$$(call $(1)_BUILD,$(2)/$($(1)_SUBDIR),$(TOP_DIR)/src/$(1)-test)
rm -rfv '$(2)'
,)