<br>I'm trying to package CableSwig for macports. The cswig binary looks for <span style="font-family: courier new,monospace;">SWIG Lib</span> in the source directory. How is that re-configured?<br><br>The information available seems fairly basic, ie:<br>
<a href="http://www.itk.org/ITK/resources/CableSwig.html">http://www.itk.org/ITK/resources/CableSwig.html</a><br>
<br>The build works, using the following build options:<br><br><span style="font-family: courier new,monospace;">configure.args \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -DCMAKE_OSX_SYSROOT=${universal_sysroot} \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -DCMAKE_BUILD_TYPE:STRING=Release \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -DCMAKE_INSTALL_RPATH:STRING=${prefix}/lib/CableSwig \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -DCMAKE_INCLUDE_PATH:PATH=${prefix}/include \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -DCMAKE_LIBRARY_PATH:PATH=${prefix}/lib \</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -DCSWIG_USE_SYSTEM_GCCXML:BOOL=ON</span><br>
<br>MacPorts uses an install DESTROOT for the package management system. After the <span style="font-family: courier new,monospace;">make install</span>, the DESTROOT looks like this:<br><br><span style="font-family: courier new,monospace;">destroot/opt/local</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/bin</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/bin/cableidx</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/bin/cswig</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/CableSwigConfig.cmake</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/_std_deque.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/allkw.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/carrays.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/cdata.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/cmalloc.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/common.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/constraints.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/cpointer.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/cstring.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/exception.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/arrays_java.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/director.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/java.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/javahead.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/javakw.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/std_common.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/std_map.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/std_pair.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/std_string.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/std_vector.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/typemaps.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/java/various.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/math.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/pointer.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/argcargv.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/ccomplex.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/complex.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/complex_common.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/cstring.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/defarg.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/director.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/embed.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/embed15.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/fragments.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/precommon.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pymisctypes.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyobject.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyopers.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyprimtypes.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyrun.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pystrings.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyswigtype.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/python.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pythonkw.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyvaltypes.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/pyvoid.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_common.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_complex.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_deque.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_list.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_map.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_pair.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_string.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/std_vector.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/python/typemaps.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/std_deque.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/stl.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/swig.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/swigrun.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/cstring.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/precommon.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/std_common.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/std_map.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/std_pair.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/std_string.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/std_vector.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/swigtcl8.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/tcl8.swg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/tcl8kw.swg</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/tclsh.i</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/typemaps.i</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">destroot/opt/local/lib/CableSwig/SWIGLib/tcl/wish.i</span><br style="font-family: courier new,monospace;">
<br><br>The final path for installation is the <span style="font-family: courier new,monospace;">/opt/local</span> tree (just remove the destroot/). Once the final install is done (macports copies files from the DESTROOT - the final install is not handled by gmake), the source and build paths are completely removed. Once they are removed, the binary for cswig fails, ie:<br>
<br><span style="font-family: courier new,monospace;">[ me@XXX ~ ]# cswig -help</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target Language Options:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -chicken - Generate CHICKEN wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -csharp - Generate C# wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -guile - Generate Guile wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -java - Generate Java wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -mzscheme - Generate Mzscheme wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -ocaml - Generate Ocaml wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -perl - Generate Perl wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -php - Generate PHP wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -pike - Generate Pike wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -python - Generate Python wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -ruby - Generate Ruby wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -sexp - Generate Lisp S-Expressions wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> -tcl - Generate Tcl wrappers</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> -xml - Generate XML wrappers</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Cannot find SWIG Lib directory. Checked:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> /opt/local/var/macports/build/_Users_dweber_ports_devel_cableswig/work/CableSwig-cvs/SWIG/Lib</span><br>
<br><br>How is this re-configured? I don't see any cmake variables to control this.<br><br>Thanks in advance,<br>Darren<br><br>