Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 1996 18:04:24 PST
From:      Bill Fenner <fenner@parc.xerox.com>
To:        ports@freebsd.org
Subject:   Ideas on installing lots of data for a port?
Message-ID:  <96Nov17.180428pst.177557@crevenia.parc.xerox.com>

next in thread | raw e-mail | index | archive | help
I'm trying to put the finishing touches on my Geomview port's install.
Geomview assumes that you're going to untar the distribution in the install
directory and build it in place, so there's a bunch of stuff from the
distribution that it doesn't copy for you when you say "make install".
Right now I'm doing the following; does anyone have any other suggestions?

Thanks,
  Bill

# Geomview presumes that you're installing in the source directory,
# so massive parts of the source directory have to be copied to the
# destination.
INFO_FILES=     geomview geomview-1 geomview-2 geomview-3 geomview-4 geomview-5
DOC_FILES=      4dview.tutorial OOGL.m.doc geomview.ps gvplot.doc \
                newsletter_article.txt oogltour
EXAMPLE_FILES=  example1.c example2.c example3.c
SHARE_DIRS=     data
PRIV_DIRS=      include lib maple mathematica
LIBEXEC_DIRS=   modules

post-install:
        ${MKDIR} -p ${PREFIX}/info
.for i in ${INFO_FILES}
        ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/info
.endfor
.if !defined(NOPORTDOCS)
        ${MKDIR} -p ${PREFIX}/share/doc/geomview
.for i in ${DOC_FILES}
        ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/geomview
.endfor
        ${MKDIR} -p ${PREFIX}/share/examples/geomview
.for i in ${EXAMPLE_FILES}
        ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/examples/geomview
.endfor
.endif
.for i in ${SHARE_DIRS}
        ${RM} -rf ${PREFIX}/share/geomview/${i}
        ${MKDIR} -p ${PREFIX}/share/geomview/${i}
        ${CP} -r ${WRKSRC}/${i} ${PREFIX}/share/geomview
        chown -R ${SHAREOWN}.${SHAREGRP} ${PREFIX}/share/geomview/${i}
.endfor
.for i in ${PRIV_DIRS}
        ${RM} -rf ${PREFIX}/lib/geomview/${i}
        ${MKDIR} -p ${PREFIX}/lib/geomview/${i}
        ${CP} -r ${WRKSRC}/${i} ${PREFIX}/lib/geomview
        chown -R ${BINOWN}.${BINGRP} ${PREFIX}/lib/geomview/${i}
.endfor
.for i in ${LIBEXEC_DIRS}
        ${RM} -rf ${PREFIX}/libexec/geomview/${i}
        ${MKDIR} -p ${PREFIX}/libexec/geomview/${i}
        ${CP} -r ${WRKSRC}/${i} ${PREFIX}/libexec/geomview/${i}
        chown -R ${BINOWN}.${BINGRP} ${PREFIX}/libexec/geomview/${i}
.endfor



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Nov17.180428pst.177557>