svn commit: r420741 - in head/editors/mg: . files

John Marino marino at FreeBSD.org
Tue Aug 23 20:18:15 UTC 2016


Author: marino
Date: Tue Aug 23 20:18:14 2016
New Revision: 420741
URL: https://svnweb.freebsd.org/changeset/ports/420741

Log:
  editors/mg: document and fix ncurses requirement
  
  Approved by:	ncurses blanket

Added:
  head/editors/mg/files/patch-GNUmakefile   (contents, props changed)
  head/editors/mg/files/patch-Makefile   (contents, props changed)
Modified:
  head/editors/mg/Makefile

Modified: head/editors/mg/Makefile
==============================================================================
--- head/editors/mg/Makefile	Tue Aug 23 19:54:52 2016	(r420740)
+++ head/editors/mg/Makefile	Tue Aug 23 20:18:14 2016	(r420741)
@@ -3,12 +3,14 @@
 
 PORTNAME=	mg
 PORTVERSION=	20160421
+PORTREVISION=	1
 CATEGORIES=	editors
 MASTER_SITES=	http://homepage.boetes.org/software/mg/
 
 MAINTAINER=	darcsis at gmail.com
 COMMENT=	Small, fast Emacs-like editor
 
+USES=		ncurses
 PLIST_FILES=	bin/mg man/man1/mg.1.gz
 PORTDOCS=	README tutorial
 

Added: head/editors/mg/files/patch-GNUmakefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/mg/files/patch-GNUmakefile	Tue Aug 23 20:18:14 2016	(r420741)
@@ -0,0 +1,22 @@
+--- GNUmakefile.orig	2016-01-18 15:01:49 UTC
++++ GNUmakefile
+@@ -17,16 +17,10 @@ PKG_CONFIG=	/usr/bin/pkg-config
+ INSTALL=	/usr/bin/install
+ STRIP=		/usr/bin/strip
+ 
+-UNAME:=		$(shell uname)
+-ifeq ($(UNAME),FreeBSD)
+-  BSD_CPPFLAGS:=
+-  BSD_LIBS:=	-lutil
+-else
+-  BSD_CPPFLAGS:=$(shell $(PKG_CONFIG) --cflags libbsd-overlay)
+-  BSD_LIBS:=	$(shell $(PKG_CONFIG) --libs libbsd-overlay)
+-endif
++BSD_CPPFLAGS:=
++BSD_LIBS:=	-lutil
+ 
+-CURSES_LIBS=	-lcurses
++CURSES_LIBS=	-lncurses
+ 
+ CC?=		gcc
+ CFLAGS?=	-O2 -pipe

Added: head/editors/mg/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/mg/files/patch-Makefile	Tue Aug 23 20:18:14 2016	(r420741)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2016-01-07 18:55:54 UTC
++++ Makefile
+@@ -2,7 +2,7 @@
+ 
+ PROG=	mg
+ 
+-LDADD+=	-lcurses -lutil
++LDADD+=	-lncurses -lutil
+ DPADD+=	${LIBCURSES} ${LIBUTIL}
+ 
+ # (Common) compile-time options:


More information about the svn-ports-all mailing list