aboutsummaryrefslogtreecommitdiff
path: root/devel/p4api/Makefile
blob: c9ad4f11718aeca829f887f9f6aa8fd1fd385ff4 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# $FreeBSD$

PORTNAME=	p4api
PORTVERSION=	${VERSION}
CATEGORIES=	devel
MASTER_SITES=	ftp://ftp.perforce.com/pub/perforce/r${PORTVERSION}/bin.${PLATFORM}${PLATFORM_SUFX}/:tar \
		http://www.perforce.com/perforce/doc.${DOCVER}/manuals/p4api/:pdf

EXTRACT_SUFX=
DISTFILES=	${TAR_FILES}:tar p4api.pdf:pdf
DIST_SUBDIR=	perforce/${VERSION}/${ARCH}-${PLATFORM}
EXTRACT_ONLY=	${TAR_FILES}

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Perforce API (static libraries and header files)

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/p4api-2008.1.158777

PLATFORM=	freebsd60
VERSION=	08.1

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${ARCH} == i386
PLATFORM_SUFX=	x86
.elif ${ARCH} == amd64
PLATFORM_SUFX=	x86_64
.else
IGNORE=		Unsupported platform, sorry.
.endif

TAR_FILES=	p4api.tgz

DOCVER=		${VERSION:S/.//}

do-install:
	${MKDIR} ${PREFIX}/include/perforce
	${MKDIR} ${PREFIX}/lib/perforce
	cd ${WRKSRC}/include/p4; \
	 for i in *.h; \
	 do ${INSTALL_DATA} $${i} ${PREFIX}/include/perforce; \
	 done
	cd ${WRKSRC}/lib; \
	 for i in lib*.a; \
	 do ${INSTALL_DATA} $${i} ${PREFIX}/lib/perforce; \
	 done
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/p4api.pdf ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
	${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC}/sample; \
	 for i in *; \
	 do ${INSTALL_DATA} $${i} ${EXAMPLESDIR}; \
	 done
.endif

.include <bsd.port.post.mk>