Index: head/editors/mg/Makefile =================================================================== --- head/editors/mg/Makefile (revision 420740) +++ head/editors/mg/Makefile (revision 420741) @@ -1,36 +1,38 @@ # Created by: Dima Dorfman # $FreeBSD$ PORTNAME= mg PORTVERSION= 20160421 +PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= http://homepage.boetes.org/software/mg/ MAINTAINER= darcsis@gmail.com COMMENT= Small, fast Emacs-like editor +USES= ncurses PLIST_FILES= bin/mg man/man1/mg.1.gz PORTDOCS= README tutorial OPTIONS_DEFINE= DOCS .include .if ${OSVERSION} < 1002506 BROKEN= does not build, requires futimens system call .endif pre-configure: @${REINPLACE_CMD} -e 's|__dead|__dead2|' ${WRKSRC}/main.c do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/editors/mg/files/patch-GNUmakefile =================================================================== --- head/editors/mg/files/patch-GNUmakefile (nonexistent) +++ head/editors/mg/files/patch-GNUmakefile (revision 420741) @@ -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 Property changes on: head/editors/mg/files/patch-GNUmakefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/editors/mg/files/patch-Makefile =================================================================== --- head/editors/mg/files/patch-Makefile (nonexistent) +++ head/editors/mg/files/patch-Makefile (revision 420741) @@ -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: Property changes on: head/editors/mg/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property