Commit graph

57 commits

Author SHA1 Message Date
Jan Beich
a34da07c60 devel/android-tools-adb: update SDK version as part of makesum
- Extract platform SDK version out of platform/build repo
- Move version logic out of sub-makefile
- Simplify GH_REVISION
2017-12-22 10:49:09 +00:00
Jan Beich
66cde68327 devel/android-tools-{adb,fastboot}: chase SDK version in --version after r456869
Keep in mind, the output is still not identical to upstream.

  $ platform-tools_r26.0.0-linux/adb version
  Android Debug Bridge version 1.0.39
  Revision 3db08f2c6889-android
  Installed as /tmp/platform-tools_r26.0.0-linux/adb

  $ platform-tools_r26.0.0-linux/fastboot --version
  fastboot version 3db08f2c6889-android
  Installed as /tmp/platform-tools_r26.0.0-linux/fastboot

  $ platform-tools_r27.0.0-linux/adb version
  Android Debug Bridge version 1.0.39
  Version 27.0.0-4455170
  Installed as /tmp/platform-tools_r27.0.0-linux/adb

  $ platform-tools_r27.0.0-linux/fastboot --version
  fastboot version 27.0.0-4455170
  Installed as /tmp/platform-tools_r27.0.0-linux/fastboot

  $ adb version
  Android Debug Bridge version 1.0.39
  Version 27.0.0-0 86c2b588a369-android
  Installed as /usr/local/bin/adb

  $ fastboot --version
  fastboot version 27.0.0-0 86c2b588a369-android
  Installed as /usr/local/bin/fastboot
2017-12-22 10:48:57 +00:00
Jan Beich
95b297ca42 devel/android-tools-{adb,fastboot}: chase HTTP redirect 2017-12-22 10:48:45 +00:00
Jan Beich
8662d962dd devel/android-tools-{adb,fastboot}: update to 8.1.0.r2
Changes:	https://android.googlesource.com/platform/system/core/+log/android-8.0.0_r24..android-8.1.0_r2/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-8.0.0_r24..android-8.1.0_r2/fastboot
2017-12-20 23:14:34 +00:00
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Jan Beich
a139cacf44 devel/android-tools-{adb,fastboot}: update to 8.0.0.r24
Changes:	https://android.googlesource.com/platform/system/core/+log/android-8.0.0_r4..android-8.0.0_r24/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-8.0.0_r4..android-8.0.0_r24/fastboot
2017-10-30 18:36:22 +00:00
Gerald Pfeifer
e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00
Jan Beich
de21ae3fd7 devel/android-tools-adb-devel: switch to master FILESDIR 2017-08-22 13:30:04 +00:00
Jan Beich
8cdfbbc204 devel/android-tools-adb: drop += after r448522 2017-08-22 13:07:26 +00:00
Jan Beich
212056367b devel/android-tools-{adb,fastboot}: update to 8.0.0.r4 (oreo)
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.2_r17..android-8.0.0_r4/fastboot
2017-08-22 13:01:20 +00:00
Jan Beich
162703dfe7 devel/android-tools-adb-devel: update to o.p.2.332
- USB transport is no longer supported on DragonFly and FreeBSD < 11
  as probing outside of libusb hotplug API isn't implemented

Changes:	dfd30c4a16..d1e9e7bc06/adb
2017-06-20 21:50:30 +00:00
Jan Beich
6925eea121 devel/android-tools-{adb,fastboot,simpleperf}: update to 7.1.2.r17
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.1_r4..android-7.1.2_r17/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.1_r4..android-7.1.2_r17/fastboot
Changes:	https://android.googlesource.com/platform/system/extras/+log/android-7.1.1_r4..android-7.1.2_r17/simpleperf
MFH:		2017Q2
2017-06-13 22:48:45 +00:00
Gerald Pfeifer
04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00
Jan Beich
9e58624042 Drop pre-10.3 support in my ports
Figuring out which GCC hacks are safe to drop is tricky but at least
devel/fb-adb is limited to x86 due to ADA bootstrap.
2017-01-03 12:49:39 +00:00
Jan Beich
d7242ea20d List in more categories 2016-12-16 16:21:59 +00:00
Jan Beich
b6a7f98030 devel/android-tools-{adb,fastboot}: update to 7.1.1.r4
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.0_r4..android-7.1.1_r4/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.1.0_r4..android-7.1.1_r4/fastboot
2016-12-06 22:53:44 +00:00
Jan Beich
305c06c3e6 devel/android-tools-{adb,fastboot}: update to 7.1.0.r4
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.0.0_r1..android-7.1.0_r4/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-7.0.0_r1..android-7.1.0_r4/fastboot
2016-10-29 05:14:42 +00:00
Jan Beich
e78331a963 devel/android-tools-{adb,fastboot}-devel: update to n.p.5.3582
Changes:	2f21b7cecd..dfd30c4a16/adb
Changes:	2f21b7cecd..dfd30c4a16/fastboot
2016-09-29 03:44:05 +00:00
Jan Beich
f324180c13 devel/android-tools-adb{,-devel}: drop unnecessary non-ASCII serial handling
Linux replaced the code as well in
https://android.googlesource.com/platform/system/core/+/9309ecbcec42%5E!/

PR:		199185
2016-09-28 09:43:38 +00:00
Jan Beich
f33e38aed0 devel/android-tools-adb: unbreak build with libc++ 3.9
PR:		212343
2016-09-18 19:11:34 +00:00
John Marino
a2bcc5cc59 devel/android-tools-adb: USES=pkgconfig to support ports SSL libraries
Approved by:	SSL blanket
2016-09-10 14:30:21 +00:00
Jan Beich
e7c25f9f24 devel/android-tools-{adb,fastboot}: update to 7.0.0.r1 (nougat)
Changes:	https://android.googlesource.com/platform/system/core/+log/android-6.0.1_r24..android-7.0.0_r1/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-6.0.0_r26..android-7.0.0_r1/fastboot
2016-08-24 12:41:31 +00:00
Jan Beich
9c6b00d6e2 devel/android-tools-{adb,fastboot}-devel: update to n.p.5.126
Changes:	80beb506cf..2f21b7cecd/adb
Changes:	80beb506cf..2f21b7cecd/fastboot
2016-08-09 16:48:21 +00:00
Dmitry Marakasov
1d1f878054 - Fix trailing whitespace in pkg-descrs, categories [a-f]*
Approved by:	portmgr blanket
2016-05-19 10:21:23 +00:00
Jan Beich
fba38f8572 devel/android-tools-adb-devel: update to n.p.2.74
Changes:	ba430e3634..d61bfb9a79/adb
2016-04-21 23:00:09 +00:00
Jan Beich
796c95b230 devel/android-tools-adb-devel: update to n.p.2.43
Changes:	371e7ea170..ba430e3634/adb
2016-04-16 11:38:16 +00:00
Jan Beich
79ab7dd66f devel/android-tools-adb: update to 6.0.1.r24
Changes:	https://android.googlesource.com/platform/system/core/+log/android-6.0.0_r26..android-6.0.1_r24/adb
2016-04-07 03:59:58 +00:00
Jan Beich
f7731c8be8 Drop default directory from _DEPENDS in my ports
https://lists.freebsd.org/pipermail/freebsd-ports/2015-October/100794.html
2016-03-16 12:58:16 +00:00
Jan Beich
f2442363ed devel/android-tools-*: drop FreeBSD 8.x support 2015-12-16 09:36:24 +00:00
Jan Beich
7cdb29d2e2 devel/android-tools-{adb,fastboot}-devel: update to m.p.5956
Changes:	0bb1ce06ea..461a29540c/adb
Changes:	0bb1ce06ea..461a29540c/fastboot
2015-12-16 01:55:44 +00:00
Jan Beich
390ed89afd devel/android-tools-{adb,fastboot}: update to 6.0.0.r26
Changes:	https://android.googlesource.com/platform/system/core/+log/android-6.0.0_r1..android-6.0.0_r26/adb (device only)
Changes:	https://android.googlesource.com/platform/system/core/+log/android-6.0.0_r1..android-6.0.0_r26/fastboot
2015-11-05 01:52:50 +00:00
Jan Beich
33e88bc186 devel/android-tools-adb: unbreak build on DragonFly
make(1) suffix rules discard original extension as used by bsd.*.mk
which leads to unpredictable behavior if more than one candidate is
found under ${.PATH}. So, partially qualify pathname to avoid
accidentally building libcutils/sockets.c despite SRCS=sockets.cpp

  $ echo 'void foo() { }' > a.c
  $ echo 'int main() { }' > a.cxx
  $ make PROG_CXX=test SRCS=a.cxx NO_MAN= -f /usr/share/mk/bsd.prog.mk
  cc  -O -pipe    -std=gnu99  -c a.c
  c++  -O -pipe  -o test a.o
  /usr/lib/crt1.o: In function `_start':
  crt1.c:(.text+0x132): undefined reference to `main'
  *** Error code 1

which in adb case leads to (since partial C++ conversion in 6.0.0)

  adb.o: In function `handle_packet(apacket*, atransport*)':
  adb.cpp:(.text+0x2518): undefined reference to `find_local_socket(unsigned int, unsigned int)'
  adb.cpp:(.text+0x2613): undefined reference to `find_local_socket(unsigned int, unsigned int)'
  adb.cpp:(.text+0x276a): undefined reference to `find_local_socket(unsigned int, unsigned int)'
  adb.cpp:(.text+0x2875): undefined reference to `create_local_service_socket(char const*)'
  adb.cpp:(.text+0x288c): undefined reference to `create_remote_socket(unsigned int, atransport*)'
  adb.cpp:(.text+0x2a41): undefined reference to `create_remote_socket(unsigned int, atransport*)'
  adb_listeners.o: In function `listener_event_func(int, unsigned int, void*)':
  adb_listeners.cpp:(.text+0xe2): undefined reference to `create_local_socket(int)'
  adb_listeners.cpp:(.text+0xfe): undefined reference to `connect_to_remote(asocket*, char const*)'
  adb_listeners.o: In function `ss_listener_event_func(int, unsigned int, void*)':
  adb_listeners.cpp:(.text+0x1b1): undefined reference to `create_local_socket(int)'
  adb_listeners.cpp:(.text+0x1be): undefined reference to `connect_to_smartsocket(asocket*)'
  services.o: In function `host_service_to_socket(char const*, char const*)':
  services.cpp:(.text+0x64d): undefined reference to `create_local_socket(int)'
  services.cpp:(.text+0x6b7): undefined reference to `create_local_socket(int)'
  transport.o: In function `input_thread(void*)':
  transport.cpp:(.text+0x1931): undefined reference to `close_all_sockets(atransport*)'
  *** [adb] Error code 1
