I am in the process of attempting to create a new port. So far so good. However I get stuck at the following problem: the install process has an install script, located in ${SOMEDIR}/bin/install, which when called references ${SOMEDIR}/config.file in order to determine the path to install it to. This works great when running from ports, however I can't get it to stage properly.
I would like to pass ${STAGEDIR} as a prefix to all the commands in ${SOMEDIR}/bin/install, however the file doesn't support this. I don't want to add ${STAGEDIR} directly to the configuration file, as it is also installed, and contains some things that are used later on.
Is there an option/solution to do this in the normal ports framework, or do I have to patch the configuration files in some odd way, i.e. add and then remove ${STAGEDIR}?
I would like to pass ${STAGEDIR} as a prefix to all the commands in ${SOMEDIR}/bin/install, however the file doesn't support this. I don't want to add ${STAGEDIR} directly to the configuration file, as it is also installed, and contains some things that are used later on.
Is there an option/solution to do this in the normal ports framework, or do I have to patch the configuration files in some odd way, i.e. add and then remove ${STAGEDIR}?