freebsd-ports/sysutils/radeontop/Makefile
Alexey Dokuchaev afc135ebc9 Add a port of RadeonTop, top(1)-like program that displays AMD Radeon GPU
resource utilization.

WWW: https://github.com/clbr/radeontop

Because GitHub releases (tarballs) are not fetched with correct modification
time, set TIMESTAMP to 1477640465 which corresponds to commit c0abadf tagged
as this release.
2017-03-22 18:56:29 +00:00

42 lines
966 B
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= radeontop
PORTVERSION= 1.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danfe@FreeBSD.org
COMMENT= Program that shows AMD Radeon GPU resource utilization
LICENSE= GPLv3
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \
libdrm.so:graphics/libdrm
USE_GITHUB= yes
GH_ACCOUNT= clbr
USES= gmake pkgconfig
USE_XORG= xcb
MAKE_ARGS= amdgpu=1
PLIST_FILES= lib/libradeontop_xcb.so \
man/man1/radeontop.1.gz \
sbin/radeontop
OPTIONS_DEFINE= NLS
NLS_USES= gettext
NLS_MAKE_ARGS_OFF= nls=0
NLS_PLIST_FILES= share/locale/ru/LC_MESSAGES/radeontop.mo
post-patch:
@${REINPLACE_CMD} -e 's,unknown,v${PORTVERSION}, ; \
s,-n,"$$ver" = unknown -a &,' ${WRKSRC}/getver.sh
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},' ${WRKSRC}/radeontop.c
# cdevs do not provide private mappings of any kind
@${REINPLACE_CMD} -e 's,MAP_PRIVATE,MAP_SHARED,' \
${WRKSRC}/detect.c
.include <bsd.port.mk>