|
@@ -1,8 +1,19 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
# NOTE: You need the following packages installed via MacPorts: |
|
|
|
|
|
# automake, autoconf, bison, flex, libtool |
|
|
|
|
|
# p5-libxml-perl, p5-xml-libxml, p7zip, pkgconfig |
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
# set variables |
|
|
|
|
|
|
|
|
|
|
|
PKG_CONFIG_VERSION=0.28 |
|
|
|
|
|
LIBLO_VERSION=0.29 |
|
|
|
|
|
ZLIB_VERSION=1.2.11 |
|
|
|
|
|
FILE_VERSION=5.32 |
|
|
|
|
|
LIBOGG_VERSION=1.3.3 |
|
|
|
|
|
LIBVORBIS_VERSION=1.3.5 |
|
|
|
|
|
FLAC_VERSION=1.3.2 |
|
|
|
|
|
LIBSNDFILE_VERSION=1.0.28 |
|
|
|
|
|
LIBGIG_VERSION=4.0.0 |
|
|
|
|
|
LINUXSAMPLER_VERSION=2.0.0 |
|
|
|
|
|
FLUIDSYNTH_VERSION=1.1.7 |
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# stop on error |
|
|
# stop on error |
|
@@ -43,9 +54,6 @@ rm -rf zlib-* |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
cleanup |
|
|
|
|
|
exit 0 |
|
|
|
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# function to build base libs |
|
|
# function to build base libs |
|
|
|
|
|
|
|
@@ -69,14 +77,14 @@ export LDFLAGS="$LDFLAGS -L$PREFIX/lib" |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# pkgconfig |
|
|
# pkgconfig |
|
|
|
|
|
|
|
|
if [ ! -d pkg-config-0.28 ]; then |
|
|
|
|
|
curl -O https://pkg-config.freedesktop.org/releases/pkg-config-0.28.tar.gz |
|
|
|
|
|
tar -xf pkg-config-0.28.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d pkg-config-${PKG_CONFIG_VERSION} ]; then |
|
|
|
|
|
curl -O https://pkg-config.freedesktop.org/releases/pkg-config-${PKG_CONFIG_VERSION}.tar.gz |
|
|
|
|
|
tar -xf pkg-config-${PKG_CONFIG_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f pkg-config-0.28_$ARCH/build-done ]; then |
|
|
|
|
|
cp -r pkg-config-0.28 pkg-config-0.28_$ARCH |
|
|
|
|
|
cd pkg-config-0.28_$ARCH |
|
|
|
|
|
|
|
|
if [ ! -f pkg-config-${PKG_CONFIG_VERSION}_$ARCH/build-done ]; then |
|
|
|
|
|
cp -r pkg-config-${PKG_CONFIG_VERSION} pkg-config-${PKG_CONFIG_VERSION}_$ARCH |
|
|
|
|
|
cd pkg-config-${PKG_CONFIG_VERSION}_$ARCH |
|
|
./configure --enable-indirect-deps --with-internal-glib --with-pc-path=$PKG_CONFIG_PATH --prefix=$PREFIX |
|
|
./configure --enable-indirect-deps --with-internal-glib --with-pc-path=$PKG_CONFIG_PATH --prefix=$PREFIX |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
@@ -87,15 +95,17 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# liblo |
|
|
# liblo |
|
|
|
|
|
|
|
|
if [ ! -d liblo-0.28 ]; then |
|
|
|
|
|
curl -L http://download.sourceforge.net/liblo/liblo-0.28.tar.gz -o liblo-0.28.tar.gz |
|
|
|
|
|
tar -xf liblo-0.28.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d liblo-${LIBLO_VERSION} ]; then |
|
|
|
|
|
curl -L http://download.sourceforge.net/liblo/liblo-${LIBLO_VERSION}.tar.gz -o liblo-${LIBLO_VERSION}.tar.gz |
|
|
|
|
|
tar -xf liblo-${LIBLO_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f liblo-0.28_$ARCH/build-done ]; then |
|
|
|
|
|
cp -r liblo-0.28 liblo-0.28_$ARCH |
|
|
|
|
|
cd liblo-0.28_$ARCH |
|
|
|
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
|
|
|
|
|
|
if [ ! -f liblo-${LIBLO_VERSION}_$ARCH/build-done ]; then |
|
|
|
|
|
cp -r liblo-${LIBLO_VERSION} liblo-${LIBLO_VERSION}_$ARCH |
|
|
|
|
|
cd liblo-${LIBLO_VERSION}_$ARCH |
|
|
|
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX \ |
|
|
|
|
|
--enable-threads \ |
|
|
|
|
|
--disable-examples --disable-tools --disable-tests |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
|
touch build-done |
|
|
touch build-done |
|
@@ -111,13 +121,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# zlib |
|
|
# zlib |
|
|
|
|
|
|
|
|
if [ ! -d zlib-1.2.10 ]; then |
|
|
|
|
|
curl -L https://github.com/madler/zlib/archive/v1.2.10.tar.gz -o zlib-1.2.10.tar.gz |
|
|
|
|
|
tar -xf zlib-1.2.10.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d zlib-${ZLIB_VERSION} ]; then |
|
|
|
|
|
curl -L https://github.com/madler/zlib/archive/v${ZLIB_VERSION}.tar.gz -o zlib-${ZLIB_VERSION}.tar.gz |
|
|
|
|
|
tar -xf zlib-${ZLIB_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f zlib-1.2.10/build-done ]; then |
|
|
|
|
|
cd zlib-1.2.10 |
|
|
|
|
|
|
|
|
if [ ! -f zlib-${ZLIB_VERSION}/build-done ]; then |
|
|
|
|
|
cd zlib-${ZLIB_VERSION} |
|
|
./configure --static --prefix=$PREFIX |
|
|
./configure --static --prefix=$PREFIX |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
@@ -128,13 +138,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# file/magic |
|
|
# file/magic |
|
|
|
|
|
|
|
|
if [ ! -d file-5.25 ]; then |
|
|
|
|
|
curl -O ftp://ftp.astron.com/pub/file/file-5.25.tar.gz |
|
|
|
|
|
tar -xf file-5.25.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d file-${FILE_VERSION} ]; then |
|
|
|
|
|
curl -O ftp://ftp.astron.com/pub/file/file-${FILE_VERSION}.tar.gz |
|
|
|
|
|
tar -xf file-${FILE_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f file-5.25/build-done ]; then |
|
|
|
|
|
cd file-5.25 |
|
|
|
|
|
|
|
|
if [ ! -f file-${FILE_VERSION}/build-done ]; then |
|
|
|
|
|
cd file-${FILE_VERSION} |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
@@ -142,16 +152,18 @@ touch build-done |
|
|
cd .. |
|
|
cd .. |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# libogg |
|
|
# libogg |
|
|
|
|
|
|
|
|
if [ ! -d libogg-1.3.2 ]; then |
|
|
|
|
|
curl -O https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-1.3.2.tar.gz |
|
|
|
|
|
tar -xf libogg-1.3.2.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d libogg-${LIBOGG_VERSION} ]; then |
|
|
|
|
|
curl -O https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-${LIBOGG_VERSION}.tar.gz |
|
|
|
|
|
tar -xf libogg-${LIBOGG_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f libogg-1.3.2/build-done ]; then |
|
|
|
|
|
cd libogg-1.3.2 |
|
|
|
|
|
|
|
|
if [ ! -f libogg-${LIBOGG_VERSION}/build-done ]; then |
|
|
|
|
|
cd libogg-${LIBOGG_VERSION} |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
@@ -162,13 +174,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# libvorbis |
|
|
# libvorbis |
|
|
|
|
|
|
|
|
if [ ! -d libvorbis-1.3.5 ]; then |
|
|
|
|
|
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz |
|
|
|
|
|
tar -xf libvorbis-1.3.5.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d libvorbis-${LIBVORBIS_VERSION} ]; then |
|
|
|
|
|
wget https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-${LIBVORBIS_VERSION}.tar.gz |
|
|
|
|
|
tar -xf libvorbis-${LIBVORBIS_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f libvorbis-1.3.5/build-done ]; then |
|
|
|
|
|
cd libvorbis-1.3.5 |
|
|
|
|
|
|
|
|
if [ ! -f libvorbis-${LIBVORBIS_VERSION}/build-done ]; then |
|
|
|
|
|
cd libvorbis-${LIBVORBIS_VERSION} |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
@@ -179,13 +191,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# flac |
|
|
# flac |
|
|
|
|
|
|
|
|
if [ ! -d flac-1.3.1 ]; then |
|
|
|
|
|
wget https://svn.xiph.org/releases/flac/flac-1.3.1.tar.xz |
|
|
|
|
|
tar -xf flac-1.3.1.tar.xz |
|
|
|
|
|
|
|
|
if [ ! -d flac-${FLAC_VERSION} ]; then |
|
|
|
|
|
wget https://svn.xiph.org/releases/flac/flac-${FLAC_VERSION}.tar.xz |
|
|
|
|
|
tar -xf flac-${FLAC_VERSION}.tar.xz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f flac-1.3.1/build-done ]; then |
|
|
|
|
|
cd flac-1.3.1 |
|
|
|
|
|
|
|
|
if [ ! -f flac-${FLAC_VERSION}/build-done ]; then |
|
|
|
|
|
cd flac-${FLAC_VERSION} |
|
|
chmod +x configure install-sh |
|
|
chmod +x configure install-sh |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
make |
|
|
make |
|
@@ -197,13 +209,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# libsndfile |
|
|
# libsndfile |
|
|
|
|
|
|
|
|
if [ ! -d libsndfile-1.0.26 ]; then |
|
|
|
|
|
curl -O http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.26.tar.gz |
|
|
|
|
|
tar -xf libsndfile-1.0.26.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d libsndfile-${SNDFILE_VERSION} ]; then |
|
|
|
|
|
curl -O http://www.mega-nerd.com/libsndfile/files/libsndfile-${SNDFILE_VERSION}.tar.gz |
|
|
|
|
|
tar -xf libsndfile-${SNDFILE_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f libsndfile-1.0.26/build-done ]; then |
|
|
|
|
|
cd libsndfile-1.0.26 |
|
|
|
|
|
|
|
|
if [ ! -f libsndfile-${SNDFILE_VERSION}/build-done ]; then |
|
|
|
|
|
cd libsndfile-${SNDFILE_VERSION} |
|
|
# sed -i -e "s/#include <Carbon.h>//" programs/sndfile-play.c |
|
|
# sed -i -e "s/#include <Carbon.h>//" programs/sndfile-play.c |
|
|
./configure --enable-static --disable-shared --disable-sqlite --prefix=$PREFIX |
|
|
./configure --enable-static --disable-shared --disable-sqlite --prefix=$PREFIX |
|
|
make |
|
|
make |
|
@@ -215,13 +227,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# libgig |
|
|
# libgig |
|
|
|
|
|
|
|
|
if [ ! -d libgig-4.0.0 ]; then |
|
|
|
|
|
curl -O http://download.linuxsampler.org/packages/libgig-4.0.0.tar.bz2 |
|
|
|
|
|
tar -xf libgig-4.0.0.tar.bz2 |
|
|
|
|
|
|
|
|
if [ ! -d libgig-${LIBGIG_VERSION} ]; then |
|
|
|
|
|
curl -O http://download.linuxsampler.org/packages/libgig-${LIBGIG_VERSION}.tar.bz2 |
|
|
|
|
|
tar -xf libgig-${LIBGIG_VERSION}.tar.bz2 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f libgig-4.0.0/build-done ]; then |
|
|
|
|
|
cd libgig-4.0.0 |
|
|
|
|
|
|
|
|
if [ ! -f libgig-${LIBGIG_VERSION}/build-done ]; then |
|
|
|
|
|
cd libgig-${LIBGIG_VERSION} |
|
|
if [ ! -f patched ]; then |
|
|
if [ ! -f patched ]; then |
|
|
patch -p1 -i ../patches/libgig_fix-build.patch |
|
|
patch -p1 -i ../patches/libgig_fix-build.patch |
|
|
touch patched |
|
|
touch patched |
|
@@ -236,13 +248,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# linuxsampler |
|
|
# linuxsampler |
|
|
|
|
|
|
|
|
if [ ! -d linuxsampler-2.0.0 ]; then |
|
|
|
|
|
curl -O http://download.linuxsampler.org/packages/linuxsampler-2.0.0.tar.bz2 |
|
|
|
|
|
tar -xf linuxsampler-2.0.0.tar.bz2 |
|
|
|
|
|
|
|
|
if [ ! -d linuxsampler-${LINUXSAMPLER_VERSION} ]; then |
|
|
|
|
|
curl -O http://download.linuxsampler.org/packages/linuxsampler-${LINUXSAMPLER_VERSION}.tar.bz2 |
|
|
|
|
|
tar -xf linuxsampler-${LINUXSAMPLER_VERSION}.tar.bz2 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f linuxsampler-2.0.0/build-done ]; then |
|
|
|
|
|
cd linuxsampler-2.0.0 |
|
|
|
|
|
|
|
|
if [ ! -f linuxsampler-${LINUXSAMPLER_VERSION}/build-done ]; then |
|
|
|
|
|
cd linuxsampler-${LINUXSAMPLER_VERSION} |
|
|
if [ ! -f patched ]; then |
|
|
if [ ! -f patched ]; then |
|
|
patch -p1 -i ../patches/linuxsampler_allow-no-drivers-build.patch |
|
|
patch -p1 -i ../patches/linuxsampler_allow-no-drivers-build.patch |
|
|
patch -p1 -i ../patches/linuxsampler_disable-ladspa-fx.patch |
|
|
patch -p1 -i ../patches/linuxsampler_disable-ladspa-fx.patch |
|
@@ -275,13 +287,13 @@ fi |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
# fluidsynth |
|
|
# fluidsynth |
|
|
|
|
|
|
|
|
if [ ! -d fluidsynth-1.1.6 ]; then |
|
|
|
|
|
curl -L http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.6/fluidsynth-1.1.6.tar.gz/download -o fluidsynth-1.1.6.tar.gz |
|
|
|
|
|
tar -xf fluidsynth-1.1.6.tar.gz |
|
|
|
|
|
|
|
|
if [ ! -d fluidsynth-${FLUIDSYNTH_VERSION} ]; then |
|
|
|
|
|
curl -L http://sourceforge.net/projects/fluidsynth/files/fluidsynth-${FLUIDSYNTH_VERSION}/fluidsynth-${FLUIDSYNTH_VERSION}.tar.gz/download -o fluidsynth-${FLUIDSYNTH_VERSION}.tar.gz |
|
|
|
|
|
tar -xf fluidsynth-${FLUIDSYNTH_VERSION}.tar.gz |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ ! -f fluidsynth-1.1.6/build-done ]; then |
|
|
|
|
|
cd fluidsynth-1.1.6 |
|
|
|
|
|
|
|
|
if [ ! -f fluidsynth-${FLUIDSYNTH_VERSION}/build-done ]; then |
|
|
|
|
|
cd fluidsynth-${FLUIDSYNTH_VERSION} |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX \ |
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX \ |
|
|
--disable-dbus-support --disable-aufile-support \ |
|
|
--disable-dbus-support --disable-aufile-support \ |
|
|
--disable-pulse-support --disable-alsa-support --disable-portaudio-support --disable-oss-support --disable-jack-support \ |
|
|
--disable-pulse-support --disable-alsa-support --disable-portaudio-support --disable-oss-support --disable-jack-support \ |
|
|