summaryrefslogtreecommitdiff
path: root/devel/android-tools-simpleperf/Makefile
blob: a9bb888cd3f02e6f2c2a836ea729b3f0915513d5 (plain)
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

PORTNAME=	android-tools-simpleperf
DISTVERSIONPREFIX=	android-
DISTVERSION=	7.1.2_r17
PORTREVISION=	9
CATEGORIES=	devel

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Android simpleperf tool

LICENSE=	APACHE20

BUILD_DEPENDS=	llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}

USE_GITHUB=	yes
GH_TUPLE=	jbeich:platform_system_extras:${DISTVERSIONFULL} \
		aosp-mirror:platform_system_core:${DISTVERSIONFULL}:core \
		aosp-mirror:platform_bionic:${DISTVERSIONFULL}:bionic/bionic

USES=		compiler:c++11-lib ncurses uidfix
BUILD_WRKSRC=	${WRKSRC}/simpleperf
INSTALL_WRKSRC=	${BUILD_WRKSRC}
TEST_WRKSRC=	${BUILD_WRKSRC}
MAKEFILE=	${FILESDIR}/Makefile
MAKE_ENV=	BINDIR="${PREFIX}/bin" LLVM_CONFIG="llvm-config${LLVM_DEFAULT}"
ALL_TARGET=	all
TEST_TARGET=	test
LDFLAGS+=	-Wl,--as-needed # avoid overlinking (llvm deps)
PLIST_FILES=	bin/simpleperf

OPTIONS_DEFINE=	TEST

TEST_BUILD_DEPENDS=	googletest>=1.6.0:devel/googletest
TEST_ALL_TARGET=	simpleperf_test

post-extract:
# Adjust paths relative to extras
	@(cd ${WRKSRC_core} && ${COPYTREE_SHARE} . ${WRKSRC})

pre-install-TEST-on: do-test

.include <bsd.port.mk>