diff options
-rw-r--r-- | devel/android-tools-adb/Makefile | 4 | ||||
-rw-r--r-- | devel/android-tools-adb/files/Makefile | 41 |
2 files changed, 19 insertions, 26 deletions
diff --git a/devel/android-tools-adb/Makefile b/devel/android-tools-adb/Makefile index f2c93a871094..2b318fa8e1f3 100644 --- a/devel/android-tools-adb/Makefile +++ b/devel/android-tools-adb/Makefile @@ -14,10 +14,10 @@ USE_GITHUB= yes GH_ACCOUNT= android GH_PROJECT= platform_system_core -USES= gmake +USES= uidfix WRKSRC_SUBDIR= adb MAKEFILE= ${FILESDIR}/Makefile -MAKE_JOBS_UNSAFE= yes +MAKE_ENV= BINDIR="${PREFIX}/bin" PLIST_FILES= bin/adb diff --git a/devel/android-tools-adb/files/Makefile b/devel/android-tools-adb/files/Makefile index 3a24aeef8e08..a7f102e45e09 100644 --- a/devel/android-tools-adb/files/Makefile +++ b/devel/android-tools-adb/files/Makefile @@ -1,5 +1,9 @@ # $FreeBSD$ +PROG= adb +NO_MAN= +BINDIR?=/usr/bin + SRCS+= adb.c SRCS+= adb_client.c SRCS+= adb_auth_host.c @@ -16,7 +20,7 @@ SRCS+= transport_usb.c SRCS+= usb_libusb.c SRCS+= usb_vendors.c -VPATH+= ../libcutils +.PATH: ${.CURDIR}/../libcutils SRCS+= socket_inaddr_any_server.c SRCS+= socket_local_client.c SRCS+= socket_local_server.c @@ -25,31 +29,20 @@ SRCS+= socket_loopback_server.c SRCS+= socket_network_client.c SRCS+= load_file.c -VPATH+= ../libzipfile +.PATH: ${.CURDIR}/../libzipfile SRCS+= centraldir.c SRCS+= zipfile.c +CFLAGS+= -DADB_HOST=1 +CFLAGS+= -DHAVE_FORKEXEC=1 +CFLAGS+= -DHAVE_SYMLINKS +CFLAGS+= -DHAVE_TERMIO_H +CFLAGS+= -DHAVE_SYS_SOCKET_H +CFLAGS+= -D_FILE_OFFSET_BITS=64 +CFLAGS+= -I${.CURDIR} +CFLAGS+= -I${.CURDIR}/../include -CPPFLAGS+= -DADB_HOST=1 -CPPFLAGS+= -DHAVE_FORKEXEC=1 -CPPFLAGS+= -DHAVE_SYMLINKS -CPPFLAGS+= -DHAVE_TERMIO_H -CPPFLAGS+= -DHAVE_SYS_SOCKET_H -CPPFLAGS+= -D_FILE_OFFSET_BITS=64 -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 ${DESTDIR}${PREFIX}/bin/ +LDADD+= -lcrypto -lpthread -lusb -lz +DPADD+= ${LIBCRYPTO} ${LIBPTHREAD} ${LIBUSB} ${LIBZ} -clean: - rm -rf $(OBJS) adb +.include <bsd.prog.mk> |