summaryrefslogtreecommitdiff
path: root/graphics/k3d/k3d.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-22 00:53:06 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-01-23 01:16:52 +0000
commitff9bb6d2553f3625e32cdd0bc383ef3fc4c4e7d1 (patch)
tree0a0651cd7ec4281922585b7c441044d14de2405a /graphics/k3d/k3d.SlackBuild
parenteb89d5140e8dbf4ac4044ac728797c380d49baa8 (diff)
downloadslackbuilds-ff9bb6d2553f3625e32cdd0bc383ef3fc4c4e7d1.tar.gz
graphics/k3d: Updated for version 0.8.0.5.
Fixes build failure with libsigc++-2.6.2. New maintainer. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'graphics/k3d/k3d.SlackBuild')
-rw-r--r--graphics/k3d/k3d.SlackBuild35
1 files changed, 13 insertions, 22 deletions
diff --git a/graphics/k3d/k3d.SlackBuild b/graphics/k3d/k3d.SlackBuild
index 0ac2c1b444..7db26a38cd 100644
--- a/graphics/k3d/k3d.SlackBuild
+++ b/graphics/k3d/k3d.SlackBuild
@@ -23,11 +23,11 @@
# 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.
-
-# Revision date: 2012/09/14
+#
+# Maintained by David Spencer <baildon.research@googlemail.com>
PRGNAM=k3d
-VERSION=${VERSION:-0.8.0.2}
+VERSION=${VERSION:-0.8.0.5}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
@@ -63,27 +63,19 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-source-$VERSION
-tar xvf $CWD/$PRGNAM-source-$VERSION.tar.bz2
-cd $PRGNAM-source-$VERSION
+# Upstream hasn't quite grokked how Github's tarballs work :(
+rm -rf $PRGNAM-$PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \;
-
-# Patch code for new libpng
-patch -p1 < $CWD/png14.patch
-
-# Patch code for gtkmm-2.24
-patch -p1 < $CWD/k3d_gtkmm224.patch
-
-# Patch to build against gcc-4.7
-patch -p1 < $CWD/k3d_gcc47.patch
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Fix man install directory.
-sed -i "s|share/man|man|" man/CMakeLists.txt
+sed -i "s|share/man|man|" share/man/CMakeLists.txt
# Fix location of libraries for 64-bits
sed -i "s|SET(K3D_LIBDIR lib)|SET(K3D_LIBDIR lib${LIBDIRSUFFIX})|" CMakeLists.txt
@@ -92,9 +84,8 @@ mkdir k3d-build
cd k3d-build
cmake -G "Unix Makefiles" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -Wno-deprecated-declarations" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DK3D_BUILD_SVG_IO_MODULE=ON \
-DK3D_BUILD_CGAL_MODULE=OFF \
-DCMAKE_BUILD_TYPE=Release ..