diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-12-23 08:42:41 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-12-23 08:42:41 +0000 |
commit | 5db5fc71cf913b0c52f880b5de765d69f31f1c93 (patch) | |
tree | 037a1936f6137a0ef8e419393e9c5d9b54f6061e /sysutils/powermon | |
parent | b487f95f17ba7fa559572c647dca5dacc510b629 (diff) | |
download | ports-5db5fc71cf913b0c52f880b5de765d69f31f1c93.tar.gz ports-5db5fc71cf913b0c52f880b5de765d69f31f1c93.zip |
Replace hardcoded -lcursesw with a version that depends on NCURSES_IMPL
to be futur proof
While here, add the missing USES=ncurses
Notes
Notes:
svn path=/head/; revision=520688
Diffstat (limited to 'sysutils/powermon')
-rw-r--r-- | sysutils/powermon/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/powermon/Makefile b/sysutils/powermon/Makefile index 0a991a374027..9787dcb0e970 100644 --- a/sysutils/powermon/Makefile +++ b/sysutils/powermon/Makefile @@ -17,10 +17,13 @@ ONLY_FOR_ARCHS_REASON= specific to recent x86 processors 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 \ ${STAGEDIR}${PREFIX}/sbin/powermon |