From ea7a9b00b5e6ebc1fe0dff84ee64c8e074d7496f Mon Sep 17 00:00:00 2001 From: David Woodfall Date: Sun, 12 Apr 2015 08:20:29 +0700 Subject: libraries/libilbc: Switch to autoconf. Signed-off-by: Willy Sudiarto Raharjo --- libraries/libilbc/libilbc.SlackBuild | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'libraries') 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 -- cgit v1.2.3