From owner-svn-ports-all@FreeBSD.ORG Thu Jun 18 22:45:37 2015 Return-Path: Delivered-To: svn-ports-all@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 153AE3DA; Thu, 18 Jun 2015 22:45:37 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EAB91D11; Thu, 18 Jun 2015 22:45:36 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5IMjarj093646; Thu, 18 Jun 2015 22:45:36 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5IMjZ2h093638; Thu, 18 Jun 2015 22:45:35 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201506182245.t5IMjZ2h093638@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 18 Jun 2015 22:45:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390085 - in head/devel: . android-tools-fastboot android-tools-fastboot-devel android-tools-fastboot-devel/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 22:45:37 -0000 Author: jbeich Date: Thu Jun 18 22:45:34 2015 New Revision: 390085 URL: https://svnweb.freebsd.org/changeset/ports/390085 Log: devel/android-tools-fastboot-devel: add new slave port for git master A temporary port to facilitate testing and updating master. Changes: https://android.googlesource.com/platform/system/core/+log/53d504f/fastboot Added: head/devel/android-tools-fastboot-devel/ head/devel/android-tools-fastboot-devel/Makefile (contents, props changed) head/devel/android-tools-fastboot-devel/distinfo (contents, props changed) head/devel/android-tools-fastboot-devel/files/ head/devel/android-tools-fastboot-devel/files/Makefile (contents, props changed) head/devel/android-tools-fastboot-devel/files/patch-base_file.cpp (contents, props changed) head/devel/android-tools-fastboot-devel/files/patch-liblog_logd__write.c (contents, props changed) Modified: head/devel/Makefile (contents, props changed) head/devel/android-tools-fastboot/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Thu Jun 18 22:22:47 2015 (r390084) +++ head/devel/Makefile Thu Jun 18 22:45:34 2015 (r390085) @@ -58,6 +58,7 @@ SUBDIR += amd64-xtoolchain-gcc SUBDIR += android-tools-adb SUBDIR += android-tools-fastboot + SUBDIR += android-tools-fastboot-devel SUBDIR += anjuta SUBDIR += anjuta-extras SUBDIR += antlr Added: head/devel/android-tools-fastboot-devel/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-fastboot-devel/Makefile Thu Jun 18 22:45:34 2015 (r390085) @@ -0,0 +1,21 @@ +# $FreeBSD$ + +DISTVERSION= m-preview-122 +DISTVERSIONSUFFIX= -g53d504f +PORTREVISION= 0 +PKGNAMESUFFIX= -devel + +GH_TAGNAME= m-preview-36-gb9408ad:extras \ + m-preview-1-g06d4551:libselinux + +CONFLICTS_INSTALL= ${PORTNAME}-[0-9]* + +MASTERDIR= ${.CURDIR}/../android-tools-fastboot +DISTINFO_FILE= ${.CURDIR}/distinfo +MAKEFILE= ${.CURDIR}/files/Makefile +EXTRA_PATCHES+= ${.CURDIR}/files/patch-* + +USES= compiler:c++11-lib +CFLAGS+= -DFASTBOOT_REVISION='\"${DISTVERSIONFULL}\"' + +.include "${MASTERDIR}/Makefile" Added: head/devel/android-tools-fastboot-devel/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-fastboot-devel/distinfo Thu Jun 18 22:45:34 2015 (r390085) @@ -0,0 +1,10 @@ +SHA256 (bash_completion.d/fastboot?id=2b8cfec) = 12ef37bff8230e5e164e4ef5b9c1be1e5518cf066a04479f61e5ebf3761d4bc4 +SIZE (bash_completion.d/fastboot?id=2b8cfec) = 3051 +SHA256 (fastboot.1?id=706e754) = 2af01b064440952a82f1602691a0fecc030302722a71444946fb70d9c423d283 +SIZE (fastboot.1?id=706e754) = 5906 +SHA256 (android-platform_system_core-android-m-preview-122-g53d504f_GH0.tar.gz) = 8d49065aff063fb02cc175c634384eb1dc9ed87b85d16e85f0c70bff01415948 +SIZE (android-platform_system_core-android-m-preview-122-g53d504f_GH0.tar.gz) = 1182976 +SHA256 (jbeich-platform_system_extras-m-preview-36-gb9408ad_GH0.tar.gz) = 012a17d90652e91d886a3b9e9770390264232e383e7c6278dd3082528f73f3dd +SIZE (jbeich-platform_system_extras-m-preview-36-gb9408ad_GH0.tar.gz) = 651518 +SHA256 (jbeich-platform_external_libselinux-m-preview-1-g06d4551_GH0.tar.gz) = 14a6193ee80f42752089232b766b3948f3ff0c321c770684163b845ed03b0a77 +SIZE (jbeich-platform_external_libselinux-m-preview-1-g06d4551_GH0.tar.gz) = 50973 Added: head/devel/android-tools-fastboot-devel/files/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-fastboot-devel/files/Makefile Thu Jun 18 22:45:34 2015 (r390085) @@ -0,0 +1,91 @@ +# $FreeBSD$ + +PROG_CXX=fastboot +BINDIR?=/usr/bin + +SRCS+= bootimg_utils.cpp +SRCS+= engine.c +SRCS+= fastboot.cpp +SRCS+= fs.c +SRCS+= protocol.c +SRCS+= util.c + +.PATH: ${FILESDIR} +SRCS+= usb_freebsd.c +SRCS+= util_freebsd.c + +# required by libziparchive +.PATH: ${.CURDIR}/../base +SRCS+= file.cpp + +# required by fastboot +.PATH: ${.CURDIR}/../ext4_utils +SRCS+= allocate.c +SRCS+= contents.c +SRCS+= crc16.c +SRCS+= ext4_sb.c +SRCS+= ext4_utils.c +SRCS+= ext4fixup.c +SRCS+= extent.c +SRCS+= indirect.c +SRCS+= make_ext4fs.c +SRCS+= sha1.c +SRCS+= wipe.c + +# required by base and libutils +.PATH: ${.CURDIR}/../liblog +SRCS+= fake_log_device.c +SRCS+= logd_write.c +CFLAGS.logd_write.c+= -DFAKE_LOG_DEVICE=1 + +# required by ext4_utils +.PATH: ${.CURDIR}/../libselinux/src +SRCS+= callbacks.c +SRCS+= check_context.c +SRCS+= freecon.c +SRCS+= init.c +SRCS+= label.c +SRCS+= label_android_property.c +SRCS+= label_file.c +CFLAGS.init.c+= -DDARWIN # statfs + +# required by fastboot and ext4_utils +.PATH: ${.CURDIR}/../libsparse +SRCS+= backed_block.c +SRCS+= output_file.c +SRCS+= sparse.c +SRCS+= sparse_crc32.c +SRCS+= sparse_err.c +SRCS+= sparse_read.c + +# required by libziparchive +.PATH: ${.CURDIR}/../libutils +SRCS+= FileMap.cpp + +# required by fastboot +.PATH: ${.CURDIR}/../libziparchive +SRCS+= zip_archive.cc + +CFLAGS+=-Doff64_t=off_t +CFLAGS+=-Dftruncate64=ftruncate +CFLAGS+=-Dlseek64=lseek +CFLAGS+=-Dmmap64=mmap +CFLAGS+=-Dpread64=pread +CFLAGS+=-I${.CURDIR} +CFLAGS+=-I${.CURDIR}/../include +CFLAGS+=-I${.CURDIR}/../mkbootimg +CFLAGS+=-I${.CURDIR}/../base/include +CFLAGS+=-I${.CURDIR}/../ext4_utils +CFLAGS+=-I${.CURDIR}/../f2fs_utils +CFLAGS+=-I${.CURDIR}/../libselinux/include +CFLAGS+=-I${.CURDIR}/../libsparse/include +CFLAGS+=${CFLAGS.${.IMPSRC:T}} + +CXXFLAGS+=-D__STDC_LIMIT_MACROS # DragonFly +CXXFLAGS+=-std=gnu++11 +CXXFLAGS+=${CFLAGS:N-std*} + +LDADD+= -lpcre -lusb -lz +DPADD+= ${LIBPCRE} ${LIBUSB} ${LIBZ} + +.include Added: head/devel/android-tools-fastboot-devel/files/patch-base_file.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-fastboot-devel/files/patch-base_file.cpp Thu Jun 18 22:45:34 2015 (r390085) @@ -0,0 +1,10 @@ +--- base/file.cpp.orig 2015-05-27 20:24:08 UTC ++++ base/file.cpp +@@ -21,6 +21,7 @@ + #include + #include + ++#include // strerror + #include + + #include "base/macros.h" // For TEMP_FAILURE_RETRY on Darwin. Added: head/devel/android-tools-fastboot-devel/files/patch-liblog_logd__write.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/android-tools-fastboot-devel/files/patch-liblog_logd__write.c Thu Jun 18 22:45:34 2015 (r390085) @@ -0,0 +1,12 @@ +--- liblog/logd_write.c.orig 2015-05-27 20:24:08 UTC ++++ liblog/logd_write.c +@@ -22,7 +22,9 @@ + #include + #endif + #include ++#if (FAKE_LOG_DEVICE == 0) + #include ++#endif + #include + #include + #include Modified: head/devel/android-tools-fastboot/Makefile ============================================================================== --- head/devel/android-tools-fastboot/Makefile Thu Jun 18 22:22:47 2015 (r390084) +++ head/devel/android-tools-fastboot/Makefile Thu Jun 18 22:45:34 2015 (r390085) @@ -2,8 +2,8 @@ PORTNAME= android-tools-fastboot DISTVERSIONPREFIX= android- -DISTVERSION= 5.1.1_r4 -PORTREVISION= 5 +DISTVERSION?= 5.1.1_r4 +PORTREVISION?= 5 CATEGORIES= devel MASTER_SITES= https://anonscm.debian.org/cgit/android-tools/android-tools.git/plain/debian/:bashcomp,manpage DISTFILES= bash_completion.d/fastboot?id=2b8cfec:bashcomp \ @@ -26,10 +26,12 @@ GH_ACCOUNT= android jbeich:extras,libsel GH_PROJECT= platform_system_core platform_system_extras:extras \ platform_external_libselinux:libselinux -USES= uidfix +CONFLICTS_INSTALL?= ${PORTNAME}-devel-* + +USES+= uidfix BUILD_WRKSRC= ${WRKSRC}/fastboot INSTALL_WRKSRC= ${BUILD_WRKSRC} -MAKEFILE= ${FILESDIR}/Makefile +MAKEFILE= ${.CURDIR}/files/Makefile # XXX ?= when bmake-only MAKE_ENV= FILESDIR="${FILESDIR}" BINDIR="${PREFIX}/bin" \ MANDIR="${PREFIX}/man/man" \ LIBPCRE="${LOCALBASE}/lib/libpcre.a"