From owner-svn-ports-all@freebsd.org Sun Nov 1 11:01:06 2015 Return-Path: <owner-svn-ports-all@freebsd.org> Delivered-To: svn-ports-all@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 C50D0A21741; Sun, 1 Nov 2015 11:01:06 +0000 (UTC) (envelope-from lev@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 99CF61E10; Sun, 1 Nov 2015 11:01:06 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tA1B15q6051151; Sun, 1 Nov 2015 11:01:05 GMT (envelope-from lev@FreeBSD.org) Received: (from lev@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tA1B15eR051144; Sun, 1 Nov 2015 11:01:05 GMT (envelope-from lev@FreeBSD.org) Message-Id: <201511011101.tA1B15eR051144@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lev set sender to lev@FreeBSD.org using -f From: "Lev A. Serebryakov" <lev@FreeBSD.org> Date: Sun, 1 Nov 2015 11:01:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r400605 - in head/devel: . msp430-debug-stack msp430-debug-stack/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 <svn-ports-all.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/svn-ports-all>, <mailto:svn-ports-all-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-all/> List-Post: <mailto:svn-ports-all@freebsd.org> List-Help: <mailto:svn-ports-all-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/svn-ports-all>, <mailto:svn-ports-all-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 01 Nov 2015 11:01:07 -0000 Author: lev Date: Sun Nov 1 11:01:04 2015 New Revision: 400605 URL: https://svnweb.freebsd.org/changeset/ports/400605 Log: Add new port: Texas Instrument's MSP430 debug interface library. Added: head/devel/msp430-debug-stack/ head/devel/msp430-debug-stack/Makefile (contents, props changed) head/devel/msp430-debug-stack/distinfo (contents, props changed) head/devel/msp430-debug-stack/files/ head/devel/msp430-debug-stack/files/patch-Makefile (contents, props changed) head/devel/msp430-debug-stack/files/patch-ThirdParty_BSL430__DLL_Makefile (contents, props changed) head/devel/msp430-debug-stack/pkg-descr (contents, props changed) head/devel/msp430-debug-stack/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Nov 1 10:49:53 2015 (r400604) +++ head/devel/Makefile Sun Nov 1 11:01:04 2015 (r400605) @@ -1488,6 +1488,7 @@ SUBDIR += msgpack SUBDIR += msgpuck SUBDIR += msp430-binutils + SUBDIR += msp430-debug-stack SUBDIR += msp430-gcc SUBDIR += msp430-gdb SUBDIR += msp430-libc Added: head/devel/msp430-debug-stack/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/Makefile Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= msp430-debug-stack +PORTVERSION= 3.05.01.01 +CATEGORIES= devel +MASTER_SITES= http://www.ti.com/lit/sw/slac460n/ \ + http://www.ti.com/lit/ug/slau320u/:doc1 \ + http://www.ti.com/lit/ug/slau656/:doc2 +DISTFILES= slac460n.zip \ + slau320u.pdf:doc1 \ + slau656.pdf:doc2 +DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} +EXTRACT_ONLY= slac460n.zip + +MAINTAINER= lev@FreeBSD.org +COMMENT= TI MSP430 debugging interface library + +LICENSE= BSD3CLAUSE + +LIB_DEPENDS= libboost_filesystem.so:${PORTSDIR}/devel/boost-libs \ + libhidapi.so:${PORTSDIR}/comms/hidapi + +USES= compiler:c++0x gmake zip:infozip +USE_LDCONFIG= yes + +WRKSRC= ${WRKDIR}/MSPDebugStack_OS_Package + +MAKE_ARGS+= BOOST_DIR=${LOCALBASE} \ + HIDAPI_DIR=${LOCALBASE} + +MAKE_JOBS_UNSAFE= yes + +.include <bsd.port.pre.mk> + +do-install: + ${INSTALL_LIB} ${WRKSRC}/libmsp430.so ${STAGEDIR}${PREFIX}/lib/libmsp430.so + ${MKDIR} ${STAGEDIR}${PREFIX}/include/libmsp430 + ${INSTALL_DATA} ${WRKSRC}/DLL430_v3/include/* ${STAGEDIR}${PREFIX}/include/libmsp430/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau320u.pdf ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/slau656.pdf ${STAGEDIR}${DOCSDIR}/ + +.include <bsd.port.post.mk> Added: head/devel/msp430-debug-stack/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/distinfo Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,6 @@ +SHA256 (msp430-debug-stack-3.05.01.01/slac460n.zip) = 181418a33400567fa19e411f16df340a2869dd87e941e517732280004ee0fed7 +SIZE (msp430-debug-stack-3.05.01.01/slac460n.zip) = 2016397 +SHA256 (msp430-debug-stack-3.05.01.01/slau320u.pdf) = 3235ad7400e2f87900e77c3411dc68b1be62c1641600519d94db2c01d4cfd7a0 +SIZE (msp430-debug-stack-3.05.01.01/slau320u.pdf) = 828272 +SHA256 (msp430-debug-stack-3.05.01.01/slau656.pdf) = bce7331403362b57a262273e6de53d6d0cde3648b64c29554f5f19e8e269d4be +SIZE (msp430-debug-stack-3.05.01.01/slau656.pdf) = 503140 Added: head/devel/msp430-debug-stack/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/files/patch-Makefile Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,47 @@ +--- Makefile.orig 2015-04-22 11:58:28 UTC ++++ Makefile +@@ -16,6 +16,7 @@ MAKE_PCH += -x c++-header + USE_PCH += -include $(PCH_HEADER) + + export BOOST_DIR ++export HIDAPI_DIR + export BIT32 + export STATIC + export DEBUG +@@ -73,14 +74,14 @@ ifeq ($(PLATFORM),Linux) + + HIDOBJ := $(LIBTHIRD)/hid-libusb.o + else +- CXX:= clang++ ++# CXX:= clang++ + +- OUTPUT := libmsp430.dylib ++ OUTPUT := libmsp430.so + + ifdef STATIC +- STATIC_LIBS += -framework CoreFoundation -framework IOKit -lhidapi ++ STATIC_LIBS += -lhidapi + else +- LIBS += -framework CoreFoundation -framework IOKit -lhidapi ++ LIBS += -lhidapi + endif + + ifdef BOOST_DIR +@@ -88,9 +89,14 @@ else + LIBDIRS += -L$(BOOST_DIR)/lib + endif + +- OUTNAME := -install_name +- BSTATIC := +- BDYNAMIC := ++ ifdef HIDAPI_DIR ++ INCLUDES += -I$(HIDAPI_DIR)/include/hidapi ++ LIBDIRS += -L$(HIDAPI_DIR)/lib ++ endif ++ ++ OUTNAME := -Wl,-soname, ++ BSTATIC := -Wl,-Bstatic ++ BDYNAMIC := -Wl,-Bdynamic + + HIDOBJ := + endif Added: head/devel/msp430-debug-stack/files/patch-ThirdParty_BSL430__DLL_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/files/patch-ThirdParty_BSL430__DLL_Makefile Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,19 @@ +--- ThirdParty/BSL430_DLL/Makefile.orig 2015-04-22 12:01:02 UTC ++++ ThirdParty/BSL430_DLL/Makefile +@@ -47,11 +47,15 @@ ifeq ($(PLATFORM),Linux) + INCLUDES += -I$(BOOST_DIR) + endif + else +- CXX:= clang++ ++# CXX:= clang++ + + ifdef BOOST_DIR + INCLUDES += -I$(BOOST_DIR)/include + endif ++ ifdef HIDAPI_DIR ++ INCLUDES += -I$(HIDAPI_DIR)/include/hidapi ++ LIBDIRS += -L$(HIDAPI_DIR)/lib ++ endif + endif + + all: $(OBJS) Added: head/devel/msp430-debug-stack/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/pkg-descr Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,3 @@ +TI MSP430 debugging interface library + +WWW: http://www.ti.com/tool/mspds Added: head/devel/msp430-debug-stack/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/msp430-debug-stack/pkg-plist Sun Nov 1 11:01:04 2015 (r400605) @@ -0,0 +1,10 @@ +include/libmsp430/DLL430_SYMBOL.h +include/libmsp430/MSP430.h +include/libmsp430/MSP430_Debug.h +include/libmsp430/MSP430_EEM.h +include/libmsp430/MSP430_EnergyTrace.h +include/libmsp430/MSP430_FET.h +include/libmsp430/MSP430_HIL.h +lib/libmsp430.so +%%PORTDOCS%%%%DOCSDIR%%/slau320u.pdf +%%PORTDOCS%%%%DOCSDIR%%/slau656.pdf