added my Recipes
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From a370ccd9447752c555aeca04f64021efedde4db3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 7 Apr 2017 17:16:19 -0700
|
||||
Subject: [PATCH] Undefine REGEX for musl based systems
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
GNUmakefile | 1 -
|
||||
Makefile | 2 +-
|
||||
2 files changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
--- a/GNUmakefile
|
||||
+++ b/GNUmakefile
|
||||
@@ -45,7 +45,6 @@ endif
|
||||
CC?= gcc
|
||||
CFLAGS?= -O2 -pipe
|
||||
CFLAGS+= -g -Wall
|
||||
-CPPFLAGS= -DREGEX
|
||||
CPPFLAGS+= -D_GNU_SOURCE
|
||||
CPPFLAGS+= $(BSD_CPPFLAGS)
|
||||
LIBS= $(CURSES_LIBS) $(BSD_LIBS)
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -11,7 +11,7 @@ DPADD+= ${LIBUTIL}
|
||||
# STARTUPFILE -- look for and handle initialization file.
|
||||
# MGLOG -- debug mg internals to a log file.
|
||||
#
|
||||
-CFLAGS+=-Wall -DREGEX `pkg-config --cflags-only-I ncurses`
|
||||
+CFLAGS+=-Wall `pkg-config --cflags-only-I ncurses`
|
||||
|
||||
SRCS= autoexec.c basic.c bell.c buffer.c cinfo.c dir.c display.c \
|
||||
echo.c extend.c file.c fileio.c funmap.c help.c kbd.c keymap.c \
|
||||
@@ -0,0 +1,20 @@
|
||||
From 51539bcd2ee9f765595c0be16eebc1daee112b27 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 7 Apr 2017 16:52:59 -0700
|
||||
Subject: [PATCH 1/2] fileio: Include sys/param.h for MAXNAMLEN
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
fileio.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
--- a/fileio.c
|
||||
+++ b/fileio.c
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
+#include <sys/param.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
@@ -0,0 +1,23 @@
|
||||
From ce24a29cabb8f1774d262e120e5764a2afeb3825 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 7 Apr 2017 16:53:49 -0700
|
||||
Subject: [PATCH 2/2] fileio: Define DEFFILEMODE if platform is missing
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
fileio.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
--- a/fileio.c
|
||||
+++ b/fileio.c
|
||||
@@ -36,6 +36,10 @@
|
||||
#define DEFFILEMODE 0666
|
||||
#endif
|
||||
|
||||
+#if !defined(DEFFILEMODE)
|
||||
+# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
|
||||
+#endif
|
||||
+
|
||||
static char *bkuplocation(const char *);
|
||||
static int bkupleavetmp(const char *);
|
||||
|
||||
38
meta-openembedded/meta-oe/recipes-support/mg/mg_20221112.bb
Normal file
38
meta-openembedded/meta-oe/recipes-support/mg/mg_20221112.bb
Normal file
@@ -0,0 +1,38 @@
|
||||
SUMMARY = "A portable version of the mg maintained by the OpenBSD team"
|
||||
HOMEPAGE = "http://homepage.boetes.org/software/mg/"
|
||||
LICENSE = "PD"
|
||||
LIC_FILES_CHKSUM = "file://version.c;md5=43616508f42ab3fdb082c5f932bd2eb4"
|
||||
DEPENDS = "ncurses libbsd"
|
||||
SECTION = "console/editors"
|
||||
|
||||
SRCREV = "5dbacce10b4cc5fe0785840c09398fc5b19fb96a"
|
||||
SRC_URI = "git://github.com/hboetes/mg;branch=master;protocol=https \
|
||||
file://0001-fileio-Include-sys-param.h-for-MAXNAMLEN.patch \
|
||||
file://0002-fileio-Define-DEFFILEMODE-if-platform-is-missing.patch \
|
||||
"
|
||||
SRC_URI:append:libc-musl = "\
|
||||
file://0001-Undefine-REGEX-for-musl-based-systems.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# CFLAGS isn't in EXTRA_OEMAKE, as the makefile picks it up via ?=
|
||||
EXTRA_OEMAKE = "\
|
||||
'CC=${CC}' \
|
||||
'LDFLAGS=${LDFLAGS}' \
|
||||
\
|
||||
'prefix=${prefix}' \
|
||||
'bindir=${bindir}' \
|
||||
'libdir=${libdir}' \
|
||||
'includedir=${includedir}' \
|
||||
'mandir=${mandir}' \
|
||||
'PKG_CONFIG=pkg-config' \
|
||||
"
|
||||
|
||||
CFLAGS += "-I${STAGING_INCDIR}/bsd"
|
||||
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D}
|
||||
}
|
||||
|
||||
inherit pkgconfig
|
||||
Reference in New Issue
Block a user