Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 16:08:26 -0300
From:      Fernan Aguero <fernan@iib.unsam.edu.ar>
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>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020116160826.E2966>