Commit b8159340 authored by kevlo's avatar kevlo
Browse files

Import Android adb tool.

Android Debug Bridge (adb) is a versatile command line tool that
lets you communicate with an emulator instance or connected
Android-powered device.
parent d926992e
......@@ -51,6 +51,7 @@
SUBDIR += alf
SUBDIR += allegro
SUBDIR += allegro-devel
SUBDIR += android-tools-adb
SUBDIR += anjuta
SUBDIR += anjuta-extras
SUBDIR += antlr
......
# $FreeBSD$
PORTNAME= android-tools-adb
PORTVERSION= 4.3
CATEGORIES= devel
DISTNAME= android-platform_system_core-${GH_COMMIT}
MAINTAINER= kevlo@FreeBSD.org
COMMENT= Android debug bridge command line tool
LICENSE= AL2
USE_GITHUB= yes
GH_ACCOUNT= android
GH_PROJECT= platform_system_core
GH_TAGNAME= android-4.3_r2.1
GH_COMMIT= 9cbdf50
USES= gmake
WRKSRC= ${WRKDIR}/${DISTNAME}/adb
MAKEFILE= ${FILESDIR}/Makefile
MAKE_JOBS_UNSAFE= yes
PLIST_FILES= bin/adb
.include <bsd.port.mk>
SHA256 (android-platform_system_core-9cbdf50.tar.gz) = 0961284d35ca1fc8a9509fcc4d103d1ad9597516797e80590df0bbaff236322b
SIZE (android-platform_system_core-9cbdf50.tar.gz) = 1000858
# $FreeBSD$
SRCS+= adb.c
SRCS+= adb_client.c
SRCS+= adb_auth_host.c
SRCS+= commandline.c
SRCS+= console.c
SRCS+= file_sync_client.c
SRCS+= fdevent.c
SRCS+= get_my_path_freebsd.c
SRCS+= services.c
SRCS+= sockets.c
SRCS+= transport.c
SRCS+= transport_local.c
SRCS+= transport_usb.c
SRCS+= usb_libusb.c
SRCS+= usb_vendors.c
SRCS+= utils.c
VPATH+= ../libcutils
SRCS+= abort_socket.c
SRCS+= socket_inaddr_any_server.c
SRCS+= socket_local_client.c
SRCS+= socket_local_server.c
SRCS+= socket_loopback_client.c
SRCS+= socket_loopback_server.c
SRCS+= socket_network_client.c
SRCS+= list.c
SRCS+= load_file.c
VPATH+= ../libzipfile
SRCS+= centraldir.c
SRCS+= zipfile.c
CPPFLAGS+= -DADB_HOST=1
CPPFLAGS+= -DHAVE_FORKEXEC=1
CPPFLAGS+= -DHAVE_SYMLINKS
CPPFLAGS+= -DHAVE_TERMIO_H
CPPFLAGS+= -I.
CPPFLAGS+= -I../include
LIBS+= -lc -pthread -lz -lcrypto -lusb
OBJS= $(SRCS:.c=.o)
all: adb
adb: $(OBJS)
$(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
install: adb
${BSD_INSTALL_PROGRAM} adb ${PREFIX}/bin/
clean:
rm -rf $(OBJS) adb
--- sysdeps.h.orig 2013-08-01 17:13:17.000000000 +0800
+++ sysdeps.h 2013-08-01 17:13:39.000000000 +0800
@@ -264,6 +264,8 @@
#include <cutils/properties.h>
#include <cutils/misc.h>
#include <signal.h>
+#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <fcntl.h>
--- usb_libusb.c.orig 2013-08-01 17:14:17.000000000 +0800
+++ usb_libusb.c 2013-08-01 17:14:46.000000000 +0800
@@ -37,7 +37,7 @@
#define TRACE_TAG TRACE_USB
#include "adb.h"
-static adb_mutex_t usb_lock = ADB_MUTEX_INITIALIZER;
+ADB_MUTEX_DEFINE( usb_lock );
static libusb_context *ctx = NULL;
struct usb_handle
Android Debug Bridge (adb) is a versatile command line tool that
lets you communicate with an emulator instance or connected
Android-powered device.
WWW: http://developer.android.com/tools/help/adb.html
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment