svn commit: r520688 - head/sysutils/powermon

Baptiste Daroussin bapt at FreeBSD.org
Mon Dec 23 08:42:41 UTC 2019


Author: bapt
Date: Mon Dec 23 08:42:41 2019
New Revision: 520688
URL: https://svnweb.freebsd.org/changeset/ports/520688

Log:
  Replace hardcoded -lcursesw with a version that depends on NCURSES_IMPL
  to be futur proof
  
  While here, add the missing USES=ncurses

Modified:
  head/sysutils/powermon/Makefile

Modified: head/sysutils/powermon/Makefile
==============================================================================
--- head/sysutils/powermon/Makefile	Mon Dec 23 08:38:20 2019	(r520687)
+++ head/sysutils/powermon/Makefile	Mon Dec 23 08:42:41 2019	(r520688)
@@ -17,9 +17,12 @@ ONLY_FOR_ARCHS_REASON=	specific to recent x86 processo
 USE_GITHUB=	yes
 GH_ACCOUNT=	yamagi
 
-USES=		gmake
+USES=		gmake ncurses
 
 PLIST_FILES=	man/man8/powermon.8.gz sbin/powermon
+
+post-patch:
+	${REINPLACE_CMD} 's/cursesw/${NCURSES_IMPL}/g' ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/release/powermon \


More information about the svn-ports-all mailing list