Date: Thu, 1 Aug 2013 10:05:27 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r324099 - in head/devel: . android-tools-adb android-tools-adb/files Message-ID: <201308011005.r71A5Rqj044151@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Thu Aug 1 10:05:27 2013 New Revision: 324099 URL: http://svnweb.freebsd.org/changeset/ports/324099 Log: 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. Added: head/devel/android-tools-adb/ head/devel/android-tools-adb/Makefile (contents, props changed) head/devel/android-tools-adb/distinfo (contents, props changed) head/devel/android-tools-adb/files/ head/devel/android-tools-adb/files/Makefile (contents, props changed) head/devel/android-tools-adb/files/patch-sysdeps.h (contents, props changed) head/devel/android-tools-adb/files/patch-usb_libusb.c (contents, props changed) head/devel/android-tools-adb/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Aug 1 09:16:04 2013 (r324098) +++ head/devel/Makefile Thu Aug 1 10:05:27 2013 (r324099) @@ -51,6 +51,7 @@ SUBDIR += alf SUBDIR += allegro SUBDIR += allegro-devel + SUBDIR += android-tools-adb SUBDIR += anjuta SUBDIR += anjuta-extras SUBDIR += antlr Added: head/devel/android-tools-adb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/Makefile Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,26 @@ +# $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> Added: head/devel/android-tools-adb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/distinfo Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,2 @@ +SHA256 (android-platform_system_core-9cbdf50.tar.gz) = 0961284d35ca1fc8a9509fcc4d103d1ad9597516797e80590df0bbaff236322b +SIZE (android-platform_system_core-9cbdf50.tar.gz) = 1000858 Added: head/devel/android-tools-adb/files/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/files/Makefile Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,56 @@ +# $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 Added: head/devel/android-tools-adb/files/patch-sysdeps.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/files/patch-sysdeps.h Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,11 @@ +--- 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> Added: head/devel/android-tools-adb/files/patch-usb_libusb.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/files/patch-usb_libusb.c Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,11 @@ +--- 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 Added: head/devel/android-tools-adb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-adb/pkg-descr Thu Aug 1 10:05:27 2013 (r324099) @@ -0,0 +1,5 @@ +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308011005.r71A5Rqj044151>