how to generate the checksums with CMake?

Erik Sjölund erik.sjolund at gmail.com
Fri Feb 17 23:31:11 PST 2012


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.

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?

cheers,
Erik Sjölund


More information about the macports-dev mailing list