|
|
@@ -27,7 +27,7 @@ source common.env |
|
|
|
cleanup() |
|
|
|
{ |
|
|
|
|
|
|
|
rm -rf $TARGETDIR/carla32/ $TARGETDIR/carla64/ |
|
|
|
rm -rf ${TARGETDIR}/carla32/ ${TARGETDIR}/carla64/ |
|
|
|
rm -rf file-* |
|
|
|
rm -rf flac-* |
|
|
|
rm -rf fltk-* |
|
|
@@ -52,16 +52,16 @@ build_base() |
|
|
|
export CC=gcc |
|
|
|
export CXX=g++ |
|
|
|
|
|
|
|
export PREFIX=$TARGETDIR/carla$ARCH |
|
|
|
export PATH=$PREFIX/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin |
|
|
|
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig |
|
|
|
export PREFIX=${TARGETDIR}/carla${ARCH} |
|
|
|
export PATH=${PREFIX}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin |
|
|
|
export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig |
|
|
|
|
|
|
|
export CFLAGS="-O3 -mtune=generic -msse -msse2 -mfpmath=sse -fvisibility=hidden -fdata-sections -ffunction-sections" |
|
|
|
export CFLAGS="$CFLAGS -fPIC -DPIC -DNDEBUG -I$PREFIX/include" |
|
|
|
export CXXFLAGS="$CFLAGS -fvisibility-inlines-hidden" |
|
|
|
export CFLAGS="${CFLAGS} -fPIC -DPIC -DNDEBUG -I${PREFIX}/include -m${ARCH}" |
|
|
|
export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden" |
|
|
|
|
|
|
|
export LDFLAGS="-fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -Wl,--strip-all" |
|
|
|
export LDFLAGS="$LDFLAGS -L$PREFIX/lib" |
|
|
|
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -m${ARCH}" |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# pkgconfig |
|
|
@@ -74,7 +74,7 @@ fi |
|
|
|
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_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -92,7 +92,7 @@ fi |
|
|
|
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 \ |
|
|
|
./configure --enable-static --disable-shared --prefix=${PREFIX} \ |
|
|
|
--enable-threads \ |
|
|
|
--disable-examples --disable-tools |
|
|
|
make ${MAKE_ARGS} |
|
|
@@ -117,7 +117,7 @@ fi |
|
|
|
|
|
|
|
if [ ! -f zlib-${ZLIB_VERSION}/build-done ]; then |
|
|
|
cd zlib-${ZLIB_VERSION} |
|
|
|
./configure --static --prefix=$PREFIX |
|
|
|
./configure --static --prefix=${PREFIX} |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -134,7 +134,7 @@ fi |
|
|
|
|
|
|
|
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_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -151,7 +151,7 @@ fi |
|
|
|
|
|
|
|
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_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -168,7 +168,7 @@ fi |
|
|
|
|
|
|
|
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_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -186,7 +186,7 @@ fi |
|
|
|
if [ ! -f flac-${FLAC_VERSION}/build-done ]; then |
|
|
|
cd flac-${FLAC_VERSION} |
|
|
|
chmod +x configure install-sh |
|
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX \ |
|
|
|
./configure --enable-static --disable-shared --prefix=${PREFIX} \ |
|
|
|
--disable-cpplibs |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
@@ -204,7 +204,7 @@ fi |
|
|
|
|
|
|
|
if [ ! -f libsndfile-${LIBSNDFILE_VERSION}/build-done ]; then |
|
|
|
cd libsndfile-${LIBSNDFILE_VERSION} |
|
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX \ |
|
|
|
./configure --enable-static --disable-shared --prefix=${PREFIX} \ |
|
|
|
--disable-full-suite --disable-alsa --disable-sqlite |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
@@ -226,7 +226,7 @@ if [ ! -f libgig-${LIBGIG_VERSION}/build-done ]; then |
|
|
|
patch -p1 -i ../patches/libgig_fix-build.patch |
|
|
|
touch patched |
|
|
|
fi |
|
|
|
./configure --enable-static --disable-shared --prefix=$PREFIX |
|
|
|
./configure --enable-static --disable-shared --prefix=${PREFIX} |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
|
touch build-done |
|
|
@@ -251,14 +251,14 @@ if [ ! -f linuxsampler-${LINUXSAMPLER_VERSION}/build-done ]; then |
|
|
|
rm -f configure |
|
|
|
make -f Makefile.svn configure |
|
|
|
./configure \ |
|
|
|
--enable-static --disable-shared --prefix=$PREFIX \ |
|
|
|
--enable-static --disable-shared --prefix=${PREFIX} \ |
|
|
|
--disable-alsa-driver --disable-arts-driver --disable-jack-driver \ |
|
|
|
--disable-asio-driver --disable-midishare-driver --disable-mmemidi-driver \ |
|
|
|
--disable-coreaudio-driver --disable-coremidi-driver \ |
|
|
|
--disable-instruments-db --disable-sf2-engine |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
|
sed -i -e "s|-llinuxsampler|-llinuxsampler -L$PREFIX/lib/libgig -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -lpthread -lm|" $PREFIX/lib/pkgconfig/linuxsampler.pc |
|
|
|
sed -i -e "s|-llinuxsampler|-llinuxsampler -L${PREFIX}/lib/libgig -lgig -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -lpthread -lm|" ${PREFIX}/lib/pkgconfig/linuxsampler.pc |
|
|
|
touch build-done |
|
|
|
cd .. |
|
|
|
fi |
|
|
@@ -266,18 +266,18 @@ fi |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# glib |
|
|
|
|
|
|
|
if [ ! -d $PREFIX/include/glib-2.0 ]; then |
|
|
|
cp -r /usr/include/glib-2.0 $PREFIX/include/ |
|
|
|
if [ ! -d ${PREFIX}/include/glib-2.0 ]; then |
|
|
|
cp -r /usr/include/glib-2.0 ${PREFIX}/include/ |
|
|
|
fi |
|
|
|
|
|
|
|
if [ ! -f $PREFIX/lib/pkgconfig/glib-2.0.pc ]; then |
|
|
|
if [ ! -f ${PREFIX}/lib/pkgconfig/glib-2.0.pc ]; then |
|
|
|
if [ -f /usr/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc ]; then |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc $PREFIX/lib/pkgconfig/ |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc $PREFIX/lib/pkgconfig/ |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/libpcre.pc $PREFIX/lib/pkgconfig/ |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/glib-2.0.pc ${PREFIX}/lib/pkgconfig/ |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/gthread-2.0.pc ${PREFIX}/lib/pkgconfig/ |
|
|
|
cp /usr/lib/x86_64-linux-gnu/pkgconfig/libpcre.pc ${PREFIX}/lib/pkgconfig/ |
|
|
|
else |
|
|
|
cp /usr/lib/pkgconfig/glib-2.0.pc $PREFIX/lib/pkgconfig/ |
|
|
|
cp /usr/lib/pkgconfig/gthread-2.0.pc $PREFIX/lib/pkgconfig/ |
|
|
|
cp /usr/lib/pkgconfig/glib-2.0.pc ${PREFIX}/lib/pkgconfig/ |
|
|
|
cp /usr/lib/pkgconfig/gthread-2.0.pc ${PREFIX}/lib/pkgconfig/ |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
@@ -291,7 +291,7 @@ fi |
|
|
|
|
|
|
|
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} \ |
|
|
|
--enable-libsndfile-support \ |
|
|
|
--disable-dbus-support --disable-aufile-support \ |
|
|
|
--disable-pulse-support --disable-alsa-support --disable-portaudio-support --disable-oss-support --disable-jack-support \ |
|
|
@@ -299,7 +299,7 @@ if [ ! -f fluidsynth-${FLUIDSYNTH_VERSION}/build-done ]; then |
|
|
|
--without-readline |
|
|
|
make ${MAKE_ARGS} |
|
|
|
make install |
|
|
|
sed -i -e "s|-lfluidsynth|-lfluidsynth -lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -lpthread -lm|" $PREFIX/lib/pkgconfig/fluidsynth.pc |
|
|
|
sed -i -e "s|-lfluidsynth|-lfluidsynth -lglib-2.0 -lgthread-2.0 -lsndfile -lFLAC -lvorbisenc -lvorbis -logg -lpthread -lm|" ${PREFIX}/lib/pkgconfig/fluidsynth.pc |
|
|
|
touch build-done |
|
|
|
cd .. |
|
|
|
fi |
|
|
@@ -312,7 +312,9 @@ fi |
|
|
|
export ARCH=32 |
|
|
|
build_base |
|
|
|
|
|
|
|
export ARCH=64 |
|
|
|
build_base |
|
|
|
if [ x"${1}" != x"32" ]; then |
|
|
|
export ARCH=64 |
|
|
|
build_base |
|
|
|
fi |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |