mirror of https://github.com/vitalif/openscad
34 lines
652 B
Plaintext
34 lines
652 B
Plaintext
o Prerequisites (MacPorts):
|
|
- NB! CGAL requires gcc >= 4.2
|
|
- eigen
|
|
- boost
|
|
- gmp
|
|
- mpfr
|
|
- Qt4
|
|
|
|
o Build CGAL:
|
|
|
|
tar xzf CGAL-3.5.1.tar.gz
|
|
cd CGAL-3.5.1
|
|
patch -p1 < ../openscad/CGAL-OGL-Tess-Combine-Fix.patch
|
|
cmake -DCMAKE_INSTALL_PREFIX=$PWD/../install -DBUILD_SHARED_LIBS=FALSE
|
|
make -j4
|
|
make install
|
|
|
|
o Patch OpenCSG
|
|
|
|
cd OpenCSG-1.2.0
|
|
patch -p1 < ../openscad/OpenCSG-1.2.0-MacOSX-port.patch
|
|
patch -p1 < ../openscad/OpenCSG-1.2.0-Reset-Hack.patch # Only if MDI
|
|
|
|
o Build OpenCSG
|
|
|
|
qmake -recursive
|
|
make
|
|
|
|
o Build and Deploy OpenSCAD
|
|
|
|
# Update VERSION in publish-macosx.sh
|
|
cd openscad
|
|
./scripts/publish-macosx.sh
|