Ticket #779 (assigned enhancement)
Mac OS X MacPorts Compilation
| Reported by: | jonesc@… | Owned by: | alwin |
|---|---|---|---|
| Priority: | normal | Milestone: | not applicable |
| Component: | All | Version: | 1.5.x |
| Severity: | tweak | Keywords: | |
| Cc: |
Description
Hi,
I have been experimenting recently with making an OS X MacPorts? Portfile for kdesvn, to build it against the KDE4 libraries currently in MacPorts?.
I have it working fine, but had to make a few tweaks to get it to work, which I want to feedback here in case they can be added to the main release.
- MacPorts? uses a custom installation location for the final Application /Applications/MacPorts/KDE4. To get this to work I had to patch src/CMakeLists.txt to change
INSTALL(TARGETS kdesvn kdesvnaskpass kdesvnpart
RUNTIME DESTINATION ${BIN_INSTALL_DIR}
LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
to
INSTALL(TARGETS kdesvn kdesvnaskpass kdesvnpart
${INSTALL_TARGETS_DEFAULT_ARGS}
LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR})
With this it worked fine. I am not sure what these means, but the MacPorts? experts (which I am not one of, not am I a cmake expert) asked me to feed this back upstream..
- To get the application icon properly installed, the line
KDE4_ADD_APP_ICON(kdesvnsrc "${CMAKE_CURRENT_SOURCE_DIR}/hi*-app-kdesvn.png")
needs adding before the line
KDE4_ADD_EXECUTABLE(kdesvn ${kdesvnsrc})
in the same CMakeLists.txt file.
With these I have kdesvn working very nicely on OS X via MacPorts? (not yet commited but hopefully soon).
cheers Chris
Attachments
Change History
comment:2 Changed 3 years ago by anonymous
Hi,
Great thanks. In case you are interested I've submitted a ticket to MacPorts? to include the Portfile for this.
http://trac.macports.org/ticket/23999
Chris
comment:3 Changed 3 years ago by Chris Jones <jonesc@…>
Great thanks !
For reference, the ticket to include this in MacPorts? is here...
http://trac.macports.org/ticket/23999
Chris

sounds good. I'll check the changes ASAP and put them into the repository.