blob: cb2de26d18913304809bc1b690f7721e500445bb (
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
|
PORTNAME= radeontop
PORTVERSION= 1.4
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danfe@FreeBSD.org
COMMENT= Program that shows AMD Radeon GPU resource utilization
LICENSE= GPLv3
NOT_FOR_ARCHS= aarch64 armv6 armv7 mips mips64 riscv64
NOT_FOR_ARCHS_REASON= fails to compile: fatal error: amdgpu_drm.h file not found
LIB_DEPENDS= libpciaccess.so:devel/libpciaccess \
libdrm.so:graphics/libdrm
USE_GITHUB= yes
GH_ACCOUNT= clbr
USES= gmake pkgconfig xorg
USE_XORG= xcb
MAKE_ARGS= amdgpu=1
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_MAKE_ARGS_OFF= nls=0
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>
|