From owner-freebsd-ports@FreeBSD.ORG Fri Jan 23 16:08:17 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 291B41065714 for ; Fri, 23 Jan 2009 16:08:17 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id A30A38FC1B for ; Fri, 23 Jan 2009 16:08:16 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 51C1D199099; Fri, 23 Jan 2009 17:08:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 4618F199092; Fri, 23 Jan 2009 17:08:15 +0100 (CET) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 2F85D199091; Fri, 23 Jan 2009 17:08:15 +0100 (CET) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2HF443) with ESMTP id 2009012317081383-18134 ; Fri, 23 Jan 2009 17:08:13 +0100 Received: by wep4035 (sSMTP sendmail emulation); Fri, 23 Jan 2009 17:08:13 +0100 From: "Alexey Shuvaev" Date: Fri, 23 Jan 2009 17:08:13 +0100 To: Steve Franks Message-ID: <20090123160813.GA88716@wep4035.physik.uni-wuerzburg.de> References: <539c60b90901191200n66f37c76k749ebbb829378cb9@mail.gmail.com> <200901231622.53940.makc@issp.ac.ru> <539c60b90901230746o5a7dc2b5g735f17837de1480a@mail.gmail.com> MIME-Version: 1.0 In-Reply-To: <539c60b90901230746o5a7dc2b5g735f17837de1480a@mail.gmail.com> Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.18 (2008-05-17) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 01/23/2009 05:08:13 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2HF443 | November 25, 2008) at 01/23/2009 05:08:14 PM, Serialize complete at 01/23/2009 05:08:14 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de X-Mailman-Approved-At: Fri, 23 Jan 2009 16:42:56 +0000 Cc: Subject: Re: how to install a port without install: in the Makefile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2009 16:08:18 -0000 On Fri, Jan 23, 2009 at 08:46:32AM -0700, Steve Franks wrote: > I presume Florent's preferred method is "INSTALL_PROGRAM"? So far, > the only doc I've found is that it exists. So I put INSTALL_PROGRAM > $(WORKDIR)/$(PORTNAME) (portname just happens to be the name of the ^^^^^^^^^ WRKDIR or WRKSRC? See below. > executable) in the port Makefile, or what? I've never been able to > 'read' makefiles, so I'm not sure a look at ports.mk is going to cause > anything but frustration. We've spent minutes arguing philisophy, can > I get a couple seconds of example? :) Otherwise, PLIST_FILES looks > like it will work to me... > As suggested by Oliver you do in the Makefile: [...] do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ [...] Here you should decide yourself what is appropriate here: WRKDIR is for example: [wep4035] /usr/ports/x11-toolkits/slgtk> make -V WRKDIR /usr/ports/x11-toolkits/slgtk/work while WRKSRC is: [wep4035] /usr/ports/x11-toolkits/slgtk> make -V WRKSRC /usr/ports/x11-toolkits/slgtk/work/slgtk-0.7.3 So you should check in which directory your port extracts itself (after make extract). And you write in the pkg-plist: bin/program_name Here it is better not to bother with PORTNAME substitution and write actual name of the program. The documentation about internals of FreeBSD ports is available online: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html or, if you have installed (or built yourself) it, offline too: file:///usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html Hope this helps, Alexey.