Helo.
I want ot elaborate a little further on how to build it yourself, That XtoPDF package, and ghost script.
When you read the portfile, then you’ll download the packages yourself, and unzip them into source trees.
Then you can specify new destroot variables, for simulating another bin directory when doing an install. ( I think you must create the directory, and your destroot, will be one level above the bin directory, ala /usr or /opt.)
If you have developert tools installed, then you can change some directories, by specifying them when running the confiugre script, that you should be able to execute from the root of the unzipped source trees. It is enough if one of the packages supports configure ”help, since the variable names, and conventions are the same.
The usual sequence of commands is
configure ”help
configure (with your settings )
make install
You have what you need of compilers, and such already since you have installed macports packages.
This is the usual way to do this, maybe it is smart to start with a smaller “guinea-pig” package, to see that you got everything right. There are also some pages about “autotools” out there on the net, -which is what is primarily used for building such packages, but they may also have been built with cmake.
First of all, I’d look around for the log file for the installation, which should be inside the port-tree somewhere, and see what files have been installed, which dependencies, and if you can figure that out, do a search and replace in a copy of the log file, and create a copy script, that dumps all you need into a “bin” folder you can drag into your applet.