forked from Lainports/freebsd-ports
40 lines
975 B
Makefile
40 lines
975 B
Makefile
PORTNAME= radeontop
|
|
PORTVERSION= 1.4
|
|
PORTREVISION= 1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Program that shows AMD Radeon GPU resource utilization
|
|
WWW= https://github.com/clbr/radeontop
|
|
|
|
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>
|