summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/CGAL/CGAL.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/libraries/CGAL/CGAL.SlackBuild b/libraries/CGAL/CGAL.SlackBuild
index 0e80ae0da8..9099f139cd 100644
--- a/libraries/CGAL/CGAL.SlackBuild
+++ b/libraries/CGAL/CGAL.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=CGAL
VERSION=${VERSION:-4.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -75,17 +75,18 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DCGAL_INSTALL_LIB_DIR=lib${LIBDIRSUFFIX} \
+ -DCGAL_INSTALL_CMAKE_DIR=lib${LIBDIRSUFFIX}/CGAL \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
-# Install path fixup: LIB_SUFFIX not supported
-if [ "$LIBDIRSUFFIX" != '' ]; then
- mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
-fi
+# Path fixup: CGAL_INSTALL_CMAKE_DIR not fully honoured (thanks bosth!)
+sed -i -e "s:/usr/lib/CGAL:/usr/lib${LIBDIRSUFFIX}/CGAL:" \
+ $PKG/usr/lib${LIBDIRSUFFIX}/CGAL/FindCGAL.cmake
-# Install path fixup: MAN_INSTALL_DIR not supported
+# Path fixup: MAN_INSTALL_DIR not supported
mv $PKG/usr/share/man $PKG/usr/
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $(find $PKG/usr/man -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done