mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
mg: switch pcre to pcre2
Switch pcre to pcre2
https://github.com/openwrt/packages/issues/22006
Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
(cherry picked from commit 3d11e5c197)
This commit is contained in:
committed by
Josef Schlehofer
parent
e731fe9808
commit
244bc7e8a2
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=mg
|
PKG_NAME:=mg
|
||||||
PKG_VERSION:=7.3
|
PKG_VERSION:=7.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/ibara/mg/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/ibara/mg/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
|
||||||
@@ -22,7 +22,7 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/mg
|
define Package/mg
|
||||||
SECTION:=utils
|
SECTION:=utils
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
DEPENDS:=+libncurses +libpcre
|
DEPENDS:=+libncurses +libpcre2
|
||||||
TITLE:=microscopic EMACS style editor
|
TITLE:=microscopic EMACS style editor
|
||||||
URL:=https://github.com/ibara/mg
|
URL:=https://github.com/ibara/mg
|
||||||
SUBMENU:=Editors
|
SUBMENU:=Editors
|
||||||
|
|||||||
@@ -168,7 +168,7 @@
|
|||||||
- ;;
|
- ;;
|
||||||
-esac
|
-esac
|
||||||
+# OpenWrt
|
+# OpenWrt
|
||||||
+libs='-lncurses -lpcreposix -lutil'
|
+libs='-lncurses -lpcre2-posix -lutil'
|
||||||
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
|
||||||
|
|
||||||
cat << EOF > config.h
|
cat << EOF > config.h
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
-#include <regex.h>
|
-#include <regex.h>
|
||||||
+#include <pcreposix.h>
|
+#include <pcre2posix.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user