summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libilbc/libilbc.SlackBuild29
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