From dced7b6dfeeee59fb1833d48d8415ab8ee172b2a 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 | 21 +++++++++++ 3 files changed, 70 insertions(+) create mode 100644 srcpkgs/libmsp430/patches/hidapi.patch create mode 100644 srcpkgs/libmsp430/template diff --git a/common/shlibs b/common/shlibs index 1680de6d764..39874a080b0 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3860,3 +3860,4 @@ libc++utilities.so.5 cpp-utilities-5.2.0_1 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 +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..62ce618ad54 --- /dev/null +++ b/srcpkgs/libmsp430/template @@ -0,0 +1,21 @@ +pkgname=libmsp430 +version=3.15.0.1 +revision=1 +homepage=https://www.ti.com/tool/MSPDS +short_desc="Static library & embedded firmware for MSP430 & MSP432 devices" +license=BSD-3-Clause +maintainer="Eugen Zagorodniy " + +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 + +makedepends="boost-devel hidapi-devel" + +do_build() { + make +} + +do_install() { + vinstall $pkgname.so 755 /usr/lib +}