Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Dec 2019 16:28:41 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r521008 - head/sysutils/dvtm/files
Message-ID:  <201912271628.xBRGSfOi093685@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Dec 27 16:28:41 2019
New Revision: 521008
URL: https://svnweb.freebsd.org/changeset/ports/521008

Log:
  Ensure to be able to build with only one libncurses

Modified:
  head/sysutils/dvtm/files/patch-config.mk

Modified: head/sysutils/dvtm/files/patch-config.mk
==============================================================================
--- head/sysutils/dvtm/files/patch-config.mk	Fri Dec 27 16:16:40 2019	(r521007)
+++ head/sysutils/dvtm/files/patch-config.mk	Fri Dec 27 16:28:41 2019	(r521008)
@@ -1,6 +1,6 @@
 --- config.mk.orig	2016-01-09 11:40:56 UTC
 +++ config.mk
-@@ -4,14 +4,14 @@ VERSION = 0.15
+@@ -4,14 +4,19 @@ VERSION = 0.15
  # Customize below to fit your system
  
  PREFIX ?= /usr/local
@@ -11,8 +11,14 @@
  TERMINFO := ${DESTDIR}${PREFIX}/share/terminfo
  
  INCS = -I.
- LIBS = -lc -lutil -lncursesw
+-LIBS = -lc -lutil -lncursesw
 -CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED
++LIBS = -lc -lutil
++.if exists(/usr/lib/libncursesw.so)
++LIBS += -lncursesw
++.else
++LIBS += -lncurses
++.endif
 +CPPFLAGS = -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_XOPEN_SOURCE_EXTENDED -D__BSD_VISIBLE
  CFLAGS += -std=c99 ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG ${CPPFLAGS}
  LDFLAGS += ${LIBS}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912271628.xBRGSfOi093685>