diff options
author | David Woodfall <dave@dawoodfall.net> | 2015-04-12 08:20:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-12 08:20:29 +0700 |
commit | ea7a9b00b5e6ebc1fe0dff84ee64c8e074d7496f (patch) | |
tree | aeb3a3612e650c21b9555f62bb665ac3ae386553 | |
parent | 9c66c85ba48a8b809c93b0db3a4e893c610ef493 (diff) | |
download | slackbuilds-ea7a9b00b5e6ebc1fe0dff84ee64c8e074d7496f.tar.gz |
libraries/libilbc: Switch to autoconf.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | libraries/libilbc/libilbc.SlackBuild | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/libraries/libilbc/libilbc.SlackBuild b/libraries/libilbc/libilbc.SlackBuild index df05b3ae4c..8d563c4a39 100644 --- a/libraries/libilbc/libilbc.SlackBuild +++ b/libraries/libilbc/libilbc.SlackBuild @@ -68,22 +68,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 {} \; -# fix libdir -sed -i "s|lib/\${CMAKE_LIBRARY_ARCHITECTURE}|lib\${LIB_SUFFIX}|g" \ - CMakeLists.txt +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --enable-static=no \ + --build=$ARCH-slackware-linux -mkdir build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DBUILD_SHARED_LIBS=1 \ - -DCMAKE_BUILD_TYPE=Release \ - .. - make - make install DESTDIR=$PKG -cd .. +make +make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |