libraries/mongo-c-driver: Updated for version 1 17.3.
Switch to cmake Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
bf6e9d84bb
commit
92c9f78649
|
@ -21,7 +21,7 @@
|
|||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=mongo-c-driver
|
||||
VERSION=${VERSION:-1.6.1}
|
||||
VERSION=${VERSION:-1.17.3}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -68,36 +68,28 @@ find -L . \
|
|||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
# Flag Docs, if needed
|
||||
PDOCS=""
|
||||
MkDOCS=""
|
||||
if [ "${DOCS:-no}" = "yes" ]; then
|
||||
PDOCS="--enable-html-docs --enable-man-pages"
|
||||
MkDOCS="man html"
|
||||
fi
|
||||
DOX=0 ; if [ "${DOCS:-no}" = "yes" ]; then DOX=1 ; fi
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--disable-static \
|
||||
--disable-automatic-init-and-cleanup \
|
||||
$PDOCS \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make $MkDOCS
|
||||
make install DESTDIR=$PKG
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DMAN_INSTALL_DIR=/usr/man \
|
||||
-DENABLE_MAN_PAGES=$DOX \
|
||||
-DENABLE_HTML_DOCS=$DOX \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
AUTHORS COPYING ChangeLog CONTRIBUTING.md NEWS README README.rst \
|
||||
THIRD_PARTY_NOTICES VERSION_CURRENT VERSION_RELEASED \
|
||||
COPYING CONTRIBUTING.md NEWS README.rst \
|
||||
THIRD_PARTY_NOTICES VERSION_CURRENT \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="mongo-c-driver"
|
||||
VERSION="1.6.1"
|
||||
VERSION="1.17.3"
|
||||
HOMEPAGE="http://mongoc.org"
|
||||
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.6.1/mongo-c-driver-1.6.1.tar.gz"
|
||||
MD5SUM="826946de9a15f7f453aefecdc76b1c0d"
|
||||
DOWNLOAD="https://github.com/mongodb/mongo-c-driver/releases/download/1.17.3/mongo-c-driver-1.17.3.tar.gz"
|
||||
MD5SUM="9babfd9883e7c02bd0d7624ea286ee82"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue