[MacPorts] #29548: hugin-app: hardcodes prefix and applications_dir
MacPorts
noreply at macports.org
Tue Jun 21 10:30:06 PDT 2011
#29548: hugin-app: hardcodes prefix and applications_dir
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: hvdwolf@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: | Port: hugin-app
-------------------------------------+--------------------------------------
Comment(by hvdwolf@…):
I do not exactly understand what you mean. The relevant part in the
CMakeLists.txt file is:
IF (CMAKE_INSTALL_PREFIX STREQUAL "/opt/local")
# MacPorts
SET(INSTALL_OSX_BUNDLE_DIR /Applications/MacPorts CACHE DOCSTRING
"Install directory Hugin and HuginStitchProject application bundles")
ELSE(CMAKE_INSTALL_PREFIX STREQUAL "/opt/local")
# fink or other custom system.
SET(INSTALL_OSX_BUNDLE_DIR ${CMAKE_INSTALL_PREFIX}/Applications
CACHE DOCSTRING "Install directory Hugin and HuginStitchProject
application bundles")
ENDIF(CMAKE_INSTALL_PREFIX STREQUAL "/opt/local")
This means that it looks to /opt/local by default on Apple, but if another
CMAKE_INSTALL_PREFIX is specified it will take that one. I use it myself
as well to define other locations for test builds (especially at
/usr/local). I thought that macports set it's own CMAKE_INSTALL_PREFIX as
part of the "PortGroup cmake 1.0" option. No matter whether macports is
really in /opt or in some other location, the macports
CMAKE_INSTALL_PREFIX will be picked up by the CMake file. Or doesn't
macports set this cmake variable?
Other files that possibly seem to hardcode /opt and /sw are the cmake
macros FIND<whatever>. In these files also /usr, /usr/local, etcetera are
hardcoded to make cmake find libraries/frameworks at places other than the
system paths.
If this hardcoded paths are also in other parts, please let me know.
--
Ticket URL: <https://trac.macports.org/ticket/29548#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list