diff options
Diffstat (limited to 'development/cppcms')
-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 c3ceb59db07dc..0c0f8c66ae053 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 370f088d17a8b..e7c11019a3021 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 5d5264c51358c..6672833a04c67 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" |