summaryrefslogtreecommitdiff
path: root/user/tigervnc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-10 16:07:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-10 16:07:14 -0500
commit804716ff92bd609bd4251818e3614150510edcc7 (patch)
treec0abcbebf5e2ac2372af659df918d9abc6e9e10b /user/tigervnc
parent3b27ef03ec7d4daa75006c7e0cf288fd5bfa8d26 (diff)
downloadpackages-804716ff92bd609bd4251818e3614150510edcc7.tar.gz
packages-804716ff92bd609bd4251818e3614150510edcc7.tar.bz2
packages-804716ff92bd609bd4251818e3614150510edcc7.tar.xz
packages-804716ff92bd609bd4251818e3614150510edcc7.zip
user/tigervnc: new package
Diffstat (limited to 'user/tigervnc')
-rw-r--r--user/tigervnc/APKBUILD44
-rw-r--r--user/tigervnc/libintl-fix.patch26
2 files changed, 70 insertions, 0 deletions
diff --git a/user/tigervnc/APKBUILD b/user/tigervnc/APKBUILD
new file mode 100644
index 000000000..9d2c6dbd3
--- /dev/null
+++ b/user/tigervnc/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=tigervnc
+pkgver=1.8.0
+pkgrel=0
+pkgdesc="A high-performance, platform-neutral VNC remote desktop application"
+url="http://tigervnc.org/"
+arch="all"
+license="GPL-2.0"
+options="!check" # No test suite.
+depends=""
+depends_dev=""
+makedepends="cmake fltk-dev libx11-dev zlib-dev gettext-dev libjpeg-turbo-dev
+ libxft-dev fontconfig-dev libxfixes-dev libxcursor-dev libxrender-dev
+ libxtst-dev linux-pam-dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="tigervnc-$pkgver.tar.gz::https://github.com/TigerVNC/tigervnc/archive/v$pkgver.tar.gz
+ libintl-fix.patch"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS -std=c++98 -Wno-c++11-compat -Wno-maybe-uninitialized" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ -Wno-dev \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="c066e9781622e342667bf03fd6bbb94ed17b412b07c46764b7b73b2eb308c285e865cf1e901f7d218db05a0486fb3f8877e75da3c939ef0d020247713779327a tigervnc-1.8.0.tar.gz
+ee748bf3dc62b47161b9eb1536c3edf18e30abdc72733d8a0dec0502cb4d7f97c95cbdf89801a4a4be30a1c13aada50568f317956d4d1e5c474c54ef605ffadc libintl-fix.patch"
diff --git a/user/tigervnc/libintl-fix.patch b/user/tigervnc/libintl-fix.patch
new file mode 100644
index 000000000..82565d276
--- /dev/null
+++ b/user/tigervnc/libintl-fix.patch
@@ -0,0 +1,26 @@
+libc gettext is never sufficient on musl
+
+--- tigervnc-1.8.0/CMakeLists.txt.old 2017-05-16 08:53:28.000000000 -0500
++++ tigervnc-1.8.0/CMakeLists.txt 2017-09-10 16:05:13.397275098 -0500
+@@ -152,9 +152,9 @@
+ set(CMAKE_REQUIRED_LIBRARIES ${ICONV_LIBRARIES})
+ set(CMAKE_REQUIRED_FLAGS -fno-builtin-dgettext)
+ check_function_exists(dgettext LIBC_HAS_DGETTEXT)
+- if(LIBC_HAS_DGETTEXT)
+- set(GETTEXT_FOUND TRUE)
+- else()
++ #if(LIBC_HAS_DGETTEXT)
++ # set(GETTEXT_FOUND TRUE)
++ #else()
+ find_library(LIBINTL_LIBRARY NAMES intl libintl)
+ if(LIBINTL_LIBRARY)
+ check_library_exists(${LIBINTL_LIBRARY} "dgettext" "" LIBINTL_HAS_DGETTEXT)
+@@ -163,7 +163,7 @@
+ set(GETTEXT_FOUND TRUE)
+ endif()
+ endif()
+- endif()
++ #endif()
+ set(CMAKE_REQUIRED_LIBRARIES)
+ set(CMAKE_REQUIRED_FLAGS)
+ endif()