diff options
author | jbeich <jbeich@FreeBSD.org> | 2015-06-20 01:13:59 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2015-06-20 01:13:59 +0800 |
commit | 073c72ea976b16fff0df032c253d9f88a5e4622c (patch) | |
tree | add5046dd02cc864647d836335126ca8415ab0a7 /devel | |
parent | 325602098df131ba7d5272901aa5aa21f7739817 (diff) | |
download | freebsd-ports-gnome-073c72ea976b16fff0df032c253d9f88a5e4622c.tar.gz freebsd-ports-gnome-073c72ea976b16fff0df032c253d9f88a5e4622c.tar.zst freebsd-ports-gnome-073c72ea976b16fff0df032c253d9f88a5e4622c.zip |
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)
Diffstat (limited to 'devel')
-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> |