aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ace+tao-doc/Makefile
blob: 75b2075c1e6aa0b95d3ebbbd38da0cb6bf79b211 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Ports collection makefile for:    ace+tao-doc
# Date created:             9 January 2004
# Whom:                 Sergey Matveychuk <sem@ciam.ru>
#
# $FreeBSD$
#

PORTNAME=   ace+tao-doc
PORTVERSION=    5.5.0
CATEGORIES= devel
MASTER_SITES=   ftp://download.dre.vanderbilt.edu/previous_versions/ \
        http://download.dre.vanderbilt.edu/previous_versions/

DISTNAME=   ACE-${PORTVERSION:C/\.0$//}-html

MAINTAINER= ports@FreeBSD.org
COMMENT=    The ACE+TAO HTML documentation

USE_BZIP2=  yes
WRKSRC=     ${WRKDIR}/html
NO_BUILD=   yes
PLIST=      ${WRKDIR}/pkg-plist
DIRLIST=    ${WRKDIR}/dir-list
INSTALL_DIR=    share/doc/${PORTNAME}

pre-install:
    @${ECHO_MSG} "--> Generating a directories list"; \
    cd ${WRKSRC}; \
    ${RM} -f ${PLIST}; ${ECHO_CMD} "@dirrm ${INSTALL_DIR}" > ${DIRLIST}; \
    for d in `${FIND} . -type d`; do \
        n=`${ECHO_CMD} $${d}|${SED} -e 's#^./##'`; \
        if [ "$${n}" != "." ]; then \
            ${ECHO_CMD} "@dirrm ${INSTALL_DIR}/$$n" >> ${DIRLIST}; \
        fi; \
    done; \
    ${ECHO_MSG} "--> Generating a files list"; \
    for f in `${FIND} -s . -type f`; do \
        n=`${ECHO_CMD} $${f}|${SED} -e 's#^./##'`; \
        ${ECHO_CMD} ${INSTALL_DIR}/$${n} >> ${PLIST}; \
    done; \
    ${SORT} -r ${DIRLIST} >> ${PLIST}

do-install:
    @${ECHO_MSG} "--> Installing files:"; \
    ${MKDIR} ${DOCSDIR}; cd ${WRKSRC}; \
    for d in `${FIND} . -type d`; do \
        n=`${ECHO_CMD} $${d}|${SED} -e 's#^./##'`; \
        if [ "$${n}" != "." ]; then \
            ${MKDIR} ${DOCSDIR}/$${n}; \
        fi; \
    done; \
    for f in `${FIND} -s . -type f`; do \
        n=`${ECHO_CMD} $${f}|${SED} -e 's#^./##'`; \
        ${ECHO_MSG} $${n}; \
        ${INSTALL_DATA} $${n} ${DOCSDIR}/$${n}; \
    done

.include <bsd.port.mk>