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)

cMake-FindCoin3D.cmake.diff (618 bytes) - added by mbrethen 10 years ago.
src-App-FreeCADInit.py.diff (441 bytes) - added by mbrethen 10 years ago.
src-Mod-Sketcher-CMakeLists.txt.diff (456 bytes) - added by mbrethen 10 years ago.
main.log (114.6 KB) - added by mf2k (Frank Schima) 10 years ago.
Portfile (4.0 KB) - added by mbrethen 10 years ago.

Download all attachments as: .zip

Change History (31)

comment:1 Changed 10 years ago by mbrethen

See also oce submission (#44042).

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

master_sites should be using the sourceforge fetch group.

comment:3 Changed 10 years ago by petrrr

Cc: Peter.Danecek@… added

Cc Me!

comment:4 in reply to:  2 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/

See wiki:howto/AvoidRedirects.

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

comment:7 Changed 10 years ago by mbrethen

Ticket #44042 and Ticket #44142 are lib-dependencies

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

comment:9 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:10 Changed 10 years ago by dershow

Cc: dersh@… added

Cc Me!

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)

Attachment: main.log added

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.

Version 0, edited 10 years ago by mbrethen (next)

comment:13 Changed 10 years ago by mbrethen

Updated Portfile to reflect Ticket #44671 and Ticket #44679.

Changed 10 years ago by mbrethen

Attachment: Portfile added

comment:14 Changed 10 years ago by thomas.gimpel@…

Cc: thomas.gimpel@… added

Cc Me!

comment:15 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:16 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Ticket #44671 and Ticket #44679 have been committed I'll see if I can get this to build

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?

Last edited 10 years ago by mbrethen (previous) (diff)

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.

Last edited 10 years ago by mbrethen (previous) (diff)

comment:26 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: fixed
Status: assignedclosed

r127304 - someone will have to test gcc49/5

Note: See TracTickets for help on using tickets.