summaryrefslogtreecommitdiffstats
path: root/plugins/native/patch.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-01-13 06:44:21 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-01-17 02:14:05 (GMT)
commit3a7534879772b2aac87912df648e927d096637da (patch)
tree44350eaeb4e21b0861717181196a7138fa6b080f /plugins/native/patch.mk
parent9c573f17c2780e17f95f22474201188272f49400 (diff)
downloadmxe-3a7534879772b2aac87912df648e927d096637da.zip
mxe-3a7534879772b2aac87912df648e927d096637da.tar.gz
mxe-3a7534879772b2aac87912df648e927d096637da.tar.bz2
add gnu patch to native plugins
Diffstat (limited to 'plugins/native/patch.mk')
-rw-r--r--plugins/native/patch.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/native/patch.mk b/plugins/native/patch.mk
new file mode 100644
index 0000000..cb8634b
--- /dev/null
+++ b/plugins/native/patch.mk
@@ -0,0 +1,30 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := patch
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 2.7.5
+$(PKG)_CHECKSUM := 7436f5a19f93c3ca83153ce9c5cbe4847e97c5d956e57a220121e741f6e7968f
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_URL_2 := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
+$(PKG)_WEBSITE := http://www.gnu.org/software/$(PKG)
+$(PKG)_OWNER := https://github.com/tonytheodore
+$(PKG)_TARGETS := $(BUILD)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'http://ftp.gnu.org/gnu/patch/?C=M;O=D' | \
+ $(SED) -n 's,.*<a href="patch-\([0-9][^"]*\)\.tar.*,\1,p' | \
+ $(SORT) -V | \
+ tail -1
+endef
+
+define $(PKG)_BUILD_$(BUILD)
+ mkdir '$(1).build'
+ cd '$(1).build' && '$(1)/configure' \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1).build' -j '$(JOBS)' man1_MANS=
+ $(MAKE) -C '$(1).build' -j 1 install man1_MANS=
+endef