summaryrefslogtreecommitdiff
path: root/gis/pdal/pdal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/pdal/pdal.SlackBuild')
-rw-r--r--gis/pdal/pdal.SlackBuild33
1 files changed, 9 insertions, 24 deletions
diff --git a/gis/pdal/pdal.SlackBuild b/gis/pdal/pdal.SlackBuild
index d8687d8045..9d563d739b 100644
--- a/gis/pdal/pdal.SlackBuild
+++ b/gis/pdal/pdal.SlackBuild
@@ -23,12 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pdal
-VERSION=${VERSION:-1.5.0}
+SRCNAM=PDAL
+VERSION=${VERSION:-1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCNAM=PDAL
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -62,11 +61,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-if [ -e $CWD/$VERSION.tar.gz ]; then
- tar xvf $CWD/$VERSION.tar.gz
-else
- tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
-fi
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
@@ -83,22 +78,12 @@ cd build
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=$LIBDIRSUFFIX \
- -DPDAL_BOOST_EMBED=OFF \
- -DWITH_GDAL=ON \
- -DWITH_ICONV=ON \
- -DWITH_GEOTIFF=ON \
- -DWITH_LIBXML2=ON \
- -DWITH_LASZIP=ON \
- -DWITH_ORACLE=OFF \
- -DWITH_PYTHON=OFF \
- -DWITH_FLANN=OFF \
- -DWITH_P2G=OFF \
- -DWITH_SOCI=OFF \
- -DWITH_PGPOINTCLOUD=ON \
- -DLASZIP_LIBRARY=/usr/lib${LIBDIRSUFFIX}/liblaszip.so \
+ -DCMAKE_INSTALL_LIBDIR=lib$LIBDIRSUFFIX \
+ -DBUILD_PGPOINTCLOUD_TESTS=OFF \
+ -DBUILD_PLUGIN_PYTHON=ON \
+ -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
..
- make VERBOSE=1
+ make
make install DESTDIR=$PKG
cd ..
@@ -106,7 +91,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS.txt LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS.txt ChangeLog LICENSE.txt README.md RELEASENOTES.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install