Date: Mon, 6 Aug 2012 22:37:26 -0700 From: Jason Helfman <jgh@FreeBSD.org> To: HU Dong <itechbear@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: How to change docdir in port Makefile? Message-ID: <CAMuy=%2BhT-jE3WjdDgVon=CGiCoLZnyHeN2b16VwXDhDBV9Te6A@mail.gmail.com> In-Reply-To: <CAA96eVuC6kSknTFueaAMuOaDvmiuB_%2Bb-XYoh711aKmTXtDA2w@mail.gmail.com> References: <CAA96eVuC6kSknTFueaAMuOaDvmiuB_%2Bb-XYoh711aKmTXtDA2w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 6, 2012 at 8:36 PM, HU Dong <itechbear@gmail.com> wrote: > Hi, all. I'm making a new port. It uses GNU configure to generate a > GNU Makefile. But it set DOCSDIR to > ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} instead > of ${PREFIX}/share/doc/${PORTNAME}: > > *** > docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) > *** > > I've tried post-patch, but it didn't help, cause post-patch phase is > earlier than the time when GNU Makefile is generated. So how to modify the > GNU Makefile to correct this problem? > > B.R. > HU Dong > > If it is generated from, I assume a Makefile.in, or similar file, try patching that file. Then your change should follow. I had to take this approach for deskutils/virt-manager recently for NLS location change. Hope this helps. -jgh -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMuy=%2BhT-jE3WjdDgVon=CGiCoLZnyHeN2b16VwXDhDBV9Te6A>