I have downloaded the latest releases (1824) source release archive and tried to build it on FreeBSD. It failed due to wrong definition of 'flagLINUX'.
I ended up changing the 'domake' script to check on which *NIX platform it is running on (using 'uname') and then set a make variable to define the right platform flag.
What is missing so far is addition of 'uname' output check for Solaris and OSX.
Also I modified Build.cpp to export TheIDE Makefile taking into account these propagated platform flags.
Attached is the Build.cpp patch and the modified 'domake' script that is not complete, yet.
It would be nice if these changes could be applied before publishing the next releases source build.
dolik.rce Messages: 1791 Registered: August 2008 Location: Czech Republic
Ultimate Contributor
Hi!
If we are about to change the exporting process I have also one little improvement. In all the generated Makefiles, the clean action fails if there is nothing to clean. And that happens quite a lot in debian packaging process Since now I had to patch them...
So I suggest something like this:
#in source builds Makefile:
clean:
if [ -d uppsrc/_out ]; then rm -rf uppsrc/_out ; fi
if [ -e uppsrc/ide.out ]; then rm uppsrc/ide.out ; fi
#in generated Makefiles:
clean:
if [ -d $(UPPOUT) ]; then rm -rf $(UPPOUT); fi
I have downloaded the latest releases (1824) source release archive and tried to build it on FreeBSD. It failed due to wrong definition of 'flagLINUX'.
This is really weird as uppsrc code does not test for flagLINUX anymore.
I could understand the issue if this was about adding libraries, but that will have to be solved by patching the makefile anyway.
sorry for the inconvenience, it was a false alarm .
I have checked it again and it builds fine.
I do not know what went wrong at the time I saw the error.
I also checked the latest release version (1952) and it is also ok.
But I still have a request:
Can we take the last copy command out of the 'domake' script?
I think it should be included in the install step, doesn't it?
Hm, the purpose of that thing is to make theide 'visible' - otherwise it would be left somewhere in uppsrc/ide.out, which is far from apparent place, not very "Makish".
Yes, I would vote for that since I think this belongs to the install step.
For the FreeBSD port I only want to run the 'domake' script without automatically copying the program to the user's home.
Instead U++ assemblies are installed to /usr/local/share/upp and theide is installed to /usr/local/bin.