aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-06-01 09:51:06 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-01 09:51:06 -0500
commit92d7e8ba586e77400a2e105ee1ea3a18c8e97c75 (patch)
tree2dcf8e23c2d20bab1bf7cb59564d8825b0552487
parentb023cfe065d471e6989ccbc7274b619d5082f517 (diff)
cmake-template.SlackBuild: Minor tweaks
-rw-r--r--cmake-template.SlackBuild26
1 files changed, 12 insertions, 14 deletions
diff --git a/cmake-template.SlackBuild b/cmake-template.SlackBuild
index c81b4dd..d6b2d3c 100644
--- a/cmake-template.SlackBuild
+++ b/cmake-template.SlackBuild
@@ -83,21 +83,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Your application will probably need different configure flags;
+# Your application will probably need different cmake flags;
# these are provided as an example only.
-# Be sure to build only shared libraries unless there's some need for
-# static.
-mkdir -p build && cd build
-cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_SUFFIX=${LIBDIRSUFFIX} \
- -DMAN_INSTALL_DIR=/usr/man \
- -DCMAKE_BUILD_TYPE=Release ..
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=${LIBDIRSUFFIX} \
+ -DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
cd ..
# Strip binaries and libraries - this can be done with 'make install-strip'