Creating a portfile without a Makefile

Giorgio Valoti giorgio_v at mac.com
Wed Apr 23 00:11:42 PDT 2008


On 23/apr/08, at 00:25, Ryan Schmidt wrote:
>
> On Apr 22, 2008, at 2:33 PM, Daniel J. Luke wrote:
>
>> […]
>>
>>
>> You can override the build phase with:
>>
>> build {}
>> You can do this to any of the phases (as well as being able to add  
>> post-/pre- targets to any of the phases).
>>
>> If you still want to or need to do something in the build phase,  
>> just put it between those curly brackets.
> Ok, the readme for pgintcl says "There is no install script. Just  
> copy the script 'pgin.tcl' anywhere your application can access  
> it." So you will want to disable the configure and build phases:
>
> use_configure no
> build {}
>
> You'll also want to turn off the universal variant, since this port  
> will install a tcl script and not compiled software:
>
> universal_variant no
>
> Then you'll define a destroot phase to copy pgin.tcl where you want  
> it:
>
> destroot {
> 	xinstall ${worksrcpath}/pgin.tcl ${destroot}${prefix}/where/you/ 
> want/it
> }
>

ah ok, I thought I should copy the pgin.tcl file into the destroot  
during the build phase and then install it in the destroot phase.


Thank you
--
Giorgio Valoti






More information about the macports-users mailing list