summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:21:29 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 00:21:29 +0200
commit0edd4718caee1b729efb150d5e01e81ed3fc1fbf (patch)
tree711cf1cc356222dfdceac290825fc3fc0e34ab15 /audio
parent5021c54d2aef43290d268064799be20c1bb5da4e (diff)
downloadslackbuilds-0edd4718caee1b729efb150d5e01e81ed3fc1fbf.tar.gz
audio/lv2core: Updated for version 3.0
Diffstat (limited to 'audio')
-rw-r--r--audio/lv2core/lv2core.SlackBuild41
-rw-r--r--audio/lv2core/lv2core.info6
2 files changed, 40 insertions, 7 deletions
diff --git a/audio/lv2core/lv2core.SlackBuild b/audio/lv2core/lv2core.SlackBuild
index 986a6a4ded..b45039ad3f 100644
--- a/audio/lv2core/lv2core.SlackBuild
+++ b/audio/lv2core/lv2core.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lv2core
-# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,8 +24,8 @@
PRGNAM=lv2core
VERSION=${VERSION:-3.0}
-ARCH=${ARCH:-noarch}
-BUILD=${BUILD:-1}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -33,6 +33,17 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+fi
+
set -e
rm -rf $PKG
@@ -49,11 +60,17 @@ find . \
-exec chmod 644 {} \;
./waf configure \
- --prefix=/usr
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX/
./waf build
./waf install --destdir=$PKG
+if [ "$LIBDIRSUFFIX" != "" ]; then
+ sed -i "s,/lib,/lib$LIBDIRSUFFIX," \
+ $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc
+fi
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README \
$PKG/usr/doc/$PRGNAM-$VERSION
@@ -62,5 +79,19 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+mkdir -p $PKG/etc/profile.d
+
+cat <<EOF > $PKG/etc/profile.d/$PRGNAM.sh
+#!/bin/sh
+export LV2_PATH=/usr/lib$LIBDIRSUFFIX/lv2
+EOF
+
+cat <<EOF > $PKG/etc/profile.d/$PRGNAM.csh
+#!/bin/csh
+setenv LV2_PATH /usr/lib$LIBDIRSUFFIX/lv2
+EOF
+
+chmod 0755 $PKG/etc/profile.d/*
+
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/audio/lv2core/lv2core.info b/audio/lv2core/lv2core.info
index 59cdf14f15..3464a43697 100644
--- a/audio/lv2core/lv2core.info
+++ b/audio/lv2core/lv2core.info
@@ -3,6 +3,8 @@ VERSION="3.0"
HOMEPAGE="http://lv2plug.in/"
DOWNLOAD="http://lv2plug.in/spec/lv2core-3.0.tar.bz2"
MD5SUM="382f7d96ff0374c0c495336e1c8bb999"
-MAINTAINER="ppr:kut"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="pprkut"
EMAIL="pprkut@liwjatan.at"
-APPROVED="Erik Hanson"
+APPROVED="Erik Hanson,rworkman"