diff --git a/sysutils/radeontop/Makefile b/sysutils/radeontop/Makefile index 2a93a76fd5b3..4360a10dfdaf 100644 --- a/sysutils/radeontop/Makefile +++ b/sysutils/radeontop/Makefile @@ -1,44 +1,40 @@ # Created by: Alexey Dokuchaev PORTNAME= radeontop -PORTVERSION= 1.3 +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 -PLIST_FILES= lib/libradeontop_xcb.so \ - man/man1/radeontop.1.gz \ - sbin/radeontop - OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes 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 diff --git a/sysutils/radeontop/distinfo b/sysutils/radeontop/distinfo index 1fa0b4e1e9ad..3b15f52c67c2 100644 --- a/sysutils/radeontop/distinfo +++ b/sysutils/radeontop/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1607515229 -SHA256 (clbr-radeontop-v1.3_GH0.tar.gz) = 0e6abacafa3c795ee783be18b736f6dfc7ff93c6e3c3237cc7c1684863e08100 -SIZE (clbr-radeontop-v1.3_GH0.tar.gz) = 38138 +TIMESTAMP = 1627025044 +SHA256 (clbr-radeontop-v1.4_GH0.tar.gz) = 2c1e2aace1a749d8e4530047ce245004e0f7d1d32a99037917e03d83e60f7ad1 +SIZE (clbr-radeontop-v1.4_GH0.tar.gz) = 44602 diff --git a/sysutils/radeontop/files/patch-Makefile b/sysutils/radeontop/files/patch-Makefile index 4ba952b9a746..7986075e6cd7 100644 --- a/sysutils/radeontop/files/patch-Makefile +++ b/sysutils/radeontop/files/patch-Makefile @@ -1,42 +1,42 @@ --- Makefile.orig 2016-10-28 07:41:05 UTC +++ Makefile @@ -42,6 +42,7 @@ CFLAGS += $(shell pkg-config --cflags nc # Comment this if you don't want translations ifeq ($(nls), 1) CFLAGS += -DENABLE_NLS=1 + LIBS += -lintl endif ifeq ($(amdgpu), 1) @@ -62,13 +63,12 @@ LIBS += $(shell pkg-config --libs pciacc LIBS += $(shell pkg-config --libs libdrm) ifeq ($(xcb), 1) xcb_LIBS += $(shell pkg-config --libs xcb xcb-dri2) - LIBS += -ldl endif # On some distros, you might have to change this to ncursesw LIBS += $(shell pkg-config --libs ncursesw 2>/dev/null || \ shell pkg-config --libs ncurses 2>/dev/null || \ - echo "-lncurses") + echo "-lncursesw") .PHONY: all clean install man dist @@ -98,12 +98,12 @@ trans: xgettext -o translations/radeontop.pot -k_ *.c \ --package-name radeontop -install: all -- $(INSTALL) -D -m755 $(bin) $(DESTDIR)/$(PREFIX)/sbin/$(bin) +- $(INSTALL) -D -m755 $(bin) $(DESTDIR)/$(PREFIX)/bin/$(bin) +install: -+ $(INSTALL) -m755 $(bin) $(DESTDIR)$(PREFIX)/sbin ++ $(INSTALL) -m755 $(bin) $(DESTDIR)$(PREFIX)/bin ifeq ($(xcb), 1) - $(INSTALL) -D -m755 $(xcblib) $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(xcblib) + $(INSTALL) -m755 $(xcblib) $(DESTDIR)$(PREFIX)/$(LIBDIR) endif - $(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)/man1/radeontop.1 + $(INSTALL) -m644 radeontop.1 $(DESTDIR)$(MANPREFIX)/man/man1 ifeq ($(nls), 1) $(MAKE) -C translations install PREFIX=$(PREFIX) endif diff --git a/sysutils/radeontop/pkg-plist b/sysutils/radeontop/pkg-plist new file mode 100644 index 000000000000..be7e45c58031 --- /dev/null +++ b/sysutils/radeontop/pkg-plist @@ -0,0 +1,13 @@ +bin/radeontop +lib/libradeontop_xcb.so +man/man1/radeontop.1.gz +%%NLS%%share/locale/cs/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/de/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/el/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/es/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/fi/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/fr/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/ru/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/sl/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/tr/LC_MESSAGES/radeontop.mo +%%NLS%%share/locale/zh_CN/LC_MESSAGES/radeontop.mo