Browse Source

mg: bump to 6.9

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
lilik-openwrt-22.03
Hirokazu MORIKAWA 3 years ago
committed by Hannu Nyman
parent
commit
69c42cda62
2 changed files with 5 additions and 4 deletions
  1. +2
    -2
      utils/mg/Makefile
  2. +3
    -2
      utils/mg/patches/001-cross_compile_openwrt.patch

+ 2
- 2
utils/mg/Makefile View File

@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mg
PKG_VERSION:=6.8.1
PKG_VERSION:=6.9
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/ibara/mg/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
PKG_HASH:=d14c6f3a945d9f5241f20aea8553914ec28d93218e0b091161c122937c56d3e4
PKG_HASH:=1f5194ceb0062934a6aed12cfb9bfa6d22b7e95069995a7d78cf9bb17e3b4423
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>


+ 3
- 2
utils/mg/patches/001-cross_compile_openwrt.patch View File

@ -89,7 +89,7 @@
# Option variables
if [ ! -z "$PREFIX" ] ; then
prefix="$PREFIX"
@@ -327,79 +254,9 @@ if [ $static -ne 0 ] ; then
@@ -327,80 +254,9 @@ if [ $static -ne 0 ] ; then
ldflags="${ldflags}-static"
fi
@ -137,6 +137,7 @@
-case "x$os" in
- "xLinux"|"xCYGWIN"*)
- cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
- libs="$libs -lutil"
- ;;
- "xDarwin")
- cflags="$cflags -DMSG_NOSIGNAL=SO_NOSIGPIPE -DLOGIN_NAME_MAX=MAXLOGNAME"
@ -167,7 +168,7 @@
- ;;
-esac
+# OpenWrt
+libs='-lncurses -lpcreposix'
+libs='-lncurses -lpcreposix -lutil'
+cflags="$cflags -D_GNU_SOURCE -D__dead=\"__attribute__((__noreturn__))\" -Dst_mtimespec=st_mtim"
cat << EOF > config.h


Loading…
Cancel
Save