If a port requires xorg-server's source tree, how to write Makefile?

Chris Rees utisoft at gmail.com
Sun Feb 3 14:07:30 UTC 2013


On 3 Feb 2013 13:44, "Dominic Fandrey" <kamikaze at bsdforen.de> wrote:
>
> On 03/02/2013 13:30, meta wrote:
> > Hi,
> >
> > A few times I've already posted freebsd-ports list that I'm working for
> > creating a port net/tigervnc. It is almost be done  but I have a
question.
> >
> > TigerVNC's source tree is not complete to make everything.  We have to
> > put freebsd-patched xorg-server's source tree into its tree. I tried
> > like this. It builds fine with WITH_NEW_XORG and old xorg.
> >
> > Is this a bad idea? Should I take another way?
> >
> > post-extract:
> >   ${MAKE} -C ../../x11-servers/xorg-server patch
> >   ${CP} -R
../../x11-servers/xorg-server/work/xorg-server-${XORG_VERSION}/* \
> >            ${WRKSRC}/unix/xserver/
> >
> > post-clean:
> >   ${MAKE} -C ../../x11-servers/xorg-server clean
>
> BUILD_DEPENDS=  ${NONEXISTENT}:${PORTSDIR}/x11-servers/xorg-server:extract
>
> See the Porters' Handbook section 5.8.

I think you need :patch here, to get the patched version.

Chris


More information about the freebsd-ports mailing list