LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   cairo-dock 3.2.1 and version on Slackbuilds fails to build (http://www.linuxquestions.org/questions/slackware-14/cairo-dock-3-2-1-and-version-on-slackbuilds-fails-to-build-4175469309/)

hyperhead 07-11-2013 03:08 PM

cairo-dock 3.2.1 and version on Slackbuilds fails to build
 
Hi

I am trying to compile cairo-dock after it broke because I updated some packages. I was not dilligent enough to notice what is was and I never noticed until I rebooted (which isnt often).

I tried the non multilib gcc, but that didn't work, I had a poke around but have gleaned it could be something to do with gtk2+ and gtk3+ clashing possibly. Here is the debug from make.

Code:

[ 93%] Building C object src/CMakeFiles/cairo-dock.dir/cairo-dock-widget-shortkeys.c.o
/tmp/cairo-dock-3.2.1/src/cairo-dock-widget-shortkeys.c: In function 'cairo_dock_shortkeys_widget_new':
/tmp/cairo-dock-3.2.1/src/cairo-dock-widget-shortkeys.c:257:2: warning: 'gtk_scrolled_window_add_with_viewport' is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkscrolledwindow.h:110): Use 'gtk_container_add' instead [-Wdeprecated-declarations]
  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (pScrolledWindow), pShortkeysWidget->pShortKeysTreeView);
  ^
