diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-10 13:00:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-10 13:00:41 +0000 |
commit | 7261b4adcb491c6161b602db8c793f718da8bbbc (patch) | |
tree | 0c618b741e5666ca464e593a83714ff471cfbc82 | |
parent | e1c4e11bfff7605b805984dcba250362c66fdaf0 (diff) | |
download | aports-7261b4adcb491c6161b602db8c793f718da8bbbc.tar.bz2 aports-7261b4adcb491c6161b602db8c793f718da8bbbc.tar.xz |
x11/xrandr: new aport
primitive command line interface to RandR extension
-rw-r--r-- | x11/xrandr/APKBUILD | 23 | ||||
-rw-r--r-- | x11/xrandr/xrandr-1.3.0-clone-nameclash.patch | 29 |
2 files changed, 52 insertions, 0 deletions
diff --git a/x11/xrandr/APKBUILD b/x11/xrandr/APKBUILD new file mode 100644 index 0000000000..d78a429d17 --- /dev/null +++ b/x11/xrandr/APKBUILD @@ -0,0 +1,23 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=xrandr +pkgver=1.3.0 +pkgrel=0 +pkgdesc="primitive command line interface to RandR extension" +url="http://xorg.freedesktop.org/" +license="custom" +subpackages="$pkgname-doc" +depends="libxrandr libx11 uclibc" +makedepends="pkgconfig libxrandr-dev libxrender-dev libx11-dev" +source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2 + $pkgname-1.3.0-clone-nameclash.patch" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + patch -p1 < ../$pkgname-1.3.0-clone-nameclash.patch || return 1 + ./configure --prefix=/usr --mandir=/usr/share/man || return 1 + make || return 1 + make DESTDIR="$pkgdir" install || return 1 +} +md5sums="616612a15711a4422e71be6acc42ca3c xrandr-1.3.0.tar.bz2 +b938aad95a5ea71bce7a2529fd8f6866 xrandr-1.3.0-clone-nameclash.patch" diff --git a/x11/xrandr/xrandr-1.3.0-clone-nameclash.patch b/x11/xrandr/xrandr-1.3.0-clone-nameclash.patch new file mode 100644 index 0000000000..55af5590c4 --- /dev/null +++ b/x11/xrandr/xrandr-1.3.0-clone-nameclash.patch @@ -0,0 +1,29 @@ +--- xrandr-1.3.0/xrandr.c.orig 2009-04-10 12:26:02.000000000 +0000 ++++ xrandr-1.3.0/xrandr.c 2009-04-10 12:43:44.000000000 +0000 +@@ -209,7 +209,7 @@ + + #if HAS_RANDR_1_2 + typedef enum _policy { +- clone, extend ++ p_clone, extend + } policy_t; + + typedef enum _relation { +@@ -2027,7 +2027,7 @@ + int ret = 0; + #if HAS_RANDR_1_2 + output_t *output = NULL; +- policy_t policy = clone; ++ policy_t policy = p_clone; + Bool setit_1_2 = False; + Bool query_1_2 = False; + Bool modeit = False; +@@ -2401,7 +2401,7 @@ + continue; + } + if (!strcmp ("--clone", argv[i])) { +- policy = clone; ++ policy = p_clone; + setit_1_2 = True; + continue; + } |