From owner-freebsd-doc Wed Jan 16 11: 8:55 2002 Delivered-To: freebsd-doc@freebsd.org Received: from www.unsam.edu.ar (ns2.unsam.edu.ar [170.210.48.2]) by hub.freebsd.org (Postfix) with ESMTP id 2A6A737B41A; Wed, 16 Jan 2002 11:08:45 -0800 (PST) Received: from pi.iib.unsam.edu.ar (pi.iib.unsam.edu.ar [192.168.10.11]) by www.unsam.edu.ar (8.9.3/8.9.3) with ESMTP id QAA53403; Wed, 16 Jan 2002 16:08:37 -0300 (ART) (envelope-from fernan@pi.iib.unsam.edu.ar) Received: (from fernan@localhost) by pi.iib.unsam.edu.ar (8.11.3/8.11.3) id g0GJ8Qv36226; Wed, 16 Jan 2002 16:08:26 -0300 (ART) (envelope-from fernan) Date: Wed, 16 Jan 2002 16:08:26 -0300 From: Fernan Aguero To: ports@freebsd.org Cc: doc@freebsd.org Subject: [porter's handbook] problems generating pkg-plist automagically Message-ID: <20020116160826.E2966@iib.unsam.edu.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-PGP-Key: http://genoma.unsam.edu.ar/~fernan/pubkey.asc Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all! After solving my configure/build problems I am now tweaking the port's Makefile to install the documentation properly, and also trying to generate the pkg-plist file. (kaptain port, see recent thread) In short I'm following the examples at the porter's handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html but it seems that the following make target does not exist: # make depends PREFIX=/var/tmp/kaptain I've read through bsd.port.mk and it's not listed as a valid target. Doing a make depends just list the dependencies found, but does not produce any other output. Also /var/tmp/kaptain keeps unchanged. Doing a make, or make install using the mentioned PREFIX produces an error: "no KDE2 includes are at PREFIX ..." Is this a documentation bug? Anyway. Skipping the automatic generation of plist ... everything works cleanly, and I'm creating the pkg-plist file manually. Regarding the documentation: there are no man pages in my port, but a doc/ directory under WRKSRC with a Makefile, some subdeirectories, each with their own Makefile ... everything is html, txt, images ... Question: Do I let the Makefiles do their job and put everything under usr/local/doc)? AFAICS kaptain is the only subdir there and most ports install documentation under /usr/local/share/doc How do I change this behaviour? I've seen no configure args that could be pass to change this (but maybe I'm just missing them) ... According to the porter's handbook, I could do something like: post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/${PORTNAME} ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/${PORTNAME} .endif (which is similar but not identical to the example in the handbook) This is choking on me: error: unexpected "(" in .if !defined(NOPORTDOCS) Anyway, everything is working and I am just trying to get everything as good as I can. This is my first port! Fernan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message