Linking C executable cairo-dock
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_return_error'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_type_get_type_registration_serial'
/usr/lib64/libatk-bridge-2.0.so.0: undefined reference to `atk_object_get_object_locale'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_is_valid'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_run_in_thread'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_propagate_pointer'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_application_get_dbus_object_path'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_application_get_dbus_connection'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_new'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_had_error'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `gdk_pixbuf_animation_new_from_resource'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_get_task_data'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_return_pointer'
/usr/lib64/gcc/x86_64-slackware-linux/4.8.1/../../../../lib64/libgtk-3.so: undefined reference to `g_task_set_task_data'
collect2: error: ld returned 1 exit status
make[2]: *** [src/cairo-dock] Error 1
make[1]: *** [src/CMakeFiles/cairo-dock.dir/all] Error 2
make: *** [all] Error 2


r.vaillancourt 07-12-2013 09:41 AM

Hey hyper,
Just built and installed gtkglext and cairo with no problems.
I'm running 64-14 Stable without multilibs, pretty much a vanilla system just re-installed.
Good luck.

hyperhead 07-12-2013 11:23 AM

Ok cheers, perhaps its multilib related :P, I'll throw more effort at it, maybe I'll get lucky! I'll look at all the dependencies again and re-install all of them :/

Quote:

Originally Posted by r.vaillancourt (Post 4989100)
Hey hyper,
Just built and installed gtkglext and cairo with no problems.
I'm running 64-14 Stable without multilibs, pretty much a vanilla system just re-installed.
Good luck.


r.vaillancourt 07-12-2013 07:52 PM

hey hyper,
just to let you know when i built plugins i had a missing modules error, went by so fast i almost missed it.
but i was still able to build and install. hope this helps.

Martinus2u 07-13-2013 02:47 PM

fwiw, here my Slackbuilds for dock and plugins that seemed to work for 3.2.1 on a multilibs system (and a -current snapshot from some time in the past). ymmv

Code:

#!/bin/sh

# Slackware build script for cairo-dock
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

#SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
    SLKCFLAGS="-O2 -fPIC"
    LIBDIRSUFFIX="64"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DMAN_INSTALL_DIR=/usr/man \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# Move manpages in the right place
mv $PKG/usr/share/man $PKG/usr

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog INSTALL LGPL-2 LICENSE copyright $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Code:

#!/bin/sh

# Slackware build script for cairo-dock-plugins
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock-plugins
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
    SLKCFLAGS="-O2 -fPIC"
    LIBDIRSUFFIX="64"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# EVIL HACK for 3.1.2
#patch -p1 << EOF
#--- a/alsaMixer/src/applet-struct.h        2013-03-17 15:06:12.220600026 +0100
#+++ b/alsaMixer/src/applet-struct.h        2013-03-17 15:07:53.158202431 +0100
#@@ -20,6 +20,7 @@
# #ifndef __CD_APPLET_STRUCT__
# #define  __CD_APPLET_STRUCT__
#
#+#include <sys/types.h>
# #include <alsa/asoundlib.h>
# #define _STRUCT_TIMEVAL
# #include <cairo-dock.h>
#EOF

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

# Sheesh.  Donchaloveruby?
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
if [ -d $PKG/usr/usr ]; then
  mv $PKG/usr/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1/CDApplet.rb \
    $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
  rm -rf $PKG/usr/usr
elif [ -e $PKG/usr/CDApplet.rb ]; then
  mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
  mv $PKG/usr/CDApplet.rb $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
fi

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LGPL-2 LICENSE copyright $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}


hyperhead 07-14-2013 05:16 AM

Thanks a lot Martinus2u! Those scripts worked brilliantly. I will now do a diff to see what the differences are from the Slackbuild.org script and yours are, perhaps I will learn why it kept failing on me.

Thanks again.

Quote:

Originally Posted by Martinus2u (Post 4989770)
fwiw, here my Slackbuilds for dock and plugins that seemed to work for 3.2.1 on a multilibs system (and a -current snapshot from some time in the past). ymmv

Code:

#!/bin/sh

# Slackware build script for cairo-dock
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

#SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
    SLKCFLAGS="-O2 -fPIC"
    LIBDIRSUFFIX="64"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DMAN_INSTALL_DIR=/usr/man \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

# Move manpages in the right place
mv $PKG/usr/share/man $PKG/usr

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog INSTALL LGPL-2 LICENSE copyright $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

Code:

#!/bin/sh

# Slackware build script for cairo-dock-plugins
# Written by Robert Goodall (cmd.line.geek@gmail.com)
# Official Site: http://www.glx-dock.org/

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# adapted to later versions by Martinus2u

MAKEFLAGS=-j8

PRGNAM=cairo-dock-plugins
VERSION=${VERSION:-3.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

SRCBUILD=1

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
      *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
    SLKCFLAGS="-O2 -march=i486 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
    SLKCFLAGS="-O2 -march=i686 -mtune=i686"
    LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
    SLKCFLAGS="-O2 -fPIC"
    LIBDIRSUFFIX="64"
else
    SLKCFLAGS="-O2"
    LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
#tar -xvf $CWD/$PRGNAM-$VERSION.$SRCBUILD.tar.gz
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

# EVIL HACK for 3.1.2
#patch -p1 << EOF
#--- a/alsaMixer/src/applet-struct.h        2013-03-17 15:06:12.220600026 +0100
#+++ b/alsaMixer/src/applet-struct.h        2013-03-17 15:07:53.158202431 +0100
#@@ -20,6 +20,7 @@
# #ifndef __CD_APPLET_STRUCT__
# #define  __CD_APPLET_STRUCT__
#
#+#include <sys/types.h>
# #include <alsa/asoundlib.h>
# #define _STRUCT_TIMEVAL
# #include <cairo-dock.h>
#EOF

cmake \
  -DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
  -DLIB_SUFFIX=${LIBDIRSUFFIX} \
  -DCMAKE_INSTALL_PREFIX=/usr \
  -DCMAKE_BUILD_TYPE=Release .

make $MAKEFLAGS VERBOSE=1
make install DESTDIR=$PKG

# Sheesh.  Donchaloveruby?
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
if [ -d $PKG/usr/usr ]; then
  mv $PKG/usr/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1/CDApplet.rb \
    $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
  rm -rf $PKG/usr/usr
elif [ -e $PKG/usr/CDApplet.rb ]; then
  mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
  mv $PKG/usr/CDApplet.rb $PKG/usr/lib${LIBDIRSUFFIX}/ruby/1.9.1
fi

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog LGPL-2 LICENSE copyright $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}



Martinus2u 07-14-2013 06:42 AM

glad i could help ^^


All times are GMT -5. The time now is 10:03 PM.