summaryrefslogtreecommitdiffstats
path: root/tigervnc
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2012-03-19 11:36:02 +0000
committer Eric Hameleers <alien@slackware.com>2012-03-19 11:36:02 +0000
commite5aae9427820e2b9a82c2f667a4d3d76e4f1bf00 (patch)
tree76307f59214b1a94dd950f172aea8c8653f47d82 /tigervnc
parent66bffedea2efbb4a9b29efd1e955798d96c15f1a (diff)
downloadasb-e5aae9427820e2b9a82c2f667a4d3d76e4f1bf00.tar.gz
asb-e5aae9427820e2b9a82c2f667a4d3d76e4f1bf00.tar.xz
Make the java applet an optional build (in case we do not have javac)
Diffstat (limited to 'tigervnc')
-rwxr-xr-xtigervnc/build/tigervnc.SlackBuild31
1 files changed, 19 insertions, 12 deletions
diff --git a/tigervnc/build/tigervnc.SlackBuild b/tigervnc/build/tigervnc.SlackBuild
index eed8c80e..eef9b86c 100755
--- a/tigervnc/build/tigervnc.SlackBuild
+++ b/tigervnc/build/tigervnc.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# $Id$
# Copyright 2010, 2011 Eric Hameleers, Eindhoven. NL
# All rights reserved.
@@ -53,6 +53,9 @@ BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
+# Do we build the java applet (needs jdk)?
+DO_APPLET=${DO_APPLET:-"YES"}
+
# TigerVNC needs to use source of the X.Org server whose version matches
# that of your installed X.Org package:
XORG=${XORG:-$(X -version 2>&1 | grep "^X.Org X Server " | cut -f4 -d' ')}
@@ -288,21 +291,25 @@ cd unix/xserver
make -C hw/vnc DESTDIR=$PKG install 2>&1 | tee -a $OUTPUT/install-${PRGNAM}.log
cd -
-# Compile the java applet (needs the sdk... jre is not enough):
-cd java/src/com/tigervnc/vncviewer
- make 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
-cd -
+if [ "$DO_APPLET" = "YES" ]; then
+ # Compile the java applet (needs the sdk... jre is not enough):
+ cd java/src/com/tigervnc/vncviewer
+ make 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
+ cd -
+fi
# Create .png icons from the .svg file:
make -C media 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
-# Install the java applet:
-cd java/src/com/tigervnc/vncviewer
- mkdir -p $PKG/usr/share/tigervnc/classes
- install -m0755 VncViewer.jar $PKG/usr/share/tigervnc/classes/
- install -m0644 index.vnc $PKG/usr/share/tigervnc/classes/
- install -m0644 *.class $PKG/usr/share/tigervnc/classes/
-cd -
+if [ "$DO_APPLET" = "YES" ]; then
+ # Install the java applet:
+ cd java/src/com/tigervnc/vncviewer
+ mkdir -p $PKG/usr/share/tigervnc/classes
+ install -m0755 VncViewer.jar $PKG/usr/share/tigervnc/classes/
+ install -m0644 index.vnc $PKG/usr/share/tigervnc/classes/
+ install -m0644 *.class $PKG/usr/share/tigervnc/classes/
+ cd -
+fi
# Install menu entry:
mkdir -p $PKG/usr/share/{applications,icons/hicolor/{16x16,24x24,32x32,48x48}/apps}