From owner-svn-ports-all@FreeBSD.ORG Sat Feb 15 13:44:02 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9699748B; Sat, 15 Feb 2014 13:44:02 +0000 (UTC) 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)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 74839185C; Sat, 15 Feb 2014 13:44:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1FDi2sg028784; Sat, 15 Feb 2014 13:44:02 GMT (envelope-from lev@svn.freebsd.org) Received: (from lev@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1FDi1G7028773; Sat, 15 Feb 2014 13:44:01 GMT (envelope-from lev@svn.freebsd.org) Message-Id: <201402151344.s1FDi1G7028773@svn.freebsd.org> From: "Lev A. Serebryakov" Date: Sat, 15 Feb 2014 13:44:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344388 - in head/devel: . lm4tools lm4tools/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.17 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: Sat, 15 Feb 2014 13:44:02 -0000 Author: lev Date: Sat Feb 15 13:44:00 2014 New Revision: 344388 URL: http://svnweb.freebsd.org/changeset/ports/344388 QAT: https://qat.redports.org/buildarchive/r344388/ Log: Add m4tools -- tools to wrok with TI / Stellaris ARM microcontrollers and JTAG variant. Added: head/devel/lm4tools/ head/devel/lm4tools/Makefile (contents, props changed) head/devel/lm4tools/distinfo (contents, props changed) head/devel/lm4tools/files/ head/devel/lm4tools/files/patch-lm4flash--Makefile (contents, props changed) head/devel/lm4tools/files/patch-lmicdiusb--Makefile (contents, props changed) head/devel/lm4tools/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Feb 15 13:26:32 2014 (r344387) +++ head/devel/Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -1156,6 +1156,7 @@ SUBDIR += llvm32 SUBDIR += llvm33 SUBDIR += llvm34 + SUBDIR += lm4tools SUBDIR += lmdbg SUBDIR += lndir SUBDIR += lockfree-malloc Added: head/devel/lm4tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= lm4tools +PORTVERSION= 0.1.3 +CATEGORIES= devel + +MAINTAINER= lev@FreeBSD.org +COMMENT= TI Tiva C ARM microcontroller tools + +LICENSE= GPLv2 TIBSD +LICENSE_COMB= multi +LICENSE_NAME_TIBSD= Texas Instruments Software License Agreement +LICENSE_FILE_TIBSD= ${WRKSRC}/lmicdiusb/license.txt +LICENSE_PERMS_TIBSD= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +USE_GITHUB= yes +GH_ACCOUNT= utzig +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= 1cfd813 + +USES= gmake + +PLIST_FILES= bin/lm4flash bin/lmicdi + +.include + +do-build: + @${GMAKE} -C ${WRKSRC}/lm4flash all + @${GMAKE} -C ${WRKSRC}/lmicdiusb all + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/lm4flash/lm4flash ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/lmicdiusb/lmicdi ${STAGEDIR}${PREFIX}/bin/ + +.include Added: head/devel/lm4tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/distinfo Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,2 @@ +SHA256 (lm4tools-0.1.3.tar.gz) = 6ddac399f13498902eb4c797add4f88366c369f7e60171ac5f44365b73ef9ada +SIZE (lm4tools-0.1.3.tar.gz) = 25423 Added: head/devel/lm4tools/files/patch-lm4flash--Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/files/patch-lm4flash--Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,18 @@ +--- lm4flash/Makefile.orig 2013-09-24 05:12:04.000000000 +0400 ++++ lm4flash/Makefile 2014-01-24 13:17:54.000000000 +0400 +@@ -1,12 +1,12 @@ + EXE := lm4flash + +-CFLAGS := -Wall -g -O2 $(shell pkg-config --cflags libusb-1.0) +-LDFLAGS := $(shell pkg-config --libs libusb-1.0) ++CFLAGS := -Wall -g -O2 ++LDFLAGS := -lusb + + all: $(EXE) + + $(EXE): $(EXE).c +- gcc $(CFLAGS) $^ $(LDFLAGS) -o $@ ++ $(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + + clean: + rm -f *.o $(EXE) Added: head/devel/lm4tools/files/patch-lmicdiusb--Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/files/patch-lmicdiusb--Makefile Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,15 @@ +--- lmicdiusb/Makefile.orig 2013-09-24 05:12:04.000000000 +0400 ++++ lmicdiusb/Makefile 2014-01-24 13:20:08.000000000 +0400 +@@ -43,6 +43,12 @@ + LDFLAGS += -framework AppKit -framework Carbon -framework IOKit + endif + ++ifeq ($(shell uname),FreeBSD) ++ LIBUSB_CFLAGS := ++ LIBUSB_LIBDIR := /usr/lib ++ LIBUSB_LIBS := -lusb ++endif ++ + ifeq ($(shell uname),Linux) + LIBUSB_CFLAGS ?= $(shell pkg-config --cflags libusb-1.0) + LIBUSB_LIBDIR ?= $(shell pkg-config --variable=libdir libusb-1.0) Added: head/devel/lm4tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/lm4tools/pkg-descr Sat Feb 15 13:44:00 2014 (r344388) @@ -0,0 +1,13 @@ + Some tools which enable multi-platform development on the TI Stellaris +Launchpad boards. The Stellaris Launchpad is a low cost development board +created by Texas Instruments that comes with an ARM Cortex-M4F processor. + +Included tools: + + lm4flash Command-line firmware flashing tool using libusb-1.0 + to communicate with the Stellaris Launchpad ICDI. + + lmicdiusb TCP/USB bridge created by TI, letting GDB communicate with + the Stellaris Launchpad ICDI. + +WWW: https://launchpad.net/gcc-arm-embedded