Opened 10 years ago
Closed 10 years ago
#44097 closed submission (fixed)
freecad @0.13 - new port
Reported by: | mbrethen | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.0 |
Keywords: | Cc: | petrrr, dershow, thomas.gimpel@…, kurthindenburg (Kurt Hindenburg) | |
Port: | freecad |
Description
I'm attaching a proposed Portfile for freecad=0.15 based on http://www.freecadweb.org/wiki/index.php?title=CompileOnMac and http://forum.freecadweb.org/. Looking for feedback before trying it locally.
Attachments (5)
Change History (31)
comment:1 Changed 10 years ago by mbrethen
comment:2 follow-up: 4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
master_sites
should be using the sourceforge fetch group.
comment:4 Changed 10 years ago by seanfarley (Sean Farley)
Replying to ryandesign@…:
master_sites
should be using the sourceforge fetch group.
Looking over this port (not actually running it), things seem fine at a first glance. Also, I agree with Ryan. The line should be
master_sites sourceforge:free-cad
comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Actually it should be:
master_sites sourceforge:project/free-cad/FreeCAD%20Source/
comment:6 Changed 10 years ago by mbrethen
Attached the latest portfile to address fc linking error. I have experienced build errors with pyport.h and submitted ticket #44288 to have it patched.
Changed 10 years ago by mbrethen
Attachment: | cMake-FindCoin3D.cmake.diff added |
---|
Changed 10 years ago by mbrethen
Attachment: | src-App-FreeCADInit.py.diff added |
---|
comment:8 Changed 10 years ago by mbrethen
Removed coin/soqt lib-dependencies because we don't want them automatically installed without the aqua variant. require_active_variant will check this at pre-configure phase.
Changed 10 years ago by mbrethen
Attachment: | src-Mod-Sketcher-CMakeLists.txt.diff added |
---|
comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
comment:11 Changed 10 years ago by mf2k (Frank Schima)
I get a configure error. Attaching my main.log.
Changed 10 years ago by mf2k (Frank Schima)
comment:12 Changed 10 years ago by mbrethen
Did you install coin? I have 'require_active_variants Coin aqua' in the port file but not a lib dependency because the aqua variant is not a default variant.
Edit: It looks like you did not install Coin nor Soqt beforehand:
:debug:archivefetch Ignoring active_variants requirement for Coin because archivefetch-type install only considers depends_lib depends_run and those do not contain Coin :debug:archivefetch Ignoring active_variants requirement for Soqt because archivefetch-type install only considers depends_lib depends_run and those do not contain Soqt
Since we don't want port to install those automatically (non-aqua version by default) how would you check their existence and notify the user without port installing them without the aqua variant?
comment:13 Changed 10 years ago by mbrethen
Changed 10 years ago by mbrethen
comment:16 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
comment:17 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
Are you sure gcc48 is required?
cloog gcc48 gcc_select isl ld64 libgcc libmpc oce py27-pyside py27-shiboken sparsehash swig xercesc }}]
comment:18 Changed 10 years ago by mbrethen
It requires a fortran compiler; clang does not provide a fortran compiler.
comment:19 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
OK, does it build for you?
/opt/local/var/macports/build/_Volumes_Projects_OtherSoftware_macports-trunk_dports_cad_freecad/freecad/work/freecad-0.14.3702/src/Base/swigpyrun.inl:93:21: error: use of undeclared identifier 'SWIG_ConvertPtr' if (SWIG_ConvertPtr(value, &ptr, 0, 0) == 0) ^ 8 errors generated. make[2]: *** [src/Base/CMakeFiles/FreeCADBase.dir/swigpyrun.cpp.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_Volumes_Projects_OtherSoftware_macports-trunk_dports_cad_freecad/freecad/work/freecad-0.14.3702' make[1]: *** [src/Base/CMakeFiles/FreeCADBase.dir/all] Error 2
comment:20 Changed 10 years ago by mbrethen
I built it when this ticket was opened. Its currently installed.
Edit: Do you have swig-python installed?
comment:21 Changed 10 years ago by mbrethen
I just successfully rebuilt freecad. Check to see if you have swig-python installed. If not, install it and try again.
comment:22 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
I'll commit this shortly - it is a beast to compile/install. I hope macports generates a binary for it.
comment:23 Changed 10 years ago by mf2k (Frank Schima)
Some observations:
- Why not also allow gcc49 or gcc5 for FORTRAN?
- Is the active_variants portgroup used? It looks like it should be removed.
comment:24 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
r127265 - if the Portfile needs changed, let me know
comment:25 Changed 10 years ago by mbrethen
Yes, now that coin-framework is commited, active-variants is no longer needed.
gcc48 was current when I wrote the portfile; If there is a way to set gcc48 as a minimum version, then I would do that.
comment:26 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
r127304 - someone will have to test gcc49/5
See also oce submission (#44042).