From ae035f21e38f9b2d03843de4f80e31cf839abf07 Mon Sep 17 00:00:00 2001 From: Benjamin Calderon Date: Fri, 16 Jun 2023 09:52:19 -0400 Subject: [PATCH] New package: mspds-3.15.1 --- srcpkgs/mspds/patches/Makefile.patch | 11 +++++++++++ srcpkgs/mspds/template | 24 ++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/mspds/patches/Makefile.patch create mode 100644 srcpkgs/mspds/template diff --git a/srcpkgs/mspds/patches/Makefile.patch b/srcpkgs/mspds/patches/Makefile.patch new file mode 100644 index 000000000000..ad18f62931c0 --- /dev/null +++ b/srcpkgs/mspds/patches/Makefile.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -66,7 +66,7 @@ + BSTATIC := -Wl,-Bstatic + BDYNAMIC := -Wl,-Bdynamic + +- HIDOBJ := $(LIBTHIRD)/hid-libusb.o ++ HIDOBJ := -lhidapi-libusb + else + CXX:= clang++ + diff --git a/srcpkgs/mspds/template b/srcpkgs/mspds/template new file mode 100644 index 000000000000..d5dc73643b4a --- /dev/null +++ b/srcpkgs/mspds/template @@ -0,0 +1,24 @@ +# Template file for 'mspds' +pkgname=mspds +version=3.15.1.1 +revision=1 +archs="x86_64 i686" +makedepends="boost-devel hidapi-devel" +depends="hidapi" +short_desc="Texas Instrumets MSP Debug Stack" +maintainer="Benjamin Calderon " +license="GPL-3.0-or-later" +homepage="https://www.ti.com/tool/MSPDS" +distfiles="https://dr-download.ti.com/software-development/driver-or-library/MD-4vnqcP1Wk4/3.15.1.1/MSPDebugStack_OS_Package_3_15_1_1.zip" +checksum=e3a59a98c43de7a92e5814d8c3304026165e6d2551e60acaca1f08c6b1a4bac8 +tags="tilib libmsp430" + +do_build() { + ln -s ${XBPS_CROSS_BASE}/usr/include/hidapi/hidapi.h ThirdParty/include/ + + make ${makejobs} +} + +do_install() { + vcopy ${wrksrc}/libmsp430.so /usr/lib +}