summaryrefslogtreecommitdiff
path: root/libraries/CGAL
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2014-07-24 19:39:34 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 16:34:45 +0700
commited240a7ab563b812a96d823244fb023ce01a61a3 (patch)
treefeec17aa6f0df3467e0eb01f53e2894d4790b796 /libraries/CGAL
parent40987807b5b16c85df2312034b675b40a3ff4966 (diff)
downloadslackbuilds-ed240a7ab563b812a96d823244fb023ce01a61a3.tar.gz
libraries/CGAL: Fix lib64 paths.
The paths in delivered cmake files were wrong, so that other packages could not find CGAL on x86_64. The new upstream config variables mostly solve the problem. Thanks bosth! Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'libraries/CGAL')
-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