blob: 88ee6926f344b2e46496c8cf8b8327a9ad571486 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# 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
NOT_FOR_ARCHS= aarch64 armv6 mips mips64
NOT_FOR_ARCHS_REASON= fails to compile: fatal error: amdgpu_drm.h file not found
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>
|