From owner-svn-ports-head@freebsd.org Fri Dec 1 21:38:05 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 76C8AE6BA59; Fri, 1 Dec 2017 21:38:05 +0000 (UTC) (envelope-from leres@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 4CDE771EEC; Fri, 1 Dec 2017 21:38:05 +0000 (UTC) (envelope-from leres@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB1Lc4t0070025; Fri, 1 Dec 2017 21:38:04 GMT (envelope-from leres@FreeBSD.org) Received: (from leres@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB1Lc3LG070020; Fri, 1 Dec 2017 21:38:03 GMT (envelope-from leres@FreeBSD.org) Message-Id: <201712012138.vB1Lc3LG070020@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: leres set sender to leres@FreeBSD.org using -f From: Craig Leres Date: Fri, 1 Dec 2017 21:38:03 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r455312 - in head/devel: . arduino-bsd-mk X-SVN-Group: ports-head X-SVN-Commit-Author: leres X-SVN-Commit-Paths: in head/devel: . arduino-bsd-mk X-SVN-Commit-Revision: 455312 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Dec 2017 21:38:05 -0000 Author: leres Date: Fri Dec 1 21:38:03 2017 New Revision: 455312 URL: https://svnweb.freebsd.org/changeset/ports/455312 Log: This adds devel/arduino-bsd-mk which installs a make(1) makefile (bsd.arduino.mk) that is used to build Arduino sketches from the command line. It is designed to be a FreeBSD-friendly alternative to the existing gmake based devel/arduino-mk port. It includes a man page and optionally installs an example sketch with an exmaple Makefile. Reviewed by: matthew (mentor) Approved by: matthew (mentor) Differential Revision: https://reviews.freebsd.org/D13262 Added: head/devel/arduino-bsd-mk/ head/devel/arduino-bsd-mk/Makefile (contents, props changed) head/devel/arduino-bsd-mk/distinfo (contents, props changed) head/devel/arduino-bsd-mk/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Dec 1 21:33:03 2017 (r455311) +++ head/devel/Makefile Fri Dec 1 21:38:03 2017 (r455312) @@ -116,6 +116,7 @@ SUBDIR += arcanist SUBDIR += arduino SUBDIR += arduino-avrdude + SUBDIR += arduino-bsd-mk SUBDIR += arduino-builder SUBDIR += arduino-core SUBDIR += arduino-ctags Added: head/devel/arduino-bsd-mk/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-bsd-mk/Makefile Fri Dec 1 21:38:03 2017 (r455312) @@ -0,0 +1,44 @@ +# Created by: Craig Leres +# $FreeBSD$ + +PORTNAME= arduino-bsd-mk +PORTVERSION= 1.0 +CATEGORIES= devel +MASTER_SITES= https://xse.com/leres/arduino/arduino-bsd-mk/ \ + LOCAL/leres/arduino-bsd-mk + +MAINTAINER= leres@FreeBSD.org +COMMENT= Build Arduino sketches from the command line on FreeBSD + +LICENSE= BSD2CLAUSE + +RUN_DEPENDS= arduino:devel/arduino \ + avr-gcc:devel/avr-gcc + +USES= python:2.7,run shebangfix + +SHEBANG_FILES= arduino-boards.py + +NO_BUILD= yes +NO_MTREE= yes + +PORTEXAMPLES= * + +PLIST_FILES= ${ALL_FILES} ${ALL_SCRIPTS:R} man/man7/bsd.arduino.mk.7.gz + +OPTIONS_DEFINE+= EXAMPLES + +ALL_FILES= arduino-bsd-mk/bsd.arduino.mk + +ALL_SCRIPTS= arduino-bsd-mk/scripts/arduino-boards.py \ + arduino-bsd-mk/scripts/arduino-version.sh \ + arduino-bsd-mk/scripts/gcc-version.sh + +pre-patch: + # Honor PREFIX in the man page + ${REINPLACE_CMD} -e 's,/usr/local/,${PREFIX}/,' ${WRKSRC}/bsd.arduino.mk.7 + +post-install: + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}$/${EXAMPLESDIR}) + +.include Added: head/devel/arduino-bsd-mk/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-bsd-mk/distinfo Fri Dec 1 21:38:03 2017 (r455312) @@ -0,0 +1,3 @@ +TIMESTAMP = 1511936799 +SHA256 (arduino-bsd-mk-1.0.tar.gz) = 4c66f1e9a76760c8fb6e0f809f0f484524be05ec4e1cc30c293c0fe262e37549 +SIZE (arduino-bsd-mk-1.0.tar.gz) = 9135 Added: head/devel/arduino-bsd-mk/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-bsd-mk/pkg-descr Fri Dec 1 21:38:03 2017 (r455312) @@ -0,0 +1,8 @@ +Arduino from the command line on FreeBSD + +This is a makefile written by Craig Leres that makes it possible +to build Arduino sketches with FreeBSD make from the command line. +It includes an example sketch and Makefile which is optionally +installed in share/examples/arduino-bsd-mk + +WWW: https://xse.com/leres/arduino/arduino-bsd-mk/