aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-11-06 16:29:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-11-06 16:29:50 +0000
commit2a91db99935dc003e4a254279d3579a8f366428c (patch)
treea2f4570a44c4d365b1aa025e9ec40aae3fb2efe9 /testing
parente6a2497815f4f71ca1a0d95ec22afe3ce4d7578c (diff)
downloadaports-2a91db99935dc003e4a254279d3579a8f366428c.tar.bz2
aports-2a91db99935dc003e4a254279d3579a8f366428c.tar.xz
testing/libvncserver: new aport
Library to make writing a vnc server easy http://libvncserver.sourceforge.net/
Diffstat (limited to 'testing')
-rw-r--r--testing/libvncserver/APKBUILD52
-rw-r--r--testing/libvncserver/LibVNCServer-0.9.10-system_minilzo.patch67
2 files changed, 119 insertions, 0 deletions
diff --git a/testing/libvncserver/APKBUILD b/testing/libvncserver/APKBUILD
new file mode 100644
index 0000000000..e3dd9fe691
--- /dev/null
+++ b/testing/libvncserver/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=libvncserver
+pkgver=0.9.10
+pkgrel=0
+pkgdesc="Library to make writing a vnc server easy"
+url="http://libvncserver.sourceforge.net/"
+arch="all"
+license="GPLv2+"
+depends=""
+depends_dev="libgcrypt-dev libjpeg-turbo-dev gnutls-dev libpng-dev
+ libice-dev libx11-dev libxdamage-dev libxext-dev libxfixes-dev
+ libxi-dev libxinerama-dev libxrandr-dev libxtst-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sf.net/libvncserver/LibVNCServer-$pkgver.tar.gz"
+source="https://github.com/LibVNC/libvncserver/archive/LibVNCServer-$pkgver.tar.gz
+ "
+
+_builddir="$srcdir"/libvncserver-LibVNCServer-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ ./autogen.sh
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install DESTDIR="$pkgdir" || return 1
+ rm "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="e1b888fae717b06896f8aec100163d27 LibVNCServer-0.9.10.tar.gz"
+sha256sums="ed10819a5bfbf269969f97f075939cc38273cc1b6d28bccfb0999fba489411f7 LibVNCServer-0.9.10.tar.gz"
+sha512sums="eb637dfb72dc50fb713a715c9d0cc8824a6871527c2edb497e70c92e2e708021fbd5d8134f2dee6a9e90d1c8fd3fee53c5f5ece790c2804e938011a980ffceae LibVNCServer-0.9.10.tar.gz"
diff --git a/testing/libvncserver/LibVNCServer-0.9.10-system_minilzo.patch b/testing/libvncserver/LibVNCServer-0.9.10-system_minilzo.patch
new file mode 100644
index 0000000000..34e789bba4
--- /dev/null
+++ b/testing/libvncserver/LibVNCServer-0.9.10-system_minilzo.patch
@@ -0,0 +1,67 @@
+diff -up LibVNCServer-0.9.10/libvncclient/Makefile.am.system_minilzo LibVNCServer-0.9.10/libvncclient/Makefile.am
+--- LibVNCServer-0.9.10/libvncclient/Makefile.am.system_minilzo 2014-04-05 18:38:35.000000000 -0500
++++ LibVNCServer-0.9.10/libvncclient/Makefile.am 2014-04-29 08:56:27.861761880 -0500
+@@ -13,10 +13,10 @@ endif
+ endif
+
+
+-libvncclient_la_SOURCES=cursor.c listen.c rfbproto.c sockets.c vncviewer.c ../common/minilzo.c $(TLSSRCS)
+-libvncclient_la_LIBADD=$(TLSLIBS) $(VA_LIBS)
++libvncclient_la_SOURCES=cursor.c listen.c rfbproto.c sockets.c vncviewer.c $(TLSSRCS)
++libvncclient_la_LIBADD=$(TLSLIBS) $(VA_LIBS) -lminilzo
+
+-noinst_HEADERS=../common/lzodefs.h ../common/lzoconf.h ../common/minilzo.h tls.h
++noinst_HEADERS=tls.h
+
+ rfbproto.o: rfbproto.c corre.c hextile.c rre.c tight.c zlib.c zrle.c ultra.c
+
+diff -up LibVNCServer-0.9.10/libvncclient/rfbproto.c.system_minilzo LibVNCServer-0.9.10/libvncclient/rfbproto.c
+--- LibVNCServer-0.9.10/libvncclient/rfbproto.c.system_minilzo 2014-04-05 18:38:35.000000000 -0500
++++ LibVNCServer-0.9.10/libvncclient/rfbproto.c 2014-04-29 08:39:57.638331693 -0500
+@@ -61,7 +61,7 @@
+ #include <gcrypt.h>
+ #endif
+
+-#include "minilzo.h"
++#include <lzo/minilzo.h>
+ #include "tls.h"
+
+ /*
+diff -up LibVNCServer-0.9.10/libvncserver/Makefile.am.system_minilzo LibVNCServer-0.9.10/libvncserver/Makefile.am
+--- LibVNCServer-0.9.10/libvncserver/Makefile.am.system_minilzo 2014-04-05 18:38:35.000000000 -0500
++++ LibVNCServer-0.9.10/libvncserver/Makefile.am 2014-04-29 08:39:57.638331693 -0500
+@@ -37,7 +37,7 @@ include_HEADERS=../rfb/rfb.h ../rfb/rfbc
+
+ noinst_HEADERS=../common/d3des.h ../rfb/default8x16.h zrleoutstream.h \
+ zrlepalettehelper.h zrletypes.h private.h scale.h rfbssl.h rfbcrypto.h \
+- ../common/minilzo.h ../common/lzoconf.h ../common/lzodefs.h ../common/md5.h ../common/sha1.h \
++ ../common/md5.h ../common/sha1.h \
+ $(TIGHTVNCFILETRANSFERHDRS)
+
+ EXTRA_DIST=tableinit24.c tableinittctemplate.c tabletranstemplate.c \
+@@ -54,11 +54,11 @@ endif
+ LIB_SRCS = main.c rfbserver.c rfbregion.c auth.c sockets.c $(WEBSOCKETSSRCS) \
+ stats.c corre.c hextile.c rre.c translate.c cutpaste.c \
+ httpd.c cursor.c font.c \
+- draw.c selbox.c ../common/d3des.c ../common/vncauth.c cargs.c ../common/minilzo.c ultra.c scale.c \
++ draw.c selbox.c ../common/d3des.c ../common/vncauth.c cargs.c ultra.c scale.c \
+ $(ZLIBSRCS) $(TIGHTSRCS) $(TIGHTVNCFILETRANSFERSRCS)
+
+ libvncserver_la_SOURCES=$(LIB_SRCS)
+-libvncserver_la_LIBADD=$(WEBSOCKETSSSLLIBS)
++libvncserver_la_LIBADD=$(WEBSOCKETSSSLLIBS) -lminilzo
+
+ lib_LTLIBRARIES=libvncserver.la
+
+diff -up LibVNCServer-0.9.10/libvncserver/ultra.c.system_minilzo LibVNCServer-0.9.10/libvncserver/ultra.c
+--- LibVNCServer-0.9.10/libvncserver/ultra.c.system_minilzo 2014-04-05 18:38:35.000000000 -0500
++++ LibVNCServer-0.9.10/libvncserver/ultra.c 2014-04-29 08:39:57.638331693 -0500
+@@ -8,7 +8,7 @@
+ */
+
+ #include <rfb/rfb.h>
+-#include "minilzo.h"
++#include <lzo/minilzo.h>
+
+ /*
+ * cl->beforeEncBuf contains pixel data in the client's format.