Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 12:54:21 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472973 - in head/devel: . libsml libsml/files
Message-ID:  <201806211254.w5LCsLAo096413@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Thu Jun 21 12:54:21 2018
New Revision: 472973
URL: https://svnweb.freebsd.org/changeset/ports/472973

Log:
  New port: devel/libsml
  
  libSML is a library which implements the Smart Message Language
  (SML) protocol specified by VDE's Forum Netztechnik/Netzbetrieb
  (FNN). It can be utilized to communicate to FNN specified Smart
  Meters or Smart Meter components (EDL/MUC).
  
  WWW: https://github.com/volkszaehler/libsml
  
  PR:		227367
  Submitted by:	Gerrit Beine <mail+freebsd@gerritbeine.de>

Added:
  head/devel/libsml/
  head/devel/libsml/Makefile   (contents, props changed)
  head/devel/libsml/distinfo   (contents, props changed)
  head/devel/libsml/files/
  head/devel/libsml/files/patch-sml-Makefile   (contents, props changed)
  head/devel/libsml/files/patch-test-unity-unity.c   (contents, props changed)
  head/devel/libsml/pkg-descr   (contents, props changed)
  head/devel/libsml/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Jun 21 12:44:10 2018	(r472972)
+++ head/devel/Makefile	Thu Jun 21 12:54:21 2018	(r472973)
@@ -1572,6 +1572,7 @@
     SUBDIR += libsimdpp
     SUBDIR += libslang2
     SUBDIR += libsmdev
+    SUBDIR += libsml
     SUBDIR += libsmpp34
     SUBDIR += libsmraw
     SUBDIR += libsoup

Added: head/devel/libsml/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/Makefile	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,31 @@
+# Created by: Gerrit Beine <mail+freebsd@gerritbeine.de>
+# $FreeBSD$
+
+PORTNAME=	libsml
+PORTVERSION=	0.1.1
+CATEGORIES=	devel
+
+MAINTAINER=	mail+freebsd@gerritbeine.de
+COMMENT=	Implementation in C of the Smart Message Language (SML) protocol
+
+LICENSE=	GPLv3
+
+LIB_DEPENDS=	libuuid.so:misc/e2fsprogs-libuuid
+
+USES=		dos2unix gmake
+USE_LDCONFIG=	yes
+USE_GITHUB=	yes
+DOS2UNIX_FILES=	test/unity/unity.c
+GH_ACCOUNT=	volkszaehler
+GH_TAGNAME=	2a8445b
+
+ALL_TARGET=	all
+CFLAGS+=	-I ${PREFIX}/include
+
+post-patch:
+	${REINPLACE_CMD} -e "s|-luuid|-luuid -L ${PREFIX}/lib|" ${WRKSRC}/examples/Makefile
+	${REINPLACE_CMD} -e "s|-luuid|-luuid -L ${PREFIX}/lib|" ${WRKSRC}/test/Makefile
+	${REINPLACE_CMD} -e "s|prefix = /usr/local|prefix = ${STAGEDIR}${PREFIX}|" ${WRKSRC}/examples/Makefile
+	${REINPLACE_CMD} -e "s|prefix = /usr/local|prefix = ${STAGEDIR}${PREFIX}|" ${WRKSRC}/sml/Makefile
+
+.include <bsd.port.mk>

Added: head/devel/libsml/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/distinfo	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1520165866
+SHA256 (volkszaehler-libsml-0.1.1-2a8445b_GH0.tar.gz) = e9342a0e2b86a2e79d40fe8e6743a574e7d7a83034399f34044d3bbd3870f70f
+SIZE (volkszaehler-libsml-0.1.1-2a8445b_GH0.tar.gz) = 106002

Added: head/devel/libsml/files/patch-sml-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/files/patch-sml-Makefile	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,13 @@
+--- sml/Makefile.orig	2018-01-25 17:04:21 UTC
++++ sml/Makefile
+@@ -4,10 +4,6 @@ CFLAGS += -I./include/ -fPIC -fno-stack-protector -g -
+ # Available Flags:
+ # SML_NO_UUID_LIB - compile without uuid lib
+ 
+-ifneq ($(UNAME), Darwin)
+-LIBS=-luuid
+-endif
+-
+ NAME=libsml
+ SOVERSION=1
+ ifeq ($(UNAME), Darwin)

Added: head/devel/libsml/files/patch-test-unity-unity.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/files/patch-test-unity-unity.c	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,13 @@
+--- test/unity/unity.c.orig	2018-01-25 17:04:21 UTC
++++ test/unity/unity.c
+@@ -19,9 +19,7 @@
+ #ifdef __APPLE__
+ struct _Unity Unity = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , { 0 } };        
+ #else
+-struct _Unity Unity = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 
+-  .AbortFrame = { {.__jmpbuf = {0}, .__mask_was_saved = 0, .__saved_mask = {{0}} } }
+-};
++struct _Unity Unity = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , { 0 } };        
+ #endif
+ 
+ const char* UnityStrNull     = "NULL";

Added: head/devel/libsml/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/pkg-descr	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,6 @@
+libSML is a library which implements the Smart Message Language
+(SML) protocol specified by VDE's Forum Netztechnik/Netzbetrieb
+(FNN). It can be utilized to communicate to FNN specified Smart
+Meters or Smart Meter components (EDL/MUC).
+
+WWW: https://github.com/volkszaehler/libsml

Added: head/devel/libsml/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsml/pkg-plist	Thu Jun 21 12:54:21 2018	(r472973)
@@ -0,0 +1,31 @@
+bin/sml_server
+lib/libsml.a
+lib/libsml.so
+lib/libsml.so.1
+include/sml/sml_attention_response.h
+include/sml/sml_boolean.h
+include/sml/sml_close_request.h
+include/sml/sml_close_response.h
+include/sml/sml_crc16.h
+include/sml/sml_file.h
+include/sml/sml_get_list_request.h
+include/sml/sml_get_list_response.h
+include/sml/sml_get_proc_parameter_request.h
+include/sml/sml_get_proc_parameter_response.h
+include/sml/sml_get_profile_list_request.h
+include/sml/sml_get_profile_list_response.h
+include/sml/sml_get_profile_pack_request.h
+include/sml/sml_get_profile_pack_response.h
+include/sml/sml_list.h
+include/sml/sml_message.h
+include/sml/sml_number.h
+include/sml/sml_octet_string.h
+include/sml/sml_open_request.h
+include/sml/sml_open_response.h
+include/sml/sml_set_proc_parameter_request.h
+include/sml/sml_shared.h
+include/sml/sml_status.h
+include/sml/sml_time.h
+include/sml/sml_transport.h
+include/sml/sml_tree.h
+include/sml/sml_value.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806211254.w5LCsLAo096413>