blob: 8a79c058ab71727a12c226bc29f2f9f32ef75266 (
plain)
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
59
60
61
62
63
64
|
# $NetBSD: Makefile,v 1.1.1.1 2002/09/01 02:34:38 schmonz Exp $
#
DISTNAME= p4-docs
COMMENT= Perforce SCM documentation
.include "../../devel/p4/Makefile.common"
HOMEPAGE= http://www.perforce.com/perforce/technical.html
DISTFILES= p4.1
DISTFILES+= p4d.1
DISTFILES+= relnotes.txt
DISTFILES+= platformnotes.html
DISTFILES+= cmdref_html.zip
DISTFILES+= p4ftp_html.zip
DISTFILES+= p4guide_html.zip
DISTFILES+= p4sag_html.zip
P4_DOCURL_PREFIX= http://www.perforce.com/perforce/doc.021
SITES_p4.1= ${P4_DOCURL_PREFIX}/man/
SITES_p4d.1= ${P4_DOCURL_PREFIX}/man/
SITES_relnotes.txt= ${P4_DOCURL_PREFIX}/user/
SITES_platformnotes.html= ${P4_DOCURL_PREFIX}/user/
SITES_cmdref_html.zip= ${P4_DOCURL_PREFIX}/manuals/cmdref/
SITES_p4ftp_html.zip= ${P4_DOCURL_PREFIX}/manuals/p4ftp/
SITES_p4guide_html.zip= ${P4_DOCURL_PREFIX}/manuals/p4guide/
SITES_p4sag_html.zip= ${P4_DOCURL_PREFIX}/manuals/p4sag/
EXTRACT_ONLY= cmdref_html.zip p4ftp_html.zip
EXTRACT_ONLY+= p4guide_html.zip p4sag_html.zip
EXTRACT_CMD.zip= ${LOCALBASE}/bin/unzip -Laq $${extract_file} \
-d `basename $${extract_file} _html.zip`
DOCDIR= share/doc/p4
HTMLDIR= share/doc/html/p4
PLIST_SUBST+= DOCDIR=${DOCDIR}
PLIST_SUBST+= HTMLDIR=${HTMLDIR}
do-install:
${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/*.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/relnotes.txt \
${PREFIX}/${DOCDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/platformnotes.html \
${PREFIX}/${HTMLDIR}
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}/cmdref
${INSTALL_DATA} ${WRKSRC}/cmdref/* ${PREFIX}/${HTMLDIR}/cmdref
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}/p4ftp
${INSTALL_DATA} ${WRKSRC}/p4ftp/* ${PREFIX}/${HTMLDIR}/p4ftp
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}/p4guide
${INSTALL_DATA} ${WRKSRC}/p4guide/* ${PREFIX}/${HTMLDIR}/p4guide
${INSTALL_DATA_DIR} ${PREFIX}/${HTMLDIR}/p4sag
${INSTALL_DATA} ${WRKSRC}/p4sag/* ${PREFIX}/${HTMLDIR}/p4sag
.include "../../mk/bsd.pkg.mk"
|