mingw-libgnurx: Add recipe
PATCH v2 1/1 mingw-libgnurx: Add recipe
This implements glibc regex and will be used by many packages e.g. flex, therefore add recipe
Signed-off-by Khem Raj <[email protected]>
---
v2: Remove redundant comment
...onor-DESTDIR-variable-during-install.patch | 39 ++++++ .../0002-Add-autotool-files.patch | 125 ++++++++++++++++++ .../mingw-libgnurx/mingw-libgnurx_2.5.1.bb | 17 +++ 3 files changed, 181 insertions(+) create mode 100644 recipes-support/mingw-libgnurx/mingw-libgnurx/0001-Honor-DESTDIR-variable-during-install.patch create mode 100644 recipes-support/mingw-libgnurx/mingw-libgnurx/0002-Add-autotool-files.patch create mode 100644 recipes-support/mingw-libgnurx/mingw-libgnurx_2.5.1.bb
recipes-support/mingw-libgnurx/mingw-libgnurx/0001-Honor-DESTDIR-variable-during-install.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a9b7e07a8ba9c390d9774daae769748a09d409ce Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 1 May 2021 14:41:21 -0700 +Subject: [PATCH] Honor DESTDIR variable during install + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + Makefile.in | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 6397bf1..8395d2f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -78,16 +78,16 @@ gnurx.lib: libgnurx-$(DLLVERSION).dll + install: install-dll @install_dev@ + + install-dll: +- mkdir -p ${bindir} +- cp -p $(BINDIST_FILES) ${bindir} ++ mkdir -p $(DESTDIR)${bindir} ++ cp -p $(BINDIST_FILES) $(DESTDIR)${bindir} + + install-dev: +- mkdir -p ${includedir} ${libdir} +- cp -p ${srcdir}/regex.h ${includedir} +- cp -p $(DEVDIST_FILES) ${libdir} ++ mkdir -p ${includedir} $(DESTDIR)${libdir} ++ cp -p ${srcdir}/regex.h $(DESTDIR)${includedir} ++ cp -p $(DEVDIST_FILES) $(DESTDIR)${libdir} + for s in 3 7; do \ +- mkdir -p ${mandir}/man$$s; \ +- gzip -c ${srcdir}/regex.$$s > ${mandir}/man$$s/regex.$$s.gz; \ ++ mkdir -p $(DESTDIR)${mandir}/man$$s; \ ++ gzip -c ${srcdir}/regex.$$s > $(DESTDIR)${mandir}/man$$s/regex.$$s.gz; \ + done + + dist: bindist devdist srcdist
recipes-support/mingw-libgnurx/mingw-libgnurx/0002-Add-autotool-files.patch new file +125 -0
125 lines not on this page · raw message
recipes-support/mingw-libgnurx/mingw-libgnurx_2.5.1.bb new file +17 -0
@@ -0,0 +1,17 @@ +# Copyright (C) 2021 Khem Raj <[email protected]> +# Released under the MIT license (see COPYING.MIT for the terms) +LICENSE = "LGPLv2.1" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff" + +SRC_URI = "http://download.sourceforge.net/mingw/Other/UserContributed/regex/mingw-regex-${PV}/mingw-libgnurx-${PV}-src.tar.gz \ + file://0001-Honor-DESTDIR-variable-during-install.patch \ + file://0002-Add-autotool-files.patch \ + " +SRC_URI[sha256sum] = "7147b7f806ec3d007843b38e19f42a5b7c65894a57ffc297a76b0dcd5f675d76" + +inherit autotools + +# Specify any options you want to pass to the configure script using EXTRA_OECONF: +EXTRA_OECONF = "" + +BBCLASSEXTEND = "nativesdk"
Signature · 1 line
2.31.1