On 2008/07/20 17:01, Aaron W. Hsu wrote:
> I am trying to create a port for NN, and I am running into a bit of a 
> situation. The build system is a simple makefile with some configuration 
> files after it, and I can't seem to figure out the *right* way to do 
> the installation part. 
> 
> Configuration is merely copying a few pieces here and there from each 
> configuraiton file that I can make and store in files/, but there is a 
> "inst" installation script which does the install. The PREFIX is hard 
> coded into the config.h file. I'm at #20 in the Porting Checklist, and 
> I am not sure as to the best way to proceed. 
> 
> Is it better to patch the inst program, or is there another means of 
> doing a proper installation? I guess I'm a bit rusty on my porting. 

You could write your own do-install target in the ports Makefile,
which will override the one from the port. Sometimes it's better to
patch the supplied one, sometimes it's better to write your own,
you get to decide :)

Reply via email to