diff --git a/ports-mgmt/dialog4ports/Makefile b/ports-mgmt/dialog4ports/Makefile index 5b951ea9653a..e8167ac67393 100644 --- a/ports-mgmt/dialog4ports/Makefile +++ b/ports-mgmt/dialog4ports/Makefile @@ -1,58 +1,58 @@ PORTNAME= dialog4ports PORTVERSION= 0.1.6 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= ports-mgmt MASTER_SITES= https://files.etoilebsd.net/dialog4ports/ \ http://mirror.shatow.net/freebsd/${PORTNAME}/ \ http://files.etoilebsd.net/dialog4ports/:dialog \ ftp://invisible-island.net/dialog/:dialog \ http://mirror.shatow.net/freebsd/${PORTNAME}/:dialog MAINTAINER= rum1cro@yandex.ru COMMENT?= Console Interface to configure ports WWW= https://bitbucket.org/m1cro/d4p/ LICENSE= BSD2CLAUSE USES= uidfix # CCACHE has options, so may need d4p, make d4p not ccache friendly # to avoid circular dependency NO_CCACHE= yes MAKE_ENV+= __MAKE_CONF=/dev/null SRCCONF=/dev/null .if !exists(/usr/lib/libdialog.so) BROKEN= Requires libdialog in base .endif DEPRECATED= Consider using ports-mgmt/portconfig which is a dropin replacement .if !defined(D4P_SLAVE) -PLIST_FILES= bin/dialog4ports man/man1/${PORTNAME}.1.gz +PLIST_FILES= bin/dialog4ports share/man/man1/${PORTNAME}.1.gz .endif .include .if defined(DEBUG_FLAGS) MAKE_ARGS+= DEBUG_FLAGS="${DEBUG_FLAGS}" .endif ## This is used by 'make config' via Tools/scripts/dialog4ports.sh ## Use caution in changing .if !exists(${DIALOG4PORTS}) DIALOG4PORTS= ${WRKSRC}/dialog4ports .endif .if defined(D4P_SLAVE) DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ ${DIALOGNAME}.tgz:dialog DIALOGNAME= dialog-1.1-20120706 MAKE_ENV+= DIALOGSOURCES=${WRKDIR}/${DIALOGNAME} do-configure: @cd ${WRKDIR}/${DIALOGNAME}; ./configure .endif .include diff --git a/ports-mgmt/dialog4ports/files/patch-Makefile b/ports-mgmt/dialog4ports/files/patch-Makefile index 642df2acd2ce..66827294bd3a 100644 --- a/ports-mgmt/dialog4ports/files/patch-Makefile +++ b/ports-mgmt/dialog4ports/files/patch-Makefile @@ -1,16 +1,20 @@ --- Makefile.orig 2016-07-08 14:49:08 UTC +++ Makefile -@@ -5,7 +5,12 @@ RM?= rm +@@ -5,10 +5,15 @@ RM?= rm MAN= ${PROG}.1.gz PROG= dialog4ports CFLAGS+= -Wall -pedantic -LDADD+= -lncursesw -lm +.if exists(/usr/lib/libncursesw.so) +LDADD+= -lncursesw +.else +LDADD+= -lncurses +.endif +LDADD+= -lm PREFIX?= /usr/local BINDIR= ${PREFIX}/bin - MAN1DIR= ${PREFIX}/man/man1 +-MAN1DIR= ${PREFIX}/man/man1 ++MAN1DIR= ${PREFIX}/share/man/man1 + BSD_INSTALL_PROGRAM?= install -m 0555 + BSD_INSTALL_DATA?= install -m 0444 +