blob: ae62544b3c04045c473adf1617af25ab3eb64557 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
PORTNAME= android-tools-fastboot
DISTVERSIONPREFIX= platform-tools-
DISTVERSION?= 29.0.6
PORTREVISION?= 1
CATEGORIES= devel sysutils
MASTER_SITES= https://salsa.debian.org/android-tools-team/android-tools/raw/706e754/debian/:manpage
DISTFILES= fastboot.1:manpage
EXTRACT_ONLY= ${DISTFILES:N*\:manpage:C/:.*//}
MAINTAINER= ports@FreeBSD.org
COMMENT= Android Fastboot protocol CLI tool
LICENSE= APACHE20 BSD2CLAUSE
LICENSE_COMB= multi
USE_GITHUB= yes
GH_TUPLE= aosp-mirror:platform_system_core:${DISTVERSIONFULL} \
jbeich:platform_external_avb:${DISTVERSIONFULL}:avb/avb \
jbeich:platform_system_extras:${DISTVERSIONFULL}:extras/extras \
jbeich:platform_system_tools_mkbootimg:${DISTVERSIONFULL}:mkbootimg/mkbootimg
CONFLICTS_INSTALL?= ${PORTNAME}-devel-*
USES= compiler:c++17-lang pkgconfig ssl uidfix
BUILD_WRKSRC= ${WRKSRC}/fastboot
INSTALL_WRKSRC= ${BUILD_WRKSRC}
MAKEFILE?= ${.CURDIR}/files/Makefile
MAKE_ENV= BINDIR="${PREFIX}/bin" EXTRADIR="${FILESDIR}" \
FILESDIR="${DOCSDIR}" \
VERSION="${DISTVERSION}${DISTVERSIONSUFFIX}" \
MANDIR="${PREFIX}/share/man/man"
PLIST_FILES= bin/fastboot \
share/man/man1/fastboot.1.gz
PORTDOCS= *
SUB_FILES= pkg-message
OPTIONS_DEFINE= BASH DOCS
OPTIONS_SUB= yes
.if make(makesum) # for optional distfiles
.MAKEFLAGS: WITH="${OPTIONS_DEFINE}"
.endif
BASH_GH_TUPLE= mbrubeck:android-completion:c1b0656:bashcomp
BASH_PLIST_FILES= etc/bash_completion.d/fastboot
BASH_VARS= LICENSE+=MIT
DOCS_MAKE_ARGS_OFF= FILES="" FILESDIR=""
post-extract:
@${CP} ${_DISTDIR}/${DISTFILES:M*\:manpage:C/:.*//} \
${BUILD_WRKSRC}
post-install-BASH-on:
${MKDIR} ${STAGEDIR}${PREFIX}/${BASH_PLIST_FILES:H}
${INSTALL_DATA} ${WRKSRC_bashcomp}/android \
${STAGEDIR}${PREFIX}/${BASH_PLIST_FILES}
.include <bsd.port.mk>
|