diff options
Diffstat (limited to 'libraries/mongo-c-driver/mongo-c-driver.SlackBuild')
-rw-r--r-- | libraries/mongo-c-driver/mongo-c-driver.SlackBuild | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild index b0c707f20e39a..37ccb1d73ba82 100644 --- a/libraries/mongo-c-driver/mongo-c-driver.SlackBuild +++ b/libraries/mongo-c-driver/mongo-c-driver.SlackBuild @@ -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 - -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 +DOX=0 ; if [ "${DOCS:-no}" = "yes" ]; then DOX=1 ; fi -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 |