aboutsummaryrefslogtreecommitdiff
path: root/emulators/tpm-emulator/Makefile
blob: 8abcf954d625e33730b2c57f41db44e5b641dd28 (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
# New ports collection makefile for:	tpm-emulator
# Date created:				18 Sep 2007
# Whom:					Sebastian Schuetz <sschuetz@fhm.edu>
#
# $FreeBSD$
#

PORTNAME=		tpm-emulator
PORTVERSION=		0.7.1
CATEGORIES=		emulators
MASTER_SITES=		BERLIOS/${PORTNAME}
DISTNAME=		${PORTNAME:S/-/_/}-${PORTVERSION}

MAINTAINER=		nork@freebsd.org
COMMENT=		Trusted Platform Module (TPM) emulator

LIB_DEPENDS=		gmp.10:${PORTSDIR}/math/gmp

USE_CMAKE=		YES
USE_LDCONFIG=		YES
MAKE_JOBS_SAFE=		YES

CONFLICTS=		trousers-tddl*

WANTLIB=		c
CMAKE_VERBOSE=		YES
CMAKE_SOURCE_PATH=	${WRKSRC}
NO_CONFIGURE=		YES
BUILD_WRKSRC=		${CONFIGURE_WRKSRC}
INSTALL_WRKSRC=		${CONFIGURE_WRKSRC}
CONFIGURE_WRKSRC=	${CMAKE_SOURCE_PATH}/build

CMAKE_ARGS+=		-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \
			-DCMAKE_EXE_LINKER_FLAGS="-L${LOCALBASE}/lib"

LICENSE=		GPLv2
LICENSE_FILE=		${WRKSRC}/README

WRKSRC=			${WRKDIR}/${PORTNAME:S/-/_/}-${PORTVERSION}

post-patch:
	@${MKDIR} ${WRKSRC}/build

.include <bsd.port.mk>