From 4eb65aac58240c6314d6787347b0952b6d267c08 Mon Sep 17 00:00:00 2001 From: Eugen Zagorodniy Date: Mon, 27 Apr 2020 00:54:06 +0300 Subject: [PATCH] New package: libmsp430-3.15.0.1 --- common/shlibs | 1 + srcpkgs/libmsp430/patches/hidapi.patch | 48 ++++++++++++++++++++++++++ srcpkgs/libmsp430/template | 24 +++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 srcpkgs/libmsp430/patches/hidapi.patch create mode 100644 srcpkgs/libmsp430/template diff --git a/common/shlibs b/common/shlibs index 60ad7fb85d5..a526e68e5b2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3862,3 +3862,4 @@ libtagparser.so.9 tagparser-9.1.2_1 libqtutilities.so.6 qtutilities-6.0.4_1 libkdsoap.so.1.9.0 KDSoap-1.9.0_1 libstoken.so.1 stoken-0.92_1 +libmsp430.so libmsp430-3.15.0.1_1 diff --git a/srcpkgs/libmsp430/patches/hidapi.patch b/srcpkgs/libmsp430/patches/hidapi.patch new file mode 100644 index 00000000000..721298f0d8a --- /dev/null +++ b/srcpkgs/libmsp430/patches/hidapi.patch @@ -0,0 +1,48 @@ +diff --git DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp +index 5b74a2a..e1358df 100644 +--- DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp ++++ DLL430_v3/src/TI/DLL430/HidUpdateManager.cpp +@@ -38,7 +38,7 @@ + #include + #include "HidUpdateManager.h" + +-#include ++#include + + #include + #include +diff --git Makefile Makefile +index a4cfbed..7c65736 100644 +--- Makefile ++++ Makefile +@@ -55,7 +55,7 @@ ifeq ($(PLATFORM),Linux) + LIBS += -lusb-1.0 + endif + +- LIBS += -lusb-1.0 -lrt -lpthread ++ LIBS += -lusb-1.0 -lrt -lpthread -lhidapi-libusb + + ifdef BOOST_DIR + INCLUDES += -I$(BOOST_DIR) +@@ -66,7 +66,7 @@ ifeq ($(PLATFORM),Linux) + BSTATIC := -Wl,-Bstatic + BDYNAMIC := -Wl,-Bdynamic + +- HIDOBJ := $(LIBTHIRD)/hid-libusb.o ++ HIDOBJ := + else + CXX:= clang++ + +diff --git ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h +index 37825c6..d1105ed 100644 +--- ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h ++++ ThirdParty/BSL430_DLL/BSL430_DLL/Physical_Interfaces/MSPBSL_PhysicalInterfaceUSB.h +@@ -38,7 +38,7 @@ + + #pragma once + +-#include ++#include + + #include "MSPBSL_PhysicalInterface.h" + diff --git a/srcpkgs/libmsp430/template b/srcpkgs/libmsp430/template new file mode 100644 index 00000000000..5f52db63fb1 --- /dev/null +++ b/srcpkgs/libmsp430/template @@ -0,0 +1,24 @@ +# Template file for 'libmsp430' +pkgname=libmsp430 +version=3.15.0.1 +revision=1 +short_desc="Static library & embedded firmware for MSP430 & MSP432 devices" +maintainer="Eugen Zagorodniy " +license=BSD-3-Clause +homepage=https://www.ti.com/tool/MSPDS + +distfiles="http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPDS/3_15_0_000/export/MSPDebugStack_OS_Package_${version//./_}.zip" +checksum=31f8f66ce9f9156bcb550adf3937ebf44ad7995bef2517f2b09e408be947c4c5 +create_wrksrc=yes +archs="x86_64 i686 x86_64-musl" + +makedepends="boost-devel hidapi-devel" + +do_build() { + make +} + +do_install() { + vinstall $pkgname.so 755 /usr/lib + vlicense MSPDebugStackOpenSourcePackage_manifest.html +}