diff options
author | Cristiano Urban <cristiano.urban.slack@gmail.com> | 2017-04-22 22:56:06 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-22 22:56:06 +0700 |
commit | 1d8b05027d9f78c00ea344a5af9f893503e4b4b4 (patch) | |
tree | d9667908df18cc7d27e6438823a4c8a637c77750 | |
parent | 245195e3b615fb5ceb6a6389a63628d7c0e65673 (diff) | |
download | slackbuilds-1d8b05027d9f78c00ea344a5af9f893503e4b4b4.tar.gz |
development/cppcms: New maintainer
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/cppcms/README | 5 | ||||
-rw-r--r-- | development/cppcms/cppcms.SlackBuild | 30 | ||||
-rw-r--r-- | development/cppcms/cppcms.info | 4 |
3 files changed, 35 insertions, 4 deletions
diff --git a/development/cppcms/README b/development/cppcms/README index c3ceb59db0..0c0f8c66ae 100644 --- a/development/cppcms/README +++ b/development/cppcms/README @@ -10,3 +10,8 @@ following: achieve first goal. It is aimed on development of Web Sites rather then "GUI Like" web applications. + +If you want to build a static version of CppCMS you have to launch the +script by passing the STATIC parameter: + + STATIC=yes ./cppcms.SlackBuild diff --git a/development/cppcms/cppcms.SlackBuild b/development/cppcms/cppcms.SlackBuild index 370f088d17..e7c11019a3 100644 --- a/development/cppcms/cppcms.SlackBuild +++ b/development/cppcms/cppcms.SlackBuild @@ -2,7 +2,26 @@ # Slackware build script for cppcms -# Written by Asaf Ohayon (asaf at hadasa-oss net) +# Originally written by Asaf Ohayon (asaf at hadasa-oss net) +# Copyright (c) 2017 Cristiano Urban, Gonars, Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cppcms VERSION=${VERSION:-1.0.5} @@ -51,13 +70,20 @@ 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 {} \; +if [ "${STATIC:-no}" = "yes" ]; then + FLAG="OFF" +else + FLAG="ON" +fi + mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DDISABLE_STATIC=$FLAG \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG diff --git a/development/cppcms/cppcms.info b/development/cppcms/cppcms.info index 5d5264c513..6672833a04 100644 --- a/development/cppcms/cppcms.info +++ b/development/cppcms/cppcms.info @@ -6,5 +6,5 @@ MD5SUM="d668c201dd31fff8090380ebdc0bcc2b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Asaf Ohayon" -EMAIL="asaf@hadasa-oss.net" +MAINTAINER="Cristiano Urban" +EMAIL="cristiano.urban.slack@gmail.com" |