Problem with the %%PYTHON_CMD%% variable

Pav Lucistnik pav at
Mon Jul 28 16:16:54 UTC 2008

On Mon, 28 Jul 2008 14:57:17 +0200, Rodrigo OSORIO (ros) wrote

> I'm working in a port who is a python script.
> To launch the application I add a sh script into the files directory 
> to be copied in the /usr/local/bin/.
> The proble is the %%PYTHON_CMD%% is not interpretated by the 
> makefile when the %%PREFIX%% was perfectly.

> All the port files are available at

You need to add PYTHON_CMD to list of expansions for SUB_FILES.
Add something like this to your Makefile:


Also, you don't need to run depend on python, you already get that from

Pav Lucistnik <pav at>
              <pav at>

More information about the freebsd-ports mailing list