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

2013-02-03 Thread meta

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


This tarball is my temporary working port.
http://www.club.kyutech.ac.jp/~meta/temp/tigervnc-port.tar.gz

--
`whois vmeta.jp | nkf -w`
meta m...@vmeta.jp

TigerVNC project is to merge enhancements of all different VNCs and
has unity in mind. For further information. Please see:
http://article.gmane.org/gmane.network.tight-vnc.general/8610/
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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

2013-02-03 Thread Dominic Fandrey
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.

Regards

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? 
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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

2013-02-03 Thread Chris Rees
On 3 Feb 2013 13:44, Dominic Fandrey kamik...@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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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

2013-02-03 Thread meta

2013-02-03 23:07, Chris Rees wrote:

On 3 Feb 2013 13:44, Dominic Fandrey kamik...@bsdforen.de wrote:
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.


Thanks. The target :patch was corect.
Actually writing it in PATCH_DEPENDS went well.

--
`whois vmeta.jp | nkf -w`
meta m...@vmeta.jp
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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

2013-02-03 Thread Eitan Adler
On 3 February 2013 10:16, meta m...@vmeta.jp wrote:
 2013-02-03 23:07, Chris Rees wrote:

 On 3 Feb 2013 13:44, Dominic Fandrey kamik...@bsdforen.de wrote:

 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.


 Thanks. The target :patch was corect.
 Actually writing it in PATCH_DEPENDS went well.

Is xorg's source required to patch this port?

-- 
Eitan Adler
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


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

2013-02-03 Thread meta

2013-02-04 10:16  Eitan Adler wrote:

On 3 February 2013 10:16, meta m...@vmeta.jp wrote:

2013-02-03 23:07, Chris Rees wrote:


On 3 Feb 2013 13:44, Dominic Fandrey kamik...@bsdforen.de wrote:


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.



Thanks. The target :patch was corect.
Actually writing it in PATCH_DEPENDS went well.


Is xorg's source required to patch this port?


I think it is yes. Xorg's source has to be extracted and copied into 
its source tree before
patch target. Then this port patches xorg's source which copied into 
port's source.

--
`whois vmeta.jp | nkf -w`
meta m...@vmeta.jp
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org