summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cad/Makefile1
-rw-r--r--cad/stm32flash/Makefile22
-rw-r--r--cad/stm32flash/distinfo3
-rw-r--r--cad/stm32flash/pkg-descr4
4 files changed, 30 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 05b375fe92f8..93dab46500db 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -114,6 +114,7 @@
SUBDIR += sp2sp
SUBDIR += spice
SUBDIR += stepcode
+ SUBDIR += stm32flash
SUBDIR += sumo
SUBDIR += sweethome3d
SUBDIR += tkgate
diff --git a/cad/stm32flash/Makefile b/cad/stm32flash/Makefile
new file mode 100644
index 000000000000..026b9ce03f9e
--- /dev/null
+++ b/cad/stm32flash/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= stm32flash
+DISTVERSION= 0.5
+CATEGORIES= cad
+MASTER_SITES= SF/${PORTNAME}/
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Flash program for STM32 using the ST serial bootloader
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/gpl-2.0.txt
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+PLIST_FILES= bin/stm32flash \
+ share/man/man1/stm32flash.1.gz
+
+post-stage:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/stm32flash
+
+.include <bsd.port.mk>
diff --git a/cad/stm32flash/distinfo b/cad/stm32flash/distinfo
new file mode 100644
index 000000000000..d97e850b2a54
--- /dev/null
+++ b/cad/stm32flash/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1605686264
+SHA256 (stm32flash-0.5.tar.gz) = 97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306
+SIZE (stm32flash-0.5.tar.gz) = 41087
diff --git a/cad/stm32flash/pkg-descr b/cad/stm32flash/pkg-descr
new file mode 100644
index 000000000000..5e24060202ae
--- /dev/null
+++ b/cad/stm32flash/pkg-descr
@@ -0,0 +1,4 @@
+Open source cross platform flash program for the STM32 ARM microcontrollers
+using the built-in ST serial bootloader over UART or I2C.
+
+WWW: https://sourceforge.net/projects/stm32flash/