Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 53 lines (39 sloc) 1.445 kb
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
# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:36 jlam Exp $
#

DISTNAME= p4-docs
COMMENT= Perforce SCM documentation

PKG_DESTDIR_SUPPORT= user-destdir

.include "../../devel/p4/Makefile.common"

# override, since the docs have changed at least once more often
# than the binaries for NetBSD
DIST_SUBDIR= perforce-20070118

HOMEPAGE= http://www.perforce.com/perforce/technical.html

DISTFILES= p4.1
DISTFILES+= p4d.1
DISTFILES+= relnotes.txt
DISTFILES+= platformnotes.html
DISTFILES+= cmdref.pdf
DISTFILES+= p4ftp.pdf
DISTFILES+= p4guide.pdf
DISTFILES+= p4sag.pdf

P4_DOCURL_PREFIX= http://www.perforce.com/perforce/doc.062
P4_MANURL_PREFIX= http://www.perforce.com/perforce/doc.052

SITES.p4.1= ${P4_MANURL_PREFIX}/man/
SITES.p4d.1= ${P4_MANURL_PREFIX}/man/
SITES.relnotes.txt= ${P4_DOCURL_PREFIX}/user/
SITES.platformnotes.html= ${P4_DOCURL_PREFIX}/user/
SITES.cmdref.pdf= ${P4_DOCURL_PREFIX}/manuals/cmdref/
SITES.p4ftp.pdf= ${P4_DOCURL_PREFIX}/manuals/p4ftp/
SITES.p4guide.pdf= ${P4_DOCURL_PREFIX}/manuals/p4guide/
SITES.p4sag.pdf= ${P4_DOCURL_PREFIX}/manuals/p4sag/

DOCDIR= share/doc/p4
PLIST_SUBST+= DOCDIR=${DOCDIR:Q}

INSTALLATION_DIRS= ${DOCDIR} ${PKGMANDIR}/man1

do-install:
${INSTALL_MAN} ${DISTDIR}/${DIST_SUBDIR}/*.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

cd ${WRKSRC}; \
for f in *.html *.pdf *.txt; do \
${INSTALL_DATA} $${f} ${DESTDIR}${PREFIX}/${DOCDIR}; \
done

.include "../../mk/bsd.pkg.mk"
Something went wrong with that request. Please try again.