freebsd-ports/sysutils/powermon/Makefile
Baptiste Daroussin 266130ce71 ncurses: fix build with futur base and ports ncurses
in preparation for the split in base of libtinfo and libncurses, clearly
specify when the packages should link against.

Note this also fixes the build with ports ncurses
2021-09-23 18:22:54 +02:00

31 lines
744 B
Makefile

PORTNAME= powermon
PORTVERSION= 1.0.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= yamagi@yamagi.org
COMMENT= Displays the CPUs current power consumption
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= specific to recent x86 processors
USE_GITHUB= yes
GH_ACCOUNT= yamagi
USES= gmake ncurses
PLIST_FILES= man/man8/powermon.8.gz sbin/powermon
post-patch:
${REINPLACE_CMD} 's/-lcursesw/${NCURSESLIBS}/g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/release/powermon \
${STAGEDIR}${PREFIX}/sbin/powermon
${INSTALL_MAN} ${WRKDIR}/${PORTNAME}-${PORTVERSION}/misc/powermon.8 \
${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>