Date: Thursday, January 16, 2014 @ 18:59:17 Author: flexiondotorg Revision: 104244
Added libxnvctrl Added: libxnvctrl/ libxnvctrl/repos/ libxnvctrl/trunk/ libxnvctrl/trunk/10_libxnvctrl_so_0.diff libxnvctrl/trunk/PKGBUILD -------------------------+ 10_libxnvctrl_so_0.diff | 55 ++++++++++++++++++++++++++++++++++++++++++++++ PKGBUILD | 38 +++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+) Added: libxnvctrl/trunk/10_libxnvctrl_so_0.diff =================================================================== --- libxnvctrl/trunk/10_libxnvctrl_so_0.diff (rev 0) +++ libxnvctrl/trunk/10_libxnvctrl_so_0.diff 2014-01-16 17:59:17 UTC (rev 104244) @@ -0,0 +1,55 @@ +Author: Andreas Beckmann <deb...@abeckmann.de> +Description: build a shared library for libXNVCtrl +Bug-Debian: http://bugs.debian.org/666909 + +--- a/src/Makefile ++++ b/src/Makefile +@@ -79,6 +79,9 @@ + + XNVCTRL_DIR ?= libXNVCtrl + XNVCTRL_ARCHIVE ?= $(XNVCTRL_DIR)/libXNVCtrl.a ++XNVCTRL_SHARED ?= $(XNVCTRL_DIR)/libXNVCtrl.so.0 ++#XNVCTRL_LIB ?= $(XNVCTRL_ARCHIVE) ++XNVCTRL_LIB ?= $(XNVCTRL_SHARED) + XCONFIG_PARSER_DIR ?= XF86Config-parser + COMMON_UTILS_DIR ?= common-utils + COMMON_UNIX_DIR ?= common-unix +@@ -179,9 +182,12 @@ + $(MKDIR) $(BINDIR) + $(INSTALL) $(INSTALL_BIN_ARGS) $< $(BINDIR)/$(notdir $<) + +-$(NVIDIA_SETTINGS): $(OBJS) $(XNVCTRL_ARCHIVE) ++$(XNVCTRL_ARCHIVE) $(XNVCTRL_SHARED): ++ $(MAKE) -C $(XNVCTRL_DIR) ++ ++$(NVIDIA_SETTINGS): $(OBJS) $(XNVCTRL_LIB) + $(call quiet_cmd,LINK) $(CFLAGS) $(LDFLAGS) $(BIN_LDFLAGS) -o $@ $(OBJS) \ +- $(XNVCTRL_ARCHIVE) $(LIBS) ++ $(XNVCTRL_LIB) $(LIBS) + $(call quiet_cmd,STRIP_CMD) $@ + + # define the rule to build each object file +--- a/src/libXNVCtrl/Makefile ++++ b/src/libXNVCtrl/Makefile +@@ -22,12 +22,21 @@ + RANLIB ?= ranlib + CFLAGS += -fPIC + ++all: libXNVCtrl.a libXNVCtrl.so ++ + libXNVCtrl.a : libXNVCtrl.a(NVCtrl.o) + $(RANLIB) $@ + ++libXNVCtrl.so: NVCtrl.o ++ $(RM) $@ $@.* ++ $(CC) -shared -Wl,-soname=$@.0 -o $@.0.0.0 $(LDFLAGS) $^ -lXext -lX11 ++ ln -s $@.0.0.0 $@.0 ++ ln -s $@.0 $@ ++ + NVCtrl.o : NVCtrl.h nv_control.h NVCtrlLib.h + .INTERMEDIATE: NVCtrl.o + + clean :: + rm -f libXNVCtrl.a *.o ++ rm -f libXNVCtrl.so libXNVCtrl.so.* + .PHONY: clean Added: libxnvctrl/trunk/PKGBUILD =================================================================== --- libxnvctrl/trunk/PKGBUILD (rev 0) +++ libxnvctrl/trunk/PKGBUILD 2014-01-16 17:59:17 UTC (rev 104244) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Martin Wimpress <c...@flexion.org> +# Contributor: Alessio Sergi <asergi at archlinux dot us> + +pkgname=libxnvctrl +pkgver=331.20 +pkgrel=2 +pkgdesc="NVIDIA X Ctrl library" +arch=('i686' 'x86_64') +url="http://www.nvidia.com/" +license=('GPL2') +depends=('libxext') +source=("http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-${pkgver}.tar.bz2" + "10_libxnvctrl_so_0.diff") +sha1sums=('a42cd2e821bce5061532d38d9f84a45d2986ba58' + '84146494a08d4b691e2cff84d1551210eee584dd') + +prepare() { + cd "nvidia-settings-$pkgver" + patch -Np1 -i "${srcdir}/10_libxnvctrl_so_0.diff" +} + +build() { + cd "nvidia-settings-$pkgver/src/libXNVCtrl" + make clean + make +} + +package() { + cd "nvidia-settings-$pkgver/src/libXNVCtrl" + # install libXNVCtrl and headers + install -d -m 755 "$pkgdir"/usr/{include/NVCtrl,lib} + install -m 644 nv_control.h NVCtrl{,Lib}.h "$pkgdir"/usr/include/NVCtrl/ + install -m 644 libXNVCtrl.so.0.0.0 "$pkgdir"/usr/lib/ + cd "$pkgdir"/usr/lib/ + ln -s libXNVCtrl.so.0.0.0 libXNVCtrl.so.0 + ln -s libXNVCtrl.so.0 libXNVCtrl.so +} Property changes on: libxnvctrl/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property