Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jul 2008 17:49:50 +0200
From:      "Pav Lucistnik" <pav@FreeBSD.org>
To:        "Rodrigo OSORIO (ros)" <rodrigo@bebik.net>, freebsd-ports@FreeBSD.org
Subject:   Re: Problem with the %%PYTHON_CMD%% variable
Message-ID:  <20080728154825.M25123@FreeBSD.org>
In-Reply-To: <20080728125717.GA11044@hodja.bebik.net>
References:  <20080728125717.GA11044@hodja.bebik.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 http://www.bebik.net/~rodrigo/ntlmaps/

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

SUB_LIST=  PYTHON_CMD=${PYTHON_CMD}

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

--
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080728154825.M25123>