Skip to content

Commit

Permalink
add vst2sdk and airwindows
Browse files Browse the repository at this point in the history
  • Loading branch information
noisecode3 committed Oct 31, 2023
1 parent 51dc3ca commit 80f3b42
Show file tree
Hide file tree
Showing 10 changed files with 269 additions and 0 deletions.
9 changes: 9 additions & 0 deletions builds/airwindows/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set(VSTSDK_ROOT
${CMAKE_CURRENT_SOURCE_DIR}
CACHE STRING "VST SDK dir")

set(VSTSDK_SOURCES
${VSTSDK_ROOT}/vstplugmain.cpp
${VSTSDK_ROOT}/audioeffect.cpp
${VSTSDK_ROOT}/audioeffectx.cpp
CACHE STRING "VST SDK source files")
4 changes: 4 additions & 0 deletions builds/airwindows/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Airwindows plugins are modular, graphic-less, stripped-down,
VST plugins, for Mac and PC. The Mac VSTs are all 64 bit-
triple binary, i386 / x86_64 / ppc. The PC VSTs come in 32 and 64 bit
versions.
103 changes: 103 additions & 0 deletions builds/airwindows/airwindows.SlackBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#!/bin/bash

# Slackware build script for airwindows

# Copyright 2023 Martin Bångens Sweden
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=airwindows
VERSION=${VERSION:-git}
BUILD=${BUILD:-1}
TAG=${TAG:-_SSb}
PKGTYPE=${PKGTYPE:-tgz}

if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi

TMP=${TMP:-/tmp/SSb}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
#mkdir -p $TMP
#cd $TMP
#rm -rf airwindows
#git clone https://github.com/airwindows/airwindows
#cd airwindows
#VERSION=$(git describe --tags)
#VERSION=$(echo $VERSION | tr '-' . )
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi

set -e

rm -rf $PKG
LIBDIR=lib
if [ $ARCH == "x86_64" ]; then
LIBDIR="$LIBDIR"64
fi
mkdir -p $TMP $PKG $OUTPUT $PKG/usr/$LIBDIR/vst/airwindows
cd $TMP
rm -rf airwindows
git clone https://github.com/airwindows/airwindows
cd airwindows
git submodule update --init --recursive
#VERSION=$(git describe --tags)
#VERSION=$(echo $VERSION | tr '-' . )
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;

cd plugins/LinuxVST
mkdir -p include/vstsdk build
cp $CWD/CMakeLists.txt include/vstsdk/
cd build
cmake -DVSTSDK_ROOT=/usr/include/vst2sdk -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -ffast-math" ..
make
cp ./*.so $PKG/usr/$LIBDIR/vst/airwindows/

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/doc/$PRGNAM-$VERSION

cd ../../../
cp -a \
what.txt \
LICENSE \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
10 changes: 10 additions & 0 deletions builds/airwindows/airwindows.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PRGNAM="airwindows"
VERSION="git"
HOMEPAGE="https://www.airwindows.com/"
DOWNLOAD=""
MD5SUM=""
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="vst2sdk"
MAINTAINER="Martin Bångens"
EMAIL="marbangens@gmail.com"
19 changes: 19 additions & 0 deletions builds/airwindows/slack-desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

|-----handy-ruler------------------------------------------------------|
airwindows: airwindows (Airwindows VST2)
airwindows:
airwindows: Airwindows plugins are modular, graphic-less, stripped-down,
airwindows: VST plugins
airwindows:
airwindows:
airwindows:
airwindows:
airwindows:
airwindows:
airwindows:
2 changes: 2 additions & 0 deletions builds/vst2sdk/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is the old vst2sdk from steinberg's "vst36" for building plugins
that still uses vst2. You can't legally distribute this package.
19 changes: 19 additions & 0 deletions builds/vst2sdk/slack-desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

|-----handy-ruler------------------------------------------------------|
vst2sdk: vst2sdk (Software development kit for VST2 plug-ins)
vst2sdk:
vst2sdk: This allows plug-in developers to create plug-ins in VST 2 format and
vst2sdk: host developers to load VST 2 plug-ins into a DAW or audio editor.
vst2sdk:
vst2sdk:
vst2sdk:
vst2sdk:
vst2sdk:
vst2sdk:
vst2sdk:
88 changes: 88 additions & 0 deletions builds/vst2sdk/vst2sdk.SlackBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#!/bin/bash

# Slackware build script for vst2sdk

# Copyright Martin Bångens Sweden
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=vst2sdk
VERSION=${VERSION:-3.6.10}
SDK_DATE=${SDK_DATE:-_11_06_2018}
SDK_BUILD=${SDK_BUILD:-_build_37}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch

# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi

TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP

rm -rf VST_SDK
unzip $CWD/vstsdk${VERSION//.}${SDK_DATE}${SDK_BUILD}.zip
cd VST_SDK/VST2_SDK/
chown -R root:root .

mkdir -p $PKG/usr/include/vst2sdk/pluginterfaces/vst2.x
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/share/pkgconfig

install -m644 public.sdk/source/vst2.x/* $PKG/usr/include/vst2sdk/
install -m644 pluginterfaces/vst2.x/* \
$PKG/usr/include/vst2sdk/pluginterfaces/vst2.x/

cp $CWD/vst2sdk.pc $PKG/usr/share/pkgconfig
sed -i "s/VERSION/$VERSION$SDK_BUILD/g" $PKG/usr/share/pkgconfig/vst2sdk.pc

cp -a \
../VST3_SDK/LICENSE.txt \
VST2_License_Agreement.pdf \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

chmod 755 $PKG/usr/include/vst2sdk
find $PKG/usr/include/vst2sdk -type d -exec chmod 755 {} +
find $PKG/usr/include/vst2sdk -type f -exec chmod 644 {} +

chmod 755 $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 755 {} +
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} +

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
10 changes: 10 additions & 0 deletions builds/vst2sdk/vst2sdk.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PRGNAM="vst3sdk"
VERSION="3.6.10"
HOMEPAGE="https://www.steinberg.net/developers/"
DOWNLOAD="https://web.archive.org/web/20181016150224/https://download.steinberg.net/sdk_downloads/vstsdk3610_11_06_2018_build_37.zip
MD5SUM="f66fc320407822e610ccd26c5ba48b08"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Martin Bångens"
EMAIL="marbangens@gmail.com"
5 changes: 5 additions & 0 deletions builds/vst2sdk/vst2sdk.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name: vst2sdk
Description: VST 2 Plug-In SDK
Version: VERSION
Cflags: -I/usr/include/vst2sdk
Libs:

0 comments on commit 80f3b42

Please sign in to comment.