PORTNAME= nvidia-settings PORTVERSION= 535.146.02 PORTREVISION= 1 CATEGORIES= x11 MAINTAINER= x11@FreeBSD.org COMMENT= Display Control Panel for X NVidia driver WWW= https://www.nvidia.com/object/unix.html LICENSE= GPLv2 ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= Nvidia driver is only available on x86 BUILD_DEPENDS= ${LOCALBASE}/include/dbus-1.0/dbus/dbus.h:devel/dbus LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 \ libharfbuzz.so:print/harfbuzz \ libjansson.so:devel/jansson \ libvdpau.so:multimedia/libvdpau USES= gl gmake gnome pkgconfig gettext-runtime xorg USE_GNOME= gtk30 cairo gdkpixbuf2 USE_GL= gl USE_XORG= x11 xext xv xxf86vm USE_GITHUB= yes GH_ACCOUNT= NVIDIA PLIST_FILES= bin/nvidia-settings \ libexec/nvidia-settings \ lib/libnvidia-gtk3.so.${PORTVERSION} \ share/applications/nvidia-settings.desktop \ share/man/man1/nvidia-settings.1.gz \ share/pixmaps/nvidia-settings.png SUB_FILES= nvidia-settings LDFLAGS+= -pthread LLD_UNSAFE= yes MAKE_ENV= NV_USE_BUNDLED_LIBJANSSON=0 \ NV_VERBOSE=1 \ GTK2_AVAILABLE=0 \ INSTALL_DOC_ARGS="${INSTALL_MAN:Ninstall}" \ XNVCTRL_CFLAGS=-I${LOCALBASE}/include \ XNVCTRL_LDFLAGS=-L${LOCALBASE}/lib post-patch: .SILENT ${REINPLACE_CMD} -E -e 's,__(PIXMAP|UTILS)_PATH__/,,' \ -e 's|__NVIDIA_SETTINGS_DESKTOP_CATEGORIES__|Settings;HardwareSettings;|' \ ${WRKSRC}/doc/nvidia-settings.desktop ${REINPLACE_CMD} -e 's|/usr/share/nvidia/|${LOCALBASE}/share/doc/NVIDIA_GLX-1.0/|' \ ${WRKSRC}/src/gtk+-2.x/ctkappprofile.c post-install: .SILENT ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnvidia-gtk3.so.${PORTVERSION} ${RM} ${STAGEDIR}/${PREFIX}/lib/libnvidia-wayland-client.so.${PORTVERSION} ${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.desktop \ ${STAGEDIR}/${DESKTOPDIR} ${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.png \ ${STAGEDIR}/${PREFIX}/share/pixmaps ${MV} ${STAGEDIR}${PREFIX}/bin/nvidia-settings \ ${STAGEDIR}${PREFIX}/libexec/nvidia-settings ${INSTALL} ${WRKDIR}/nvidia-settings \ ${STAGEDIR}${PREFIX}/bin/nvidia-settings .include