2006-03-12 15:31:23 +01:00
|
|
|
# $NetBSD: Makefile,v 1.8 2006/03/12 14:32:45 rillig Exp $
|
2002-09-01 04:34:37 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= p4-docs
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2002-09-01 04:34:37 +02:00
|
|
|
COMMENT= Perforce SCM documentation
|
|
|
|
|
|
|
|
.include "../../devel/p4/Makefile.common"
|
|
|
|
|
2004-07-19 14:34:50 +02:00
|
|
|
# override, since the docs have changed at least once more often
|
|
|
|
# than the binaries for NetBSD
|
|
|
|
DIST_SUBDIR= perforce-20040716
|
|
|
|
|
2002-09-01 04:34:37 +02:00
|
|
|
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
|
|
|
|
|
2006-03-12 15:31:23 +01:00
|
|
|
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/
|
2002-09-01 04:34:37 +02:00
|
|
|
|
|
|
|
EXTRACT_ONLY= cmdref_html.zip p4ftp_html.zip
|
|
|
|
EXTRACT_ONLY+= p4guide_html.zip p4sag_html.zip
|
2006-03-12 15:31:23 +01:00
|
|
|
EXTRACT_OPTS+= -d `${BASENAME} "$$extract_file" _html.zip`
|
2006-01-21 19:57:40 +01:00
|
|
|
EXTRACT_OPTS_ZIP= -Laq
|
2002-09-01 04:34:37 +02:00
|
|
|
|
|
|
|
DOCDIR= share/doc/p4
|
|
|
|
HTMLDIR= share/doc/html/p4
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= DOCDIR=${DOCDIR:Q}
|
|
|
|
PLIST_SUBST+= HTMLDIR=${HTMLDIR:Q}
|
2002-09-01 04:34:37 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= man/man1
|
|
|
|
|
2002-09-01 04:34:37 +02:00
|
|
|
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"
|