2015-08-14 02:13:13 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= android-tools-simpleperf
|
|
|
|
DISTVERSIONPREFIX= android-
|
2017-06-14 00:48:45 +02:00
|
|
|
DISTVERSION= 7.1.2_r17
|
2019-09-20 21:58:36 +02:00
|
|
|
PORTREVISION= 9
|
2015-08-14 02:13:13 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
|
|
COMMENT= Android simpleperf tool
|
|
|
|
|
2016-09-17 14:34:20 +02:00
|
|
|
LICENSE= APACHE20
|
2015-08-14 02:13:13 +02:00
|
|
|
|
2018-11-08 13:32:17 +01:00
|
|
|
BUILD_DEPENDS= llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT}
|
2015-08-14 02:13:13 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
2019-09-12 16:45:56 +02:00
|
|
|
GH_TUPLE= jbeich:platform_system_extras:${DISTVERSIONFULL} \
|
|
|
|
aosp-mirror:platform_system_core:${DISTVERSIONFULL}:core \
|
|
|
|
aosp-mirror:platform_bionic:${DISTVERSIONFULL}:bionic/bionic
|
2015-08-14 02:13:13 +02:00
|
|
|
|
2017-04-03 19:35:25 +02:00
|
|
|
USES= compiler:c++11-lib ncurses uidfix
|
2015-08-14 02:13:13 +02:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/simpleperf
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
2015-10-13 20:03:26 +02:00
|
|
|
TEST_WRKSRC= ${BUILD_WRKSRC}
|
2015-08-14 02:13:13 +02:00
|
|
|
MAKEFILE= ${FILESDIR}/Makefile
|
2018-11-08 13:32:17 +01:00
|
|
|
MAKE_ENV= BINDIR="${PREFIX}/bin" LLVM_CONFIG="llvm-config${LLVM_DEFAULT}"
|
2015-08-14 02:13:13 +02:00
|
|
|
ALL_TARGET= all
|
2015-10-13 20:03:26 +02:00
|
|
|
TEST_TARGET= test
|
2015-08-14 02:13:13 +02:00
|
|
|
LDFLAGS+= -Wl,--as-needed # avoid overlinking (llvm deps)
|
|
|
|
PLIST_FILES= bin/simpleperf
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= TEST
|
|
|
|
|
2016-03-16 13:58:16 +01:00
|
|
|
TEST_BUILD_DEPENDS= googletest>=1.6.0:devel/googletest
|
2015-10-13 20:03:26 +02:00
|
|
|
TEST_ALL_TARGET= simpleperf_test
|
2015-08-14 02:13:13 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
# Adjust paths relative to extras
|
|
|
|
@(cd ${WRKSRC_core} && ${COPYTREE_SHARE} . ${WRKSRC})
|
|
|
|
|
2015-10-13 20:03:26 +02:00
|
|
|
pre-install-TEST-on: do-test
|
2015-08-14 02:13:13 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|