From c4c12de1237a75cd056ddc1e22ca96981b564603 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 | 26 ++++++++++++++++++++++++++ 2 files changed, 37 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..133db9b3a1a6 --- /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 -I/usr/include + else + CXX:= clang++ + diff --git a/srcpkgs/mspds/template b/srcpkgs/mspds/template new file mode 100644 index 000000000000..9abb6f21a2cd --- /dev/null +++ b/srcpkgs/mspds/template @@ -0,0 +1,26 @@ +# Template file for 'mspds' +pkgname=mspds +version=3.15.1.1 +revision=1 +archs="x86_64* i686* aarch64*" +nocross=yes +makedepends="boost-devel hidapi-devel" +short_desc="Texas Instrumets MSP Debug Stack" +maintainer="Benjamin Calderon " +license="BSD-3-Clause" +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_${version//./_}.zip" +checksum=e3a59a98c43de7a92e5814d8c3304026165e6d2551e60acaca1f08c6b1a4bac8 + +pre_build() { + ln -sf ${XBPS_CROSS_BASE}/usr/include/hidapi/hidapi.h ThirdParty/include/ +} + +do_build() { + make ${makejobs} +} + +do_install() { + vcopy libmsp430.so /usr/lib + vlicense MSPDebugStackOpenSourcePackage_manifest.html +}