summaryrefslogtreecommitdiff
path: root/audio/qtractor/qtractor.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/qtractor/qtractor.SlackBuild')
-rw-r--r--audio/qtractor/qtractor.SlackBuild42
1 files changed, 27 insertions, 15 deletions
diff --git a/audio/qtractor/qtractor.SlackBuild b/audio/qtractor/qtractor.SlackBuild
index fcef598b0c..1f01d90d1c 100644
--- a/audio/qtractor/qtractor.SlackBuild
+++ b/audio/qtractor/qtractor.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qtractor
-VERSION=${VERSION:-0.9.23}
+VERSION=${VERSION:-0.9.29}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -79,28 +79,40 @@ 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 {} \;
-LDFLAGS="$LDFLAGS -ldl" \
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+#LDFLAGS="$LDFLAGS -ldl" \
+#CFLAGS="$SLKCFLAGS" \
+#CXXFLAGS="$SLKCFLAGS" \
+#./configure \
+# --prefix=/usr \
+# --libdir=/usr/lib${LIBDIRSUFFIX} \
+# --sysconfdir=/etc \
+# --localstatedir=/var \
+# --mandir=/usr/man \
+# --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DPluginLibDir=/usr/lib$LIBDIRSUFFIX \
+ -DCMAKE_BUILD_TYPE=Release \
+ -Wno-dev \
+ ..
+ make
+ make install/strip 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/man
+mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING README README>VST TODO ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE README TRANSLATORS README.VST3 README.VST ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install