P.O., I don't know if it is possible to override things as late as the `make
install` stage
I believe the way it's supposed to work, is modifying `CMakeLists.txt`, and
re-running the appropriate `cmake` command
(typically you'd have different build directories for different build
settings, if necessary)
Currently, `CMakeLists.txt` sets the following prefix as it was found
that's "the way to do" on current Darwin systems (discussion welcome)
~~~
if (APPLE )
set (CMAKE_INSTALL_PREFIX
~/Applications/ooRexx${ORX_MAJOR}.${ORX_MINOR}.${ORX_MOD_LVL})
~~~
On Wed, Nov 1, 2017 at 11:56 PM, oor...@jonases.se <oor...@jonases.se>
wrote:
> As one additional information:
>
> I found out that I could redirect the final output by tapping into
>
> oorexxsvn/main/trunk/platform/unix/macosx/MakeRexxPackage.in
>
> And set the output before Cmake make and make install but I would prefer
> to be able to redirect it at the make install stage.
>
> I also found out that all binaries and libraries end up in
> ooRexx5.0.0/bin, would it not be better to split the binaries to go to
> ooRexx5.0.0//bin and the dylibs to go to ooRexx5.0.0//lib?
>
> It would be great if *make install DESTDIR=$PWD/tmp* could work but I
> have no idea on how to achieve that
>
> please ignore the typos in my last post, I have some // in the paths, they
> are typos so not what I used IRL
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
> Von mein MacBookPro gesendet
>
>
>
> Am 01.11.2017 um 22:39 schrieb oor...@jonases.se:
>
> Dear developers,
>
> I now have a fairly good idea on how to build my own flavor ooRexx build
> (debug or release) and I can use it for testing purposes locally.
>
> My current problem is that after „make install“ the ooRexx folder arrives
> in the local path of the current user, and I have failed to move it
> elsewhere
>
> In cmake_install.cmake I read this:
>
> # Set the install prefix
> if(NOT DEFINED CMAKE_INSTALL_PREFIX)
> set(CMAKE_INSTALL_PREFIX "~/Applications/ooRexx5.0.0")
> endif()
>
> I have tried this:
>
> CMAKE_INSTALL_PREFIX="/opt/ooRexx5.0.0"
> CMAKE_INSTALL_PREFIX=/opt/ooRexx5.0.0
> export CMAKE_INSTALL_PREFIX="/opt/ooRexx5.0.0"
> export CMAKE_INSTALL_PREFIX=/opt/ooRexx5.0.0
> make install CMAKE_INSTALL_PREFIX=/opt/ooRexx5.0.0
>
> But the result is the same all files end up in
>
> Installing: /Users/po/Applications/ooRexx5.0.0/...
>
> I have found that this adds a prefix (but the wrong intermediate part)
>
> make install DESTDIR=$PWD/tmp
>
> So everything ends up in
>
> /Users/po/oorexxbuild/debug/tmp//Users/po/Applications/ooRexx5.0.0/..
>
> Or something similar, not optimal
>
> What is the correct way to redirect the make install to the right place?
> First manually but also programmatically.
>
> What the „right“ place is can be discussed but I am considering to put the
> installation in /opt//ooRexx5.0.0 (or /opt/local//ooRexx5.0.0) and then
> symlink to/from /usr/local/bin and /usr/local/lib (or whatever is
> necessary).
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
> Von mein MacBookPro gesendet
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
> _________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel