ports/167229: [patch] x11/nvidia-settings: install sample tools (optionally)
Jan Beich
jbeich at tormail.org
Mon Apr 23 15:30:07 UTC 2012
>Number: 167229
>Category: ports
>Synopsis: [patch] x11/nvidia-settings: install sample tools (optionally)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 23 15:30:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Jan Beich
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
scale one display for a lowres game (starcraft?)
$ fgrep nv-control ~/.xinitrc
nv-control-dpy --add-metamode nvidia-auto-select,640x480 # game right (4:3)
nv-control-dpy --add-metamode 1280x720,nvidia-auto-select # game left (16:9)
>Description:
Install nv-control samples. For example, nv-control-dpy allows modifying
metamodes from CLI without restarting Xserver.
>How-To-Repeat:
>Fix:
--- samples.diff begins here ---
Index: x11/nvidia-settings/Makefile
===================================================================
RCS file: /a/.csup/ports/x11/nvidia-settings/Makefile,v
retrieving revision 1.53
diff -u -p -r1.53 Makefile
--- x11/nvidia-settings/Makefile 7 Apr 2012 15:39:05 -0000 1.53
+++ x11/nvidia-settings/Makefile 23 Apr 2012 14:30:03 -0000
@@ -35,6 +34,27 @@ MAKE_ENV= NV_VERBOSE= \
X_CFLAGS=-I${LOCALBASE}/include \
X_LDLAGS=-L${LOCALBASE}/lib
+OPTIONS= SAMPLES "install sample programs" OFF
+
+.include <bsd.port.options.mk>
+
+.ifdef WITH_SAMPLES
+ALL_TARGET= all samples
+PLIST_FILES+= bin/nv-control-3dvisionpro \
+ bin/nv-control-dpy \
+ bin/nv-control-dvc \
+ bin/nv-control-events \
+ bin/nv-control-framelock \
+ bin/nv-control-gvi \
+ bin/nv-control-info \
+ bin/nv-control-targets
+
+post-install:
+ cd ${WRKSRC}/samples/_out/${OPSYS}_${ARCH} && \
+ ${RM} -f *.d *.o && \
+ ${INSTALL_PROGRAM} * ${PREFIX}/bin
+.endif
+
post-extract: .SILENT
${RM} -f ${WRKSRC}/src/libXNVCtrl/libXNVCtrl.a
Index: x11/nvidia-settings/files/patch-Makefile
===================================================================
RCS file: /a/.csup/ports/x11/nvidia-settings/files/patch-Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 patch-Makefile
--- x11/nvidia-settings/files/patch-Makefile 13 Oct 2010 14:07:04 -0000 1.6
+++ x11/nvidia-settings/files/patch-Makefile 23 Apr 2012 14:09:40 -0000
@@ -1,6 +1,16 @@
--- Makefile.orig
+++ Makefile
-@@ -149,11 +149,14 @@ install: NVIDIA_SETTINGS_install MANPAGE
+@@ -146,18 +146,24 @@ $(call BUILD_OBJECT_LIST,$(GTK_SRC)): CF
+ ##############################################################################
+
+ .PNONY: all install NVIDIA_SETTINGS_install MANPAGE_install clean clobber
++.PHONY: samples
+
+ all: $(NVIDIA_SETTINGS) $(MANPAGE)
++samples: $(XNVCTRL_ARCHIVE)
++ $(MAKE) -C samples
+
+ install: NVIDIA_SETTINGS_install MANPAGE_install
NVIDIA_SETTINGS_install: $(NVIDIA_SETTINGS)
$(MKDIR) $(bindir)
--- samples.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list