|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash |
|
|
|
|
# Build script for Slackware |
|
|
|
|
# Copyright (C) 2014,2016 Damien Goutte-Gattat |
|
|
|
|
# Copyright (C) 2014,2016,2019 Damien Goutte-Gattat |
|
|
|
|
# |
|
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
|
# is permitted provided that the following conditions are met: |
|
|
|
@ -27,7 +27,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-yaml-cpp} |
|
|
|
|
VERSION=${VERSION:-0.5.3} |
|
|
|
|
VERSION=${VERSION:-0.6.3} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://github.com/jbeder/yaml-cpp/archive/$ARCHIVE} |
|
|
|
|
|
|
|
|
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
fi |
|
|
|
|
sha1sum -c $ARCHIVE.sha1 |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
|
|
|
|
|
|
# Compile |
|
|
|
@ -89,7 +89,7 @@ CFLAGS=$CPUOPT \
|
|
|
|
|
CXXFLAGS=$CPUOPT \ |
|
|
|
|
cmake \ |
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \ |
|
|
|
|
-DBUILD_SHARED_LIBS=ON \ |
|
|
|
|
-DYAML_BUILD_SHARED_LIBS=ON \ |
|
|
|
|
$FLAG64 \ |
|
|
|
|
.. |
|
|
|
|
make -j $JOBS |
|
|
|
|