manually downloaded sources

Ryan Schmidt ryandesign at macports.org
Wed Mar 26 22:42:50 PDT 2008


On Mar 26, 2008, at 13:00, Сергей Карелин wrote:

> 2008/3/25, Ryan Schmidt:
>
>> On Mar 24, 2008, at 07:05, Сергей Карелин wrote:
>>
>> > How to port manually downloaded source tar-balls? It seems to be
>> > very simple but I can't find out any information on this.
>>
>> You can place downloaded tarballs into ${prefix}/var/macports/
>> distfiles/${name} where ${prefix} is usually /opt/local and ${name}
>> is the name of the port you're trying to install.
>
> Ok, this only works for already existing ports, but if there is not  
> appropriate port?
> Can I create one by creating portfile? And what fields are necessary?

You would need to create a portfile. The Guide contains instructions:

http://guide.macports.org/

I also find it useful to just look at the source code of some of the  
existing portfiles. "port cat foo" or "port edit foo" can show you  
the source of the port foo, and "port file foo" can show you where  
the portfile is located on your hard disk.



More information about the macports-users mailing list