aboutsummaryrefslogtreecommitdiffstats
path: root/audio/csound-manual/Makefile
blob: 516a6ad01a781b0f91698ec4849b57d43c9f02fa (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
# New ports collection makefile for:    csound-manual
# Date created:             2000-10-11
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   csound-manual
PORTVERSION=    4.23
CATEGORIES= audio
MASTER_SITES=   http://www.kevindumpscore.com/download/ \
        ftp://ftp.cs.bath.ac.uk/pub/dream/documentation/manuals/
DISTFILES=  manual-docbook-${PORTVERSION}.tar.gz \
        manual-html-${PORTVERSION}.tar.gz \
        manual-pdf-${PORTVERSION}.tar.gz \
        manual-text-${PORTVERSION}.tar.gz
DIST_SUBDIR=    csound

MAINTAINER= trevor@FreeBSD.org
COMMENT=    Manuals for Csound

RUN_DEPENDS=    csound:${PORTSDIR}/audio/csound

NO_BUILD=       yes
NO_MTREE=       yes
PLIST=          ${WRKDIR}/pkg-plist
PREFIX=         ${X11BASE}
WRKSRC=         ${WRKDIR}/csound-${PORTVERSION}/manual

pre-install:
    @${RM} -f ${PLIST}
    cd ${WRKSRC} && ${FIND} -s * -type f | \
        ${SED} -e 's:^:share/doc/csound/:' >> ${PLIST} \
        && ${FIND} -d * -type d | \
        ${SED} -e 's:^:@dirrm share/doc/csound/:' >> ${PLIST}
        ${ECHO_CMD} @dirrm share/doc/csound >> ${PLIST}

do-install:
    @${MKDIR} ${PREFIX}/share/doc/csound
    cd ${WRKSRC} && ${PAX} -r -w * ${PREFIX}/share/doc/csound

.include <bsd.port.mk>