Date: Fri, 23 Jan 2009 17:08:13 +0100 From: "Alexey Shuvaev" <shuvaev@physik.uni-wuerzburg.de> To: Steve Franks <bahamasfranks@gmail.com> Subject: Re: how to install a port without install: in the Makefile Message-ID: <20090123160813.GA88716@wep4035.physik.uni-wuerzburg.de> In-Reply-To: <539c60b90901230746o5a7dc2b5g735f17837de1480a@mail.gmail.com> References: <539c60b90901191200n66f37c76k749ebbb829378cb9@mail.gmail.com> <a01628140901230147y2be65b4eu66e7250f4d078c45@mail.gmail.com> <op.un7nnoz79aq2h7@localhost> <200901231622.53940.makc@issp.ac.ru> <a01628140901230619n4e385d74sf0079b8214f70cce@mail.gmail.com> <539c60b90901230746o5a7dc2b5g735f17837de1480a@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090123160813.GA88716>