Created attachment 270001 [details] bare Makefile based ebuild Avoid pulling cmake (C++) as a dependency for openjpeg dependent packages (and GNU autotools). Use the provided Makefile.nix.
use the -e options with sed to combine the multiple replacements into a single call. and make sure to quote $S. and post diffs, not entire files.
Created attachment 270041 [details, diff] openjpeg-1.4-r1.ebuild.patch
hmm, i'm not sure sticking -fPIC into common compiler flags is correct. wont that build the static lib with -fPIC too ? thinking about it more, what exactly are you trying to fix ? using autotools is preferable, but using cmake is better than a home grown build system. this is kind of a step backwards as it means the ebuild is hardcoded to only build on *nix platforms. Gentoo is evolving to support many many more.
It's like that in the provided Makefile.nix. It builds and works for me. My C++ is jailed in the browser only (=C only system except the browser).
feel free to post an ebuild to use autotools, but i dont think that reasoning is sufficient to convert to raw Makefile
I do favor simple build system. The openjpeg provided Makefile.nix is one. The issue with cmake is the c++ dependency, which does not concern the GNU autotools since it's full C (but way more costly than a bare Makefile).
ive listed a couple of reasons why that isnt acceptable. i imagine if i read the makefile, i'd find many more problems. feel free to submit a cmake->autotools patch, but otherwise, nothing to do here.
https://gitorious.org/gentoo-overlays/minimal