diff options
author | Ozan Turkyilmaz <ozan.turkyilmaz@gmail.com> | 2018-10-17 12:48:17 +0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-18 03:43:49 +0700 |
commit | c710d4ce5ddbbfbd921ccb624f7cefe7307a4898 (patch) | |
tree | 393ccd0d3e523e1a908b201a507a4706d54e9281 /libraries/libebml/libebml.SlackBuild | |
parent | c0ba35b6c1163534cdf29d857e9505548f70e835 (diff) |
libraries/libebml: Updated Libebml to 1.3.6.
The build system is cmake now.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libebml/libebml.SlackBuild')
-rw-r--r-- | libraries/libebml/libebml.SlackBuild | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/libraries/libebml/libebml.SlackBuild b/libraries/libebml/libebml.SlackBuild index a498838461668..1af1d755aacb0 100644 --- a/libraries/libebml/libebml.SlackBuild +++ b/libraries/libebml/libebml.SlackBuild @@ -25,12 +25,10 @@ # Maintained by Ozan Türkyılmaz ozan.turkyilmaz@gmail.com PRGNAM=libebml -VERSION=${VERSION:-1.3.5} +VERSION=${VERSION:-1.3.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -STATICLIB=${STATICLIB:-no} - if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -73,23 +71,21 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ - ./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux \ - --enable-static=${STATICLIB} - +patch -p1 < $CWD/patch.patch + +mkdir -p build +cd build + +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make -make install DESTDIR=$PKG +make install/strip DESTDIR=$PKG -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 +cd .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a ChangeLog LICENSE.LGPL $PKG/usr/doc/$PRGNAM-$VERSION |