aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/wxgtk-docs/Makefile
blob: 122b4b270a2d9ff5a7a42085ee6aa658c042919c (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
# New ports collection makefile for:    wxgtk_doc
# Date created:             1 Apr 23:51:14 2003 CEST
# Whom:                 Michal Pasternak <dotz@irc.pl>
#
# $FreeBSD$
#

PORTNAME=   wxgtk_doc
PORTVERSION=    2.4.0
CATEGORIES= x11-toolkits
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= wxwindows
DISTNAME=   wxWindows-${PORTVERSION}-HTML

MAINTAINER= dotz@irc.pl
COMMENT=    wxWindows documentation in HTML

NO_BUILD=   YES
USE_ZIP=    YES

WXGTKDOCDIR=    ${PREFIX}/share/doc/${PORTNAME}/html/
WRKSRC=     ${WRKDIR}/wxWindows-${PORTVERSION}/docs/html/

do-install:
    @${MKDIR} ${WXGTKDOCDIR}
    @${CP} -R ${WRKSRC}/* ${WXGTKDOCDIR}

post-install:
    @(cd ${WRKSRC} && ${FIND} * -type f | ${XARGS} printf "share/doc/${PORTNAME}/html/%s\n" >> ${TMPPLIST})
    @(cd ${WRKSRC} && ${FIND} * -type d | ${XARGS} printf "@dirrm share/doc/${PORTNAME}/html/%s\n" >> ${TMPPLIST})
    @${ECHO} @dirrm share/doc/${PORTNAME}/html >> ${TMPPLIST}
    @${ECHO} @dirrm share/doc/${PORTNAME} >> ${TMPPLIST}

.include <bsd.port.mk>