mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
965593250e
Approved by: mat (mentor, implicit) MFH: 2016Q3 Differential Revision: https://reviews.freebsd.org/D7220
38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= p4api
|
|
PORTVERSION= 2016.1.1411799
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.perforce.com/perforce/${P4VERSION}/bin.${PLATFORM}/:tar \
|
|
ftp://ftp.perforce.com/perforce/${P4VERSION}/doc/manuals/p4api/:pdf
|
|
|
|
EXTRACT_SUFX=
|
|
DISTFILES= ${TAR_FILES}:tar p4api.pdf:pdf
|
|
EXTRACT_ONLY= ${TAR_FILES}
|
|
|
|
MAINTAINER= gordon@FreeBSD.org
|
|
COMMENT= Perforce API (static libraries and header files)
|
|
|
|
RESTRICTED= Restricted distribution
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.include "${.CURDIR}/../p4/Makefile.inc"
|
|
|
|
TAR_FILES= p4api.tgz
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/perforce
|
|
cd ${WRKSRC}/include/p4 && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/perforce
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/perforce
|
|
cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/perforce
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/p4api.pdf ${STAGEDIR}${DOCSDIR}
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/sample && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.post.mk>
|