diff options
author | kevlo <kevlo@FreeBSD.org> | 2013-08-01 18:05:27 +0800 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2013-08-01 18:05:27 +0800 |
commit | b8159340a036bf1c27e05d17fe5db50d6e410cb8 (patch) | |
tree | 0d5de5944c3630f0e6e9df0a0b0b62e885532a0f /devel | |
parent | d926992e0002c3d497e0543f623158de62c58872 (diff) | |
download | freebsd-ports-gnome-b8159340a036bf1c27e05d17fe5db50d6e410cb8.tar.gz freebsd-ports-gnome-b8159340a036bf1c27e05d17fe5db50d6e410cb8.tar.zst freebsd-ports-gnome-b8159340a036bf1c27e05d17fe5db50d6e410cb8.zip |
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.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/android-tools-adb/Makefile | 26 | ||||
-rw-r--r-- | devel/android-tools-adb/distinfo | 2 | ||||
-rw-r--r-- | devel/android-tools-adb/files/Makefile | 56 | ||||
-rw-r--r-- | devel/android-tools-adb/files/patch-sysdeps.h | 11 | ||||
-rw-r--r-- | devel/android-tools-adb/files/patch-usb_libusb.c | 11 | ||||
-rw-r--r-- | devel/android-tools-adb/pkg-descr | 5 |
7 files changed, 112 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 88e4f35ebb5b..d699ccb66caf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -51,6 +51,7 @@ SUBDIR += alf SUBDIR += allegro SUBDIR += allegro-devel + SUBDIR += android-tools-adb SUBDIR += anjuta SUBDIR += anjuta-extras SUBDIR += antlr diff --git a/devel/android-tools-adb/Makefile b/devel/android-tools-adb/Makefile new file mode 100644 index 000000000000..9e0d315e0dc9 --- /dev/null +++ b/devel/android-tools-adb/Makefile @@ -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> diff --git a/devel/android-tools-adb/distinfo b/devel/android-tools-adb/distinfo new file mode 100644 index 000000000000..5f75acc63632 --- /dev/null +++ b/devel/android-tools-adb/distinfo @@ -0,0 +1,2 @@ +SHA256 (android-platform_system_core-9cbdf50.tar.gz) = 0961284d35ca1fc8a9509fcc4d103d1ad9597516797e80590df0bbaff236322b +SIZE (android-platform_system_core-9cbdf50.tar.gz) = 1000858 diff --git a/devel/android-tools-adb/files/Makefile b/devel/android-tools-adb/files/Makefile new file mode 100644 index 000000000000..ad9a65dfc47b --- /dev/null +++ b/devel/android-tools-adb/files/Makefile @@ -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 diff --git a/devel/android-tools-adb/files/patch-sysdeps.h b/devel/android-tools-adb/files/patch-sysdeps.h new file mode 100644 index 000000000000..59c312f981f8 --- /dev/null +++ b/devel/android-tools-adb/files/patch-sysdeps.h @@ -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> diff --git a/devel/android-tools-adb/files/patch-usb_libusb.c b/devel/android-tools-adb/files/patch-usb_libusb.c new file mode 100644 index 000000000000..8af304b4f29c --- /dev/null +++ b/devel/android-tools-adb/files/patch-usb_libusb.c @@ -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 diff --git a/devel/android-tools-adb/pkg-descr b/devel/android-tools-adb/pkg-descr new file mode 100644 index 000000000000..72e26f31c75a --- /dev/null +++ b/devel/android-tools-adb/pkg-descr @@ -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 |