PKG_NAME:=mg
PKG_VERSION:=7.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ibara/mg/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
define Package/mg
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=+libncurses +libpcre
+ DEPENDS:=+libncurses +libpcre2
TITLE:=microscopic EMACS style editor
URL:=https://github.com/ibara/mg
SUBMENU:=Editors
- ;;
-esac
+# OpenWrt
-+libs='-lncurses -lpcreposix -lutil'
++libs='-lncurses -lpcre2-posix -lutil'
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
cat << EOF > config.h
#include <sys/queue.h>
#include <sys/types.h>
-#include <regex.h>
-+#include <pcreposix.h>
++#include <pcre2posix.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>