summaryrefslogtreecommitdiff
path: root/~lukeshu
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-09-26 16:33:17 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-09-26 16:33:17 -0400
commit928f7e0d03b6d5952462ce955ce66f5b80dfdeb8 (patch)
treebe8e8866cc6b68a76dbc3bc1d2d8ea972e2e137e /~lukeshu
parent250a51839dd1346d49bc64909a660b00bc2ac7af (diff)
downloadabslibre-928f7e0d03b6d5952462ce955ce66f5b80dfdeb8.tar.gz
abslibre-928f7e0d03b6d5952462ce955ce66f5b80dfdeb8.tar.bz2
abslibre-928f7e0d03b6d5952462ce955ce66f5b80dfdeb8.zip
add ~lukeshu/xcalib from AUR
Diffstat (limited to '~lukeshu')
-rw-r--r--~lukeshu/xcalib/PKGBUILD30
-rw-r--r--~lukeshu/xcalib/makefile-ldflags.patch22
2 files changed, 52 insertions, 0 deletions
diff --git a/~lukeshu/xcalib/PKGBUILD b/~lukeshu/xcalib/PKGBUILD
new file mode 100644
index 000000000..e2e053f11
--- /dev/null
+++ b/~lukeshu/xcalib/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com)
+# adpoted from mOLOk since pkgver=0.7
+
+pkgname=xcalib
+pkgver=0.8
+pkgrel=4
+pkgdesc="A tiny monitor calibration loader for X.org"
+arch=(i686 x86_64)
+url="http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/"
+license=('GPL')
+depends=(libxxf86vm)
+source=(http://downloads.sourceforge.net/xcalib/xcalib-source-$pkgver.tar.gz
+ makefile-ldflags.patch)
+md5sums=('1fbcae44ad8d754512fdd1e5f1b3a7e7'
+ '6c74457011515dd1cc7f2474af761142')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver/"
+ patch -p0 < ../makefile-ldflags.patch
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver/"
+ install -Dm755 xcalib $pkgdir/usr/bin/xcalib
+
+ for i in README *.icc *.icm; do
+ install -Dm644 $i $pkgdir/usr/share/xcalib/$i
+ done
+}
diff --git a/~lukeshu/xcalib/makefile-ldflags.patch b/~lukeshu/xcalib/makefile-ldflags.patch
new file mode 100644
index 000000000..275c4c3ea
--- /dev/null
+++ b/~lukeshu/xcalib/makefile-ldflags.patch
@@ -0,0 +1,22 @@
+--- Makefile 2007-08-26 23:30:34.000000000 +0200
++++ Makefile.new 2012-08-20 10:50:27.000000000 +0200
+@@ -50,16 +50,16 @@
+ # low overhead version (internal parser)
+ xcalib: xcalib.c
+ $(CC) $(CFLAGS) -c xcalib.c -I$(XINCLUDEDIR) -DXCALIB_VERSION=\"$(XCALIB_VERSION)\"
+- $(CC) $(CFLAGS) -L$(XLIBDIR) -lm -o xcalib xcalib.o -lX11 -lXxf86vm -lXext
++ $(CC) $(LDFLAGS) -L$(XLIBDIR) -o xcalib xcalib.o -lX11 -lXxf86vm -lXext -lm
+
+ fglrx_xcalib: xcalib.c
+ $(CC) $(CFLAGS) -c xcalib.c -I$(XINCLUDEDIR) -DXCALIB_VERSION=\"$(XCALIB_VERSION)\" -I$(FGLRXINCLUDEDIR) -DFGLRX
+- $(CC) $(CFLAGS) -L$(XLIBDIR) -L$(FGLRXLIBDIR) -lm -o xcalib xcalib.o -lX11 -lXxf86vm -lXext -lfglrx_gamma
++ $(CC) $(LDFLAGS) -L$(XLIBDIR) -L$(FGLRXLIBDIR) -o xcalib xcalib.o -lX11 -lXxf86vm -lXext -lfglrx_gamma -lm
+
+ win_xcalib: xcalib.c
+ $(CC) $(CFLAGS) -c xcalib.c -DXCALIB_VERSION=\"$(XCALIB_VERSION)\" -DWIN32GDI
+ windres.exe resource.rc resource.o
+- $(CC) $(CFLAGS) -mwindows -lm resource.o -o xcalib xcalib.o
++ $(CC) $(LDFLAGS) -mwindows -lm resource.o -o xcalib xcalib.o
+
+ install:
+ cp ./xcalib $(DESTDIR)/usr/local/bin/