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. _______________________________________________ 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"