aboutsummaryrefslogtreecommitdiff
path: root/gis/pointcloud/pointcloud.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/pointcloud/pointcloud.SlackBuild')
-rw-r--r--gis/pointcloud/pointcloud.SlackBuild32
1 files changed, 11 insertions, 21 deletions
diff --git a/gis/pointcloud/pointcloud.SlackBuild b/gis/pointcloud/pointcloud.SlackBuild
index 35a4da9a590a..af26628e46eb 100644
--- a/gis/pointcloud/pointcloud.SlackBuild
+++ b/gis/pointcloud/pointcloud.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for pointcloud
-# Copyright 2013 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2013-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pointcloud
-VERSION=${VERSION:-1.0.1}
+VERSION=${VERSION:-1.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,25 +69,15 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Upstream commit
-# please remove it on next release
-patch -p1 < $CWD/postgresql9.5.patch
-
-sed -i "s/cppflags/cflags/" CMakeLists.txt
-sed -i "s/CPPFLAGS/CFLAGS/" CMakeLists.txt
-sed -i "s/CPPFLAGS/CFLAGS/" pgsql/CMakeLists.txt
-
-mkdir -p build
-cd build
- cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DWITH_TESTS=FALSE \
- ..
- make install DESTDIR=$PKG
-cd ..
+./autogen.sh
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+make
+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