summaryrefslogtreecommitdiff
path: root/system/gtk-vnc/gtk-vnc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/gtk-vnc/gtk-vnc.SlackBuild')
-rw-r--r--system/gtk-vnc/gtk-vnc.SlackBuild55
1 files changed, 47 insertions, 8 deletions
diff --git a/system/gtk-vnc/gtk-vnc.SlackBuild b/system/gtk-vnc/gtk-vnc.SlackBuild
index d90ee35060..a98983f144 100644
--- a/system/gtk-vnc/gtk-vnc.SlackBuild
+++ b/system/gtk-vnc/gtk-vnc.SlackBuild
@@ -5,7 +5,7 @@
# Written by Ash Wiren ash@spooksoftware.com
PRGNAM=gtk-vnc
-VERSION=${VERSION:-0.3.9}
+VERSION=${VERSION:-0.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,25 +38,60 @@ else
LIBDIRSUFFIX=""
fi
+# These might be useful when all needed headers will be there
+# in that case add also --enable-plugin=yes
+#export MOZILLA_PLUGIN_CFLAGS="-I/usr/include/nspr -I/usr/include/nss -I/usr/include/seamonkey"
+#export MOZILLA_PLUGIN_LIBS="-L/usr/lib$LIBDIRSUFFIX -L/usr/lib$LIBDIRSUFFIX/seamonkey"
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
-chown -R root:root .
-find . \
+rm -rf $PRGNAM-$VERSION{,-3}
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+chown -R root:root $PRGNAM-$VERSION
+find $PRGNAM-$VERSION \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# We will build both the gtk+3 and gtk+2 libs with -j1 to avoid surprises
+# To avoid building the gtk3 version, pass GTK3=no to the script
+if [ "${GTK3:-yes}" = "yes" ]; then
+(
+cp -a $PRGNAM-$VERSION{,-3}
+cd $PRGNAM-$VERSION-3
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --with-examples \
+ --with-libview \
+ --with-python \
+ --with-gtk=3.0 \
+ --enable-vala \
+ --enable-introspection \
+ --build=$ARCH-slackware-linux
+
+make -j1
+make install DESTDIR=$PKG
+)
+fi
+
+cd $PRGNAM-$VERSION
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- -prefix=/usr \
+ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
@@ -64,9 +99,13 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--with-examples \
--with-libview \
+ --with-python \
+ --with-gtk=2.0 \
+ --enable-vala \
+ --enable-introspection \
--build=$ARCH-slackware-linux
-make
+make -j1
make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \