aboutsummaryrefslogtreecommitdiffstats
path: root/lang/fpc-docs/Makefile
blob: 5418f15644421d4038e314f6632e4512bd24f8c8 (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
# New ports collection makefile for:    Free Pascal Compiler Docs
# Date created:             9 February 2004
# Whom:                 John Merryweather Cooper
#
# $FreeBSD$
#

PORTNAME=   docs
PORTVERSION=    2.6.0
CATEGORIES= lang
MASTER_SITES=   ftp://ftp.freepascal.org/pub/fpc/dist/${PORTVERSION}/docs/ \
        ftp://planetmirror.com/pub/fpc/dist/${PORTVERSION}/docs/ \
        ftp://ftp.jp.freepascal.org/mirror/fpc/dist/${PORTVERSION}/docs/ \
        ftp://freepascal.stack.nl/pub/fpc/dist/${PORTVERSION}/docs/ \
        ftp://ftp.no.freepascal.org/pub/fpc/dist/${PORTVERSION}/docs/ \
        ftp://ftp.us.freepascal.org/pub/fpc/dist/${PORTVERSION}/docs/
PKGNAMEPREFIX=  fpc-
DISTNAME=   ${PORTNAME:S/s//}-pdf
DIST_SUBDIR=    freepascal

MAINTAINER= acm@FreeBSD.org
COMMENT=    Free Pascal compiler Adobe Acrobat(tm) documentation

ONLY_FOR_ARCHS= i386 amd64
NO_BUILD=   yes

DOCSDIR=    ${PREFIX}/share/doc/fpdocs-${PORTVERSION}
PORTDOCS=   chart.pdf fcl.pdf fpdoc.pdf prog.pdf ref.pdf rtl.pdf user.pdf
SUB_FILES=  pkg-message

do-install:
    @${MKDIR} ${DOCSDIR}
    @cd ${WRKDIR}/doc && \
        ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>