On 18.02.2012 08:31, Erik Sjölund wrote:
Hi,
I am trying to create a Portfile for some software that is using the
build system CMake.
I was wondering if anyone managed to automatically create the Portfile
from within CMake.
It doesn't sound reasonable to do so, but probably I don't fully understand what you're up to.


In CMake I can do "make package_source" to create a source tar.gz
file. I then need to compute some checksums of that file. These
checksums then need to be inserted into the Portfile at the line
starting with "checksums".

It would be nice if could create a make target

make package_source_and_portfile

Do you have any idea of how to do that?
For md5 you might use cmake -E md5sum
For others you have to use external tools.

You might play with add_custom_target and add_custom_command.

But
- this is not a cmake list
- I doubt that it's worth the effort since it is simple to
  handcraft a Portfile.

Regards
Titus
_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to