From 278ba0d2bb3bb0e5527962015a2122c57926a33f Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 22 Jun 2011 16:18:04 +0200 Subject: [PATCH] fltk made optional and off by default --- ap/nut/nut.SlackBuild | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ap/nut/nut.SlackBuild b/ap/nut/nut.SlackBuild index 0be83de0..9c0956b3 100755 --- a/ap/nut/nut.SlackBuild +++ b/ap/nut/nut.SlackBuild @@ -1,5 +1,7 @@ #!/bin/sh +FLTK=${FLTK:=NO} + PRGNAM=nut VERSION=${VERSION:-16.12} @@ -42,15 +44,18 @@ sed -i "s|/usr/local/lib|$PREFIX/lib$LIBSUFFIX|g" Makefile fltk/Makefile # Building make prefix=$PREFIX libdir=$PREFIX/lib$LIBSUFFIX/nut -make -C fltk prefix=$PREFIX libdir=$PREFIX/lib$LIBSUFFIX/nut +[ "x$FLTK" != "xNO" ] && make -C fltk prefix=$PREFIX libdir=$PREFIX/lib$LIBSUFFIX/nut # Installation mkdir -p $PKG$PREFIX/{bin,lib$LIBSUFFIX/$PRGNAM,man/man1,doc/$PRGNAM} cd $TMP/$PRGNAM-$VERSION -cp $PRGNAM fltk/Nut $PKG$PREFIX/bin -( cd $PKG$PREFIX/bin - ln -s Nut $PRGNAM-fltk -) +cp $PRGNAM $PKG$PREFIX/bin +if [ "x$FLTK" != "xNO" ]; then + cp fltk/Nut $PKG$PREFIX/bin + ( cd $PKG$PREFIX/bin + ln -s Nut $PRGNAM-fltk + ) +fi cp $PRGNAM.1 $PKG$PREFIX/man/man1 cp raw.data/* $PKG$PREFIX/lib$LIBSUFFIX/$PRGNAM cp $(ls | grep "[A-Z][^a-z]") nut.html nut.xpm $PKG$PREFIX/doc/$PRGNAM