fetching via git and worksrcdir

Bradley Giesbrecht pixilla at macports.org
Mon Aug 15 12:20:49 PDT 2011


Something like this?

worksrcdir ${distname}/git
configure.dir ${workpath}/${distname}/src
build.dir ${workpath}/${distname}/src


On Aug 15, 2011, at 11:28 AM, Titus von Boxberg wrote:

> had a look. what do you mean?
> ffmpeg builds from its root dir, doesn't it?
> 
> 
> Am 15.08.2011 um 19:58 schrieb Jeremy Huddleston:
> 
>> Look at ffmpeg-devel
>> 
>> On Aug 15, 2011, at 10:50, Titus von Boxberg wrote:
>> 
>>> Hi,
>>> 
>>> I'm trying to write a Portfile for a library that is to be fetched with git.
>>> 
>>> The lib has to be configured and built within a subdir  named "src" (below the lib's root dir).
>>> 
>>> Setting worksrcdir to ${distname}/src causes git to clone the repo into that directory
>>> instead of ${workpath}/${distname}.
>>> 
>>> How am I supposed to tell the build phases the correct working directory?
>>> 
>>> And, just for curiosity, is exporting the repo to ${workpath}/${worksrcdir} what was intended?
>>> As far as I can see this is done by git and hg only (?).



More information about the macports-dev mailing list