[138533] trunk/dports/devel

khindenburg at macports.org khindenburg at macports.org
Sat Jul 11 05:22:21 PDT 2015


Revision: 138533
          https://trac.macports.org/changeset/138533
Author:   khindenburg at macports.org
Date:     2015-07-11 05:22:20 -0700 (Sat, 11 Jul 2015)
Log Message:
-----------
stm32flash: new port #46477

Added Paths:
-----------
    trunk/dports/devel/stm32flash/
    trunk/dports/devel/stm32flash/Portfile
    trunk/dports/devel/stm32flash/files/
    trunk/dports/devel/stm32flash/files/patch-stm32.c.diff

Added: trunk/dports/devel/stm32flash/Portfile
===================================================================
--- trunk/dports/devel/stm32flash/Portfile	                        (rev 0)
+++ trunk/dports/devel/stm32flash/Portfile	2015-07-11 12:22:20 UTC (rev 138533)
@@ -0,0 +1,39 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                stm32flash
+version             0.4
+categories          devel
+maintainers         openmaintainer gmail.com:ranauei
+platforms           darwin
+license             GPL-2
+description         Flash program for the STM32 bootloader
+long_description    Open source flash program for the STM32 ARM processors \
+                    using the ST serial bootloader over UART or I2C
+homepage            http://sourceforge.net/p/stm32flash/wiki/Home/
+master_sites        sourceforge
+
+checksums           rmd160  f40648bd6baf5943c781c955ab260851c9cee744 \
+                    sha256  023f28b01f644edc235c8815a4352e359d3ebdbe6368aaf6bbc28bab3e6ffa5b
+
+worksrcdir          ${name}
+
+use_configure       no
+
+variant universal {}
+
+patchfiles          patch-stm32.c.diff
+
+post-patch {
+     reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
+     reinplace "s|\$\(AR\) rc|\$\(AR\) rcs|g" ${worksrcpath}/parsers/Makefile
+}
+
+build.env-append    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
+                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
+
+build.args-append   CC=${configure.cc}
+build.env-append    MAKE=${build.cmd} \
+                    INSTALL=${configure.install}


Property changes on: trunk/dports/devel/stm32flash/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/stm32flash/files/patch-stm32.c.diff
===================================================================
--- trunk/dports/devel/stm32flash/files/patch-stm32.c.diff	                        (rev 0)
+++ trunk/dports/devel/stm32flash/files/patch-stm32.c.diff	2015-07-11 12:22:20 UTC (rev 138533)
@@ -0,0 +1,38 @@
+--- stm32.c.orig	2015-01-08 13:12:24.000000000 +0100
++++ stm32.c	2015-01-08 13:13:48.000000000 +0100
+@@ -604,7 +604,7 @@
+ 		return STM32_ERR_UNKNOWN;
+ 
+ 	s_err = stm32_get_ack_timeout(stm, STM32_WUNPROT_TIMEOUT);
+-	if (s_err == STM32_NACK) {
++	if (s_err == STM32_ERR_NACK) {
+ 		fprintf(stderr, "Error: Failed to WRITE UNPROTECT\n");
+ 		return STM32_ERR_UNKNOWN;
+ 	}
+@@ -631,7 +631,7 @@
+ 		return STM32_ERR_UNKNOWN;
+ 
+ 	s_err = stm32_get_ack_timeout(stm, STM32_WPROT_TIMEOUT);
+-	if (s_err == STM32_NACK) {
++	if (s_err == STM32_ERR_NACK) {
+ 		fprintf(stderr, "Error: Failed to WRITE PROTECT\n");
+ 		return STM32_ERR_UNKNOWN;
+ 	}
+@@ -658,7 +658,7 @@
+ 		return STM32_ERR_UNKNOWN;
+ 
+ 	s_err = stm32_get_ack_timeout(stm, STM32_MASSERASE_TIMEOUT);
+-	if (s_err == STM32_NACK) {
++	if (s_err == STM32_ERR_NACK) {
+ 		fprintf(stderr, "Error: Failed to READOUT UNPROTECT\n");
+ 		return STM32_ERR_UNKNOWN;
+ 	}
+@@ -685,7 +685,7 @@
+ 		return STM32_ERR_UNKNOWN;
+ 
+ 	s_err = stm32_get_ack_timeout(stm, STM32_RPROT_TIMEOUT);
+-	if (s_err == STM32_NACK) {
++	if (s_err == STM32_ERR_NACK) {
+ 		fprintf(stderr, "Error: Failed to READOUT PROTECT\n");
+ 		return STM32_ERR_UNKNOWN;
+ 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150711/a994ca06/attachment.html>


More information about the macports-changes mailing list