Browse Source

More osx stuff

tags/1.9.4
falkTX 10 years ago
parent
commit
8ca4bcc9b5
3 changed files with 68 additions and 4 deletions
  1. +64
    -1
      data/macos/build-deps.sh
  2. +2
    -1
      data/macos/build.sh
  3. +2
    -2
      data/macos/env-vars.sh

+ 64
- 1
data/macos/build-deps.sh View File

@@ -107,7 +107,7 @@ curl -O http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywh
tar -xf qt-everywhere-opensource-src-4.8.6.tar.gz
fi

if [ ! -f qt-everywhere-opensource-src-4.8.6/fltk-config ]; then
if [ ! -f qt-everywhere-opensource-src-4.8.6/bin/moc ]; then
cd qt-everywhere-opensource-src-4.8.6
./configure -prefix /opt/kxstudio -release -static -opensource -confirm-license -force-pkg-config -no-framework \
-qt-freetype -qt-libjpeg -qt-libpng -qt-sql-sqlite -qt-zlib -harfbuzz -svg \
@@ -120,6 +120,69 @@ sudo make install
cd ..
fi

# ------------------------------------------------------------------------------------
# python

if [ ! -d Python-3.3.5 ]; then
curl -O https://www.python.org/ftp/python/3.3.5/Python-3.3.5.tgz
tar -xf Python-3.3.5.tgz
fi

if [ ! -f Python-3.3.5/Makefile ]; then
cd Python-3.3.5
./configure --prefix=/opt/kxstudio
make
sudo make install
cd ..
fi

# ------------------------------------------------------------------------------------
# sip

if [ ! -d sip-4.15.5 ]; then
curl -L http://download.sourceforge.net/pyqt/sip-4.15.5.tar.gz -o sip-4.15.5.tar.gz
tar -xf sip-4.15.5.tar.gz
fi

if [ ! -f sip-4.15.5/Makefile ]; then
cd sip-4.15.5
python3 configure.py
make
sudo make install
cd ..
fi

# ------------------------------------------------------------------------------------
# pyqt

if [ ! -d PyQt-mac-gpl-4.10.4 ]; then
curl -L http://download.sourceforge.net/pyqt/PyQt-mac-gpl-4.10.4.tar.gz -o PyQt-mac-gpl-4.10.4.tar.gz
tar -xf PyQt-mac-gpl-4.10.4.tar.gz
fi

if [ ! -f PyQt-mac-gpl-4.10.4/Makefile ]; then
cd PyQt-mac-gpl-4.10.4
python3 configure.py -g --confirm-license --no-deprecated
make
sudo make install
cd ..
fi

# ------------------------------------------------------------------------------------
# cxfreeze

if [ ! -d cx_Freeze-4.3.3 ]; then
curl -L http://download.sourceforge.net/cx-freeze/cx_Freeze-4.3.3.tar.gz -o cx_Freeze-4.3.3.tar.gz
tar -xf cx_Freeze-4.3.3.tar.gz
fi

if [ ! -d cx_Freeze-4.3.3/build ]; then
cd cx_Freeze-4.3.3
python3 setup.py build
sudo python3 setup.py install --prefix=/opt/kxstudio
cd ..
fi

# ------------------------------------------------------------------------------------
# fftw3



+ 2
- 1
data/macos/build.sh View File

@@ -16,7 +16,7 @@ if [ -d /dev/shm ]; then
else
# MacOS
. ./data/macos/env-vars.sh
export CXFREEZE=cxfreeze-3.3
export CXFREEZE=cxfreeze
fi

# ./configure -prefix /Users/falktx/Source/Qt-5.2.1 -release -opensource -confirm-license -no-c++11
@@ -34,6 +34,7 @@ fi
rm -rf ./data/macos/Carla

cp ./source/carla ./source/carla.pyw
# python3 ./data/macos/bundle.py bdist_mac --bundle-name=Carla
$CXFREEZE --include-modules=re,sip,subprocess,inspect --target-dir=./data/macos/Carla ./source/carla.pyw
rm ./source/carla.pyw



+ 2
- 2
data/macos/env-vars.sh View File

@@ -7,5 +7,5 @@ export CXXFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_5 -DMAC_OS_
export PATH=/opt/kxstudio/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export PKG_CONFIG_PATH=/opt/kxstudio/lib/pkgconfig

export PYRCC="pyrcc4-3.3 -py3"
export PYUIC="pyuic4-3.3 -w"
# export PYRCC="pyrcc4-3.3 -py3"
# export PYUIC="pyuic4-3.3 -w"

Loading…
Cancel
Save