aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-settings
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2016-01-03 10:42:44 +0000
committerPawel Pekala <pawel@FreeBSD.org>2016-01-03 10:42:44 +0000
commit616d3289f20374e20a956b9445f9994fea8a4265 (patch)
tree31bc375bfd2772fc2992ece5e80dde1481504e1b /x11/nvidia-settings
parent046ce0e0bfb8e13ab1e4f0873017bf27e39e4af3 (diff)
downloadports-616d3289f20374e20a956b9445f9994fea8a4265.tar.gz
ports-616d3289f20374e20a956b9445f9994fea8a4265.zip
Notes
Diffstat (limited to 'x11/nvidia-settings')
-rw-r--r--x11/nvidia-settings/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/x11/nvidia-settings/Makefile b/x11/nvidia-settings/Makefile
index ba4b198d6eba..5ae06d7744e5 100644
--- a/x11/nvidia-settings/Makefile
+++ b/x11/nvidia-settings/Makefile
@@ -3,7 +3,7 @@
PORTNAME= nvidia-settings
PORTVERSION= 355.11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11
MAINTAINER= bland@FreeBSD.org
@@ -24,7 +24,9 @@ USE_XORG= xext xv
PLIST_FILES= bin/nvidia-settings \
man/man1/nvidia-settings.1.gz \
- lib/libnvidia-gtk2.so.${PORTVERSION}
+ lib/libnvidia-gtk2.so.${PORTVERSION} \
+ share/applications/nvidia-settings.desktop \
+ share/pixmaps/nvidia-settings.png
LDFLAGS+= -pthread
MAKE_ENV= NV_USE_BUNDLED_LIBJANSSON=0 \
@@ -38,8 +40,15 @@ MAKE_ENV= NV_USE_BUNDLED_LIBJANSSON=0 \
post-patch: .SILENT
${REINPLACE_CMD} \
-e '/^MANDIR/s|share/||' ${WRKSRC}/utils.mk
+ ${REINPLACE_CMD} -E -e 's,__(PIXMAP|UTILS)_PATH__/,,' \
+ -e '/^Categories/ s,=.*,= Settings;HardwareSettings;,' \
+ ${WRKSRC}/doc/nvidia-settings.desktop
post-install: .SILENT
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnvidia-gtk2.so.${PORTVERSION}
+ ${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.desktop \
+ ${STAGEDIR}/${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/nvidia-settings.png \
+ ${STAGEDIR}/${PREFIX}/share/pixmaps
.include <bsd.port.mk>