id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	port
23538	cmake portgroup does not set install name directory for libraries	raphael@…	macports-tickets@lists.macosforge.org	"The cmake portgroup does not set the install name directory for libraries. This can be set with the parameter 
{{{
-DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
}}}
for cmake, see [http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:INSTALL_NAME_DIR].

I tested all ports that use the cmake portgroup and found out that some ports install libraries with the wrong install name (physfs, chipmunk, clucene-devel, eigen) and some other ports (bullet, nifticlib, OpenSceneGraph-devel, zorba, orocos-kdl, orocos-rtt, flann) manually use the above parameter or call {{{install_name_tool}}}. The rest either does not need this parameter (taglib, qhull, strigi, wbxml2) or installs no library at all (gccxml-devel, newmat, Vidalia).

I'm not sure, who is responsible for the cmake portgroup. I think, the patch for the cmake portgroup in the attachment can be applied without affecting ports that already use correct install names without this patch."	defect	closed	Normal		ports	1.8.2	fixed	haspatch	illogic-al@… ryandesign@…	