2015-11-05 01:52:27 +00:00
Jan Beich
84f22b5968 devel/android-tools-{adb,fastboot}: force all distfiles for |make makesum|
Forgetting to pass DISABLE_CONFLICTS= is easy to notice unlike
a missing checksum. So, hook into makesum like with update-revision.
2015-10-24 10:12:36 +00:00
Jan Beich
584d8de2d1 devel/android-tools-{adb,fastboot}: update BASH to 20150902 snapshot
- Switch to the actual upstream on GitHub
- Reduce overuse of :FOO make(1) variable modifiers
- Restore conditional install via target option helper
2015-10-24 10:12:21 +00:00
Jan Beich
6a1cb428a4 devel/android-tools-*: slightly improve standalone build
- Try to derive {ADB,FASTBOOT}_REVISION from git(1)
- Use pkg-config for libcrypto/libpcre/libusb (e.g. if they aren't in base)
- Convert PORTDOCS into FILES (bsd.port.mk vs. bsd.prog.mk)
- Partially convert to new testing framework
- Put -lpthread last as enforced by base r274849 but prevent
  := assignment from mucking $ escaping in $()
- |make clean| to clean files built by test target
- Move up bsd.prog.mk in order to use ${PROG} and ${OBJS} defined in it
2015-10-13 18:03:26 +00:00
Jan Beich
59af415900 devel/android-tools-adb: explicitly include stdint.h for intptr_t 2015-10-13 18:02:59 +00:00
Jan Beich
f344033666 devel/android-tools-adb: unbreak TEST=on more reliably
/dev/full is only provided by default on 11.0, earlier releases have it
in lindev(4). This leads to the same error as with automation. Other BSDs
including DragonFly don't provide /dev/full at all.

  [ RUN      ] io.WriteFdExactly_ENOSPC
  adb_io_test.cpp:136: Failure
  Expected: (-1) != (fd), actual: -1 vs -1
  [  FAILED  ] io.WriteFdExactly_ENOSPC (1 ms)

Reported by:	Barbara <barbara.freebsd@gmail.com>
2015-10-10 13:16:57 +00:00
Jan Beich
4f8cd084e4 devel/android-tools-{adb,fastboot}: update to 6.0.0.r1 (marshmallow)
- Integrate most changes from -devel slaves (e.g. r392432, r397252)
- Get revision based on GH_TAGNAME (from JSON for releases)
- Take maintainership

Changes:	https://android.googlesource.com/platform/system/core/+log/android-5.1.1_r4..android-6.0.0_r1/adb
Changes:	https://android.googlesource.com/platform/system/core/+log/android-5.1.1_r4..android-6.0.0_r1/fastboot
Approved by:	kevlo (adb maintainer)
Differential Revision:	https://reviews.freebsd.org/D3842
2015-10-09 15:25:55 +00:00
Jan Beich
d5494a6b81 devel/android-tools-adb: add missing USE_OPENSSL for -lcrypto
Bump PORTREVISION for those who build everything against
security/openssl or security/libressl.
2015-10-09 15:25:40 +00:00
Jan Beich
d76aaa0663 devel/android-tools-*: restore CPPFLAGS support after r390135 2015-09-26 20:25:57 +00:00
Jan Beich
f29768c111 devel/android-tools-adb-devel: add unit tests like simpleperf 2015-09-18 15:42:48 +00:00
Jan Beich
f41f52c770 devel/android-tools-adb: convert to _VARS option helper
Approved by:	portmgr blanket
2015-08-28 15:08:36 +00:00
Jan Beich
b506518fb2 devel/android-tools-adb-devel: add new slave port for git master
A temporary port to facilitate testing and updating master.

While copying usb_libusb.c [1] under FILESDIR clean it up:
- Add static keyword for file-local functions
- Fix const usage exposed in C++ mode [2]
- Fix casting 3rd argument of libusb_bulk_transfer(3) exposed in C++ mode
- Fix inconsistent whitespace: trailing, tabs + spaces, bogus indentation
- Fix typo in usb_kick() trace message
- Fix fprintf(3) warning in scan_usb_devices() trace message
- Convert err(3) usage to fatal_errno()
- Drop BSDism of sysexits(3)
- Drop unecessary struct keyword
- Drop unused headers [2]
- Explicitly include <signal.h> header

And chase the following commits:
https://android.googlesource.com/platform/system/core/+/506aea4%5E!/ [1]
https://android.googlesource.com/platform/system/core/+/dc3b459%5E!/#F3
https://android.googlesource.com/platform/system/core/+/9b0f354%5E!/#F5
https://android.googlesource.com/platform/system/core/+/cf07494%5E!/#F8
https://android.googlesource.com/platform/system/core/+/3313426%5E!/#F20
https://android.googlesource.com/platform/system/core/+/7664901%5E!/#F18

Changes:	https://android.googlesource.com/platform/system/core/+log/53d504f/adb
Differential Revision:	https://reviews.freebsd.org/D2870
Obtained from:	devel/android-tools-fastboot-devel (based on)
Obtained from:	OpenBSD ports [2]
Approved by:	kevlo (maintainer)
2015-06-19 17:14:53 +00:00
Jan Beich
1bee96edc7 devel/android-tools-adb: update to 5.1.1.r4
Other changes include:
- Add option to use bash(1) completion from Debian
- Install protocol and implementation documentation

Changes:	https://android.googlesource.com/platform/system/core/+log/android-5.0.0_r7..android-5.1.1_r4/adb
Differential Revision:	https://reviews.freebsd.org/D2862
Obtained from:	r389153, r389235, r389239
Approved by:	kevlo (maintainer)
2015-06-19 17:14:34 +00:00
Jan Beich
182a938f8a devel/android-tools-adb: fix "get-devpath" output
Catch up with the following upstream change:

https://android.googlesource.com/platform/system/core/+/e109d26%5E!/

Before

  $ adb get-devpath
  unknown

  $ adb devices -l
  List of devices attached
  ABCD1234             device product:A1 model:Blah device:foo

After

  $ adb get-devpath
  ugen1.2

  $ adb devices -l
  List of devices attached
  ABCD1234             device ugen1.2 product:A1 model:Blah device:foo

Differential Revision:	https://reviews.freebsd.org/D2862
Obtained from:	r389471 (based on)
Approved by:	kevlo (maintainer)
2015-06-19 17:14:17 +00:00
Jan Beich
17f90e4b96 devel/android-tools-adb: convert to BSD-style Makefile
- Supports building with multiple jobs
- No longer depends on devel/gmake

Differential Revision:	https://reviews.freebsd.org/D2862
Obtained from:	devel/android-tools-fastboot (based on)
Approved by:	kevlo (maintainer)
2015-06-19 17:13:59 +00:00
Mathieu Arnold
90a49f0472 Cleanup USE_GITHUB usage.
With hat:	portmgr
Sponsored by:	Absolight
2015-05-30 21:25:06 +00:00
Mathieu Arnold
c6457ffef4 Update ports in the [bcd]* categories to not use GH_COMMIT.
With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
2015-05-06 15:16:53 +00:00
Kevin Lo
e2c11fee20 Update to 5.0.0_r7.
PR:	195171
Submitted by:	me at janh dot de
2014-11-20 04:22:15 +00:00
Kevin Lo
62961568f1 Use ppp instead of pppd.
Submitted by:	Andreas Obermaier <andreas at port22 dot net>
2014-09-27 15:02:19 +00:00