freebsd-ports/deskutils/sysctlview/Makefile
Kai Knoblich 14108b73ea deskutils/sysctlview: Update to 1.5.1
* The sysctlinfo interface (sysutils/sysctlinfo-kmod) is now required as
  build/run dependency which relies on the "oid_label" constant that was
  introduced in FreeBSD 1200019.

  Thus set the port to IGNORE if the above doesn't apply while I'm here. [1]

Changelog:

* Show nodes up to CTL_MAXNAME (24) levels
* Show the right value of the nodes without the last name
* Show a subtree without leaves (the nodes are all CTLTYPE_NODE)
* The sysctlinfo interface is 30% more efficient than the kernel
  undocumented interface [1]

PR:		240391
Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com> (maintainer)
2019-09-24 17:33:50 +00:00

61 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= sysctlview
PORTVERSION= 1.5.1
CATEGORIES= deskutils
MAINTAINER= alfix86@gmail.com
COMMENT= Show sysctl MIB Tree
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/sysctlinfo.h:sysutils/sysctlinfo-kmod
LIB_DEPENDS= libsysctlmibinfo.so:devel/libsysctlmibinfo
RUN_DEPENDS= ${KMODDIR}/sysctlinfo.ko:sysutils/sysctlinfo-kmod
USES= compiler:c++11-lang gettext-runtime gnome pkgconfig
USE_GNOME= atk atkmm cairo cairomm gdkpixbuf2 glib20 glib20 glibmm glibmm \
gtk30 gtkmm30 libsigc++20 pango pangomm
USE_GITLAB= yes
GL_ACCOUNT= alfix
GL_COMMIT= cdfd6669591497d9178ef3cca99ceb5b9bd9e670
INSTALLS_ICONS= yes
DESKTOP_ENTRIES= "Sysctlview" \
"Show kernel state" \
"sysctlview" \
"sysctlview" \
"System;" \
false
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019
IGNORE= needs oid_label constant in sysctl.h which was first introduced in FreeBSD 12
.endif
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sysctlview ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/sysctlview.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.for i in 16 22 24 32 36 48 64 72 96 128 192 256
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/ && \
${MV} ${WRKSRC}/icon/sysctlview-${i}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/sysctlview.png
.endfor
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/ && \
${MV} ${WRKSRC}/icon/sysctlview.svg \
${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/apps/sysctlview.svg
.include <bsd.port.post.mk>