Skip to content

Commit 941669e

Browse files
committed
Merge pull request #12 from sanelson/v0.15_support
V0.15 support
2 parents eb11348 + 044dac7 commit 941669e

File tree

2 files changed

+13
-35
lines changed

2 files changed

+13
-35
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is a collection of recipes that make it easier to build FreeCAD and depende
44

55
# Installation
66

7-
These steps have been tested on Mavericks 10.9.2 through 10.10.1 with Xcode 5.1.
7+
These steps have been tested on Mavericks 10.9.2 through 10.10.3 with Xcode 6.3.2.
88

99
## Common Prerequisites
1010

@@ -20,22 +20,18 @@ Tap this repository (you can safely ignore warnings about coin recipe conflicts)
2020

2121
brew tap sanelson/freecad
2222

23-
## Building Current Release Version of FreeCAD
23+
Install the coin dependency using the following command
2424

25-
For the v0.14 release of FreeCAD you will need to build Coin without frameworks enabled but *with* soqt included. Install the modified coin/soqt recipe from this tap
25+
brew install --without-framework --without-soqt sanelson/freecad/coin
2626

27-
brew install --without-framework sanelson/freecad/coin
27+
## Building Current Release Version of FreeCAD
2828

29-
Once the prerequisites are in place you can build FreeCAD. The current STABLE version is v0.14. To build this version, run the following command
29+
Once the prerequisites are in place you can build FreeCAD. The current STABLE version is v0.15. To build this version, run the following command
3030

3131
brew install sanelson/freecad/freecad
3232

3333
## Building HEAD Version of FreeCAD
3434

35-
If instead you'd like to build the very latest bleeding edge version (HEAD) from the [FreeCAD repo](https://github.com/FreeCAD/FreeCAD_sf_master), first install the coin dependency using the following command
36-
37-
brew install --without-framework --without-soqt sanelson/freecad/coin
38-
3935
Then install FreeCAD
4036

4137
brew install --HEAD sanelson/freecad/freecad

freecad.rb

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
class Freecad < Formula
44
homepage "http://sourceforge.net/projects/free-cad/"
55
head "git://git.code.sf.net/p/free-cad/code"
6-
url "http://downloads.sourceforge.net/project/free-cad/FreeCAD%20Source/freecad-0.14.3702.tar.gz"
7-
sha1 "048f2aa9cabc71fa4e2b6e10c9a61d8e728faa36"
6+
url "http://downloads.sourceforge.net/project/free-cad/FreeCAD%20Source/freecad_0.15.4671.tar.gz"
7+
sha256 "8dda8f355cb59866a55c9c6096f39a3ebc5347892284db4c305352cc9be03bbc"
88

99
# Debugging Support
1010
option 'with-debug', 'Enable debugging build'
@@ -37,7 +37,7 @@ class Freecad < Formula
3737
depends_on 'sip'
3838
depends_on 'xerces-c'
3939
depends_on 'eigen'
40-
depends_on 'coin'
40+
depends_on 'coin' => ['--without-framework', '--without-soqt']
4141
depends_on 'qt'
4242
depends_on 'pyqt'
4343
depends_on 'shiboken'
@@ -48,9 +48,8 @@ class Freecad < Formula
4848
# Recommended dependencies
4949
depends_on 'freetype' => :recommended
5050

51-
# v0.14 vs HEAD fixes
52-
# TODO: When v0.15 is released, these fixes will be removed
53-
unless build.without? 'external-pivy' or not build.head?
51+
# Allow building with internal pivy
52+
unless build.without? 'external-pivy'
5453
depends_on 'pivy' => [:recommended, '--HEAD']
5554
end
5655

@@ -62,10 +61,9 @@ def install
6261
ohai "Creating debugging build..."
6362
end
6463

65-
# v0.14 vs HEAD fixes
66-
# TODO: When v0.15 is released, these fixes will be removed
64+
# Allow building with internal pivy
6765
use_external_pivy='ON'
68-
if build.without? 'external-pivy' or not build.head?
66+
if build.without? 'external-pivy'
6967
ohai "Building without external Pivy"
7068
use_external_pivy='OFF'
7169
end
@@ -84,25 +82,9 @@ def install
8482
# TODO add opencascade support/detection
8583
oce_dir = "#{Formula['oce'].opt_prefix}/OCE.framework/Versions/#{Formula['oce'].version}/Resources"
8684

87-
# v0.14 vs HEAD fixes
88-
# TODO: When v0.15 is released, these fixes will be removed
89-
# Handle recent CMAKE build prefix changes
90-
cmake_build_robot_arg = ''
91-
if build.head?
92-
cmake_build_robot_arg = '-DBUILD_ROBOT=OFF'
93-
else
94-
cmake_build_robot_arg = '-DFREECAD_BUILD_ROBOT=OFF'
95-
end
96-
97-
# Fix FindPySideTools.cmake script issues
98-
if build.head?
99-
inreplace "cMake/FindPySideTools.cmake", "FIND_PROGRAM( PYSIDEUIC4BINARY PYSIDEUIC4", 'FIND_PROGRAM( PYSIDEUIC4BINARY pyside-uic'
100-
inreplace "cMake/FindPySideTools.cmake", "FIND_PROGRAM(PYSIDERCC4BINARY PYSIDERCC4", 'FIND_PROGRAM(PYSIDERCC4BINARY pyside-rcc'
101-
end
102-
10385
# Set up needed cmake args
10486
args = std_cmake_args + %W[
105-
#{cmake_build_robot_arg}
87+
-DBUILD_ROBOT=OFF
10688
-DFREECAD_USE_EXTERNAL_PIVY=#{use_external_pivy}
10789
-DPYTHON_LIBRARY=#{python_library}
10890
-DPYTHON_INCLUDE_DIR=#{python_include_dir}

0 commit comments

Comments
 (0)