Date: Sat, 11 Jul 2020 01:43:18 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Harry Newton <hn@yewbarrow.net>, freebsd-ports@freebsd.org Subject: Re: Makefile practice Message-ID: <9b6f417b-20cd-740d-d8f6-c93f959e773b@grosbein.net> In-Reply-To: <CAKAm69HR56mTh6o44viKwRt7jAhKi3ysgx-27E%2BNTPR5niKDog@mail.gmail.com> References: <CAKAm69HR56mTh6o44viKwRt7jAhKi3ysgx-27E%2BNTPR5niKDog@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
11.07.2020 1:23, Harry Newton wrote: > I look after a port that has a poor Makefile [the one supplied with the > distribution, not the FreeBSD port Makefile]. The principal problem is > where it installs things. > > To get the port to do the right thing, I could either: heavily patch the > supplied Makefile or: move files around in the stage tree. > > Could someone give me a steer about recommended practice ? It's up to porter. I tend to keep things simple: if moving files around in the stage tree is simplier, do it with post-install target of the port. We have large number of examples in the ports tree of post-install usage. If it is simplier with small correction of software's Makefile or Makefile.in correcting DESTDIR, do it with a patch or post-patch target of the port.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9b6f417b-20cd-740d-d8f6-c93f959e773b>