changes to the original source...

Paul Chvostek paul+fbsd at it.ca
Thu Jun 12 11:55:01 PDT 2003


If an application's original Makefile doesn't include an "install:"
target, is it preferable to patch the Makefile to include one, or handle
the install with a "do-install:" target in the port's Makefile?

Also, if the application's man page fails to include gobs of useful
information and examples that are available via www, what's the best way
to grab content for inclusion in $PREFIX/share/doc/$PKGNAME ?  Should
I just punt with fetch, or is there another preferred way to grab
additional files to add to $DOCSDIR?  Perhaps something like:

    do-install:
        ${FETCH_CMD} -o ${DOCSDIR} http://foo/bar.html

or perhaps it would be better to:

    post-build:
        ${FETCH_CMD} -o ${WRKSRC} http://foo/bar.html

    do-install:
        ${INSTALL_DATA} ${WRKSRC}/bar.html ${DOCSDIR}

What's the preferred method?

-- 
  Paul Chvostek                                             <paul at it.ca>
  Operations / Abuse / Whatever
  it.canada, hosting and development                   http://www.it.ca/



More information about the freebsd-ports mailing list