build a port that depends on Java

2009-12-08 Thread Anh K. Huỳnh
Hi,

I am going to build a port (named `vue`, http://vue.tufts.edu/) that depends on 
Java libraries but I don't know how to set the dependencies (the RUN_DEPENDS 
variable in `Makefile`). I know some kinds of Java and don't know which one 
should be used. At least, Vue works well with OpenJDK6.

Another problem is that the original file for port is in `.zip` format. As far 
as I know `.zip` isn't natively supported in FreeBSD. Should I convert that 
file to `.tar.gz` format and redistribute in my site (instead of using file 
from VUE master site?). Though using 
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip is possible I think such 
usage is so expensive :)

Thank you for your helps,

Regards,

-- 
Anh K. Huynh
- TeX: http://viettug.org/
- BSD: http://lovebsd.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: build a port that depends on Java

2009-12-08 Thread Olivier Nicole
Hi,

 Another problem is that the original file for port is in `.zip`
 format. As far as I know `.zip` isn't natively supported in
 FreeBSD. Should I convert that file to `.tar.gz` format and
 redistribute in my site (instead of using file from VUE master
 site?). Though using
 EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip is possible I
 think such usage is so expensive :)

Unkless you are building some kind of embeded system where every byte
on disk is important, just install unzip, it's harmless, and save you
the burden to repackage the port every time they come up with a new
version.

Bests,

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


Re: build a port that depends on Java

2009-12-08 Thread Frank Shute
On Wed, Dec 09, 2009 at 09:57:37AM +0700, Anh K. Hu???nh wrote:

 Hi,
 
 I am going to build a port (named `vue`, http://vue.tufts.edu/) that
 depends on Java libraries but I don't know how to set the
 dependencies (the RUN_DEPENDS variable in `Makefile`). I know some
 kinds of Java and don't know which one should be used. At least, Vue
 works well with OpenJDK6.

You want to have a look at the Makefiles of other programs that use
java. E.g azureus

$ less /usr/ports/net-p2p/azureus/Makefile

 
 Another problem is that the original file for port is in `.zip`
 format. As far as I know `.zip` isn't natively supported in FreeBSD.
 Should I convert that file to `.tar.gz` format and redistribute in
 my site (instead of using file from VUE master site?). Though using
 EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip is possible I
 think such usage is so expensive :)

I think that you use:

USE_ZIP=yes

It's mentioned in the porter's handbook which you should read. You can
also find out by looking at a Makefile again E.g print/cm-super

The porter's handbook tells you how to go about writing a Makefile. Any
questions you may have about porting software should be addressed to
ports@, IIRC.

Porters Handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

 
 Thank you for your helps,
 
 Regards,

Regards,

-- 

 Frank

 Contact info: http://www.shute.org.uk/misc/contact.html


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


Re: build a port that depends on Java

2009-12-08 Thread Anh Ky Huynh
Hi,

On Wed, 9 Dec 2009 05:00:34 +
Frank Shute fr...@shute.org.uk wrote:

 On Wed, Dec 09, 2009 at 09:57:37AM +0700, Anh K. Hu???nh wrote:
 
  I am going to build a port (named `vue`, http://vue.tufts.edu/)
  that depends on Java libraries but I don't know how to set the
  dependencies (the RUN_DEPENDS variable in `Makefile`). I know some
  kinds of Java and don't know which one should be used. At least,
  Vue works well with OpenJDK6.
 
 You want to have a look at the Makefiles of other programs that use
 java. E.g azureus
 
 $ less /usr/ports/net-p2p/azureus/Makefile

Thank you. azureus' Makefile is very comprehensive.

  site?). Though using
  EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip is possible I
  think such usage is so expensive :)
 
 I think that you use:
 
 USE_ZIP=  yes
 
 It's mentioned in the porter's handbook which you should read. You
 can also find out by looking at a Makefile again E.g print/cm-super

I've just seen that and some other USER_* in handbook :)

 The porter's handbook tells you how to go about writing a Makefile.
 Any questions you may have about porting software should be
 addressed to ports@, IIRC.
 
 Porters Handbook:
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
 

I've registered at po...@. I'm sorry for my noise here.

Regards,

-- 
Anh Ky Huynh
- TeX: http://viettug.org/
- BSD: http://lovebsd.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org