From owner-freebsd-questions@FreeBSD.ORG Wed Dec 9 05:00:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BC2C106566B for ; Wed, 9 Dec 2009 05:00:49 +0000 (UTC) (envelope-from frank@shute.org.uk) Received: from atmail-10.bnguk.net (atmail-10.bnguk.net [80.74.253.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5A7C58FC13 for ; Wed, 9 Dec 2009 05:00:49 +0000 (UTC) Received: from 77-44-105-82.xdsl.murphx.net ([77.44.105.82] helo=orange.esperance-linux.co.uk) by atmail-10.bnguk.net with esmtp (Exim 4.69) (envelope-from ) id 1NIEfD-0003GI-O4; Wed, 09 Dec 2009 05:00:35 +0000 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id 0DC694AC1B; Wed, 9 Dec 2009 05:00:34 +0000 (GMT) Date: Wed, 9 Dec 2009 05:00:34 +0000 From: Frank Shute To: "Anh K. Hu???nh" Message-ID: <20091209050034.GA53937@orange.esperance-linux.co.uk> Mail-Followup-To: "Anh K. Hu???nh" , freebsd-questions@freebsd.org References: <20091209095737.63be955a@icy.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091209095737.63be955a@icy.localdomain> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.0-RC1 amd64 X-Organisation: 'shute.org.uk' Cc: freebsd-questions@freebsd.org Subject: Re: build a port that depends on Java X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2009 05:00:49 -0000 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