Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2018 18:50:43 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r461256 - in head/devel: . tinycbor tinycbor/files
Message-ID:  <201802081850.w18IohNc079108@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Thu Feb  8 18:50:43 2018
New Revision: 461256
URL: https://svnweb.freebsd.org/changeset/ports/461256

Log:
  Add tinycbor 0.5.0
  
  The Concise Binary Object Representation (CBOR) is a data format whose design
  goals include the possibility of extremely small code size, fairly small message
  size, and extensibility without the need for version negotiation. It is defined
  in IETF RFC 7049.
  
  TinyCBOR is Intel's industrial strength C/C++ implementation of CBOR, as used in
  the IoTivity framework.
  
  WWW: https://github.com/intel/tinycbor

Added:
  head/devel/tinycbor/
  head/devel/tinycbor/Makefile   (contents, props changed)
  head/devel/tinycbor/distinfo   (contents, props changed)
  head/devel/tinycbor/files/
  head/devel/tinycbor/files/patch-Makefile   (contents, props changed)
  head/devel/tinycbor/files/patch-Makefile.configure   (contents, props changed)
  head/devel/tinycbor/pkg-descr   (contents, props changed)
  head/devel/tinycbor/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Feb  8 18:50:17 2018	(r461255)
+++ head/devel/Makefile	Thu Feb  8 18:50:43 2018	(r461256)
@@ -5997,6 +5997,7 @@
     SUBDIR += tig
     SUBDIR += tigcc
     SUBDIR += tijmp
+    SUBDIR += tinycbor
     SUBDIR += tinylaf
     SUBDIR += tinyq
     SUBDIR += tkcon

Added: head/devel/tinycbor/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/Makefile	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	tinycbor
+PORTVERSION=	0.5.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Concise Binary Object Representation (CBOR) library
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libcjson.so:devel/libcjson
+
+INSTALL_TARGET=	install-strip
+MAKE_ARGS=	SOVERSION=${PORTVERSION:R:R}
+USES=		gmake localbase pathfix
+
+GH_ACCOUNT=	intel
+GH_PROJECT=	tinycbor
+USE_GITHUB=	yes
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtinycbor.so.${PORTVERSION}
+	${LN} -fs libtinycbor.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtinycbor.so
+	${LN} -fs libtinycbor.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libtinycbor.so.${PORTVERSION:R:R}
+
+.include <bsd.port.mk>

Added: head/devel/tinycbor/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/distinfo	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1518096628
+SHA256 (intel-tinycbor-v0.5.0_GH0.tar.gz) = 5826a284e7f120a8d2c49cb581702be3e851acb4083a4f5af6112975a8b22209
+SIZE (intel-tinycbor-v0.5.0_GH0.tar.gz) = 111948

Added: head/devel/tinycbor/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/files/patch-Makefile	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2018-01-30 22:21:35 UTC
++++ Makefile
+@@ -103,7 +103,7 @@ ifneq ($(cjson-pass)$(system-cjson-pass)
+   JSON2CBOR_SOURCES = tools/json2cbor/json2cbor.c
+   INSTALL_TARGETS += $(bindir)/json2cbor
+   ifeq ($(system-cjson-pass),1)
+-    LDFLAGS_CJSON = -lcjson
++    LDFLAGS_CJSON = -L$(LOCALBASE)/lib -lcjson
+   else
+     JSON2CBOR_SOURCES += src/cjson/cJSON.c
+     json2cbor_CCFLAGS = -I$(SRCDIR)src/cjson

Added: head/devel/tinycbor/files/patch-Makefile.configure
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/files/patch-Makefile.configure	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,11 @@
+--- Makefile.configure.orig	2018-01-30 22:21:35 UTC
++++ Makefile.configure
+@@ -14,7 +14,7 @@ PROGRAM-cjson += \#include <cjson/cJSON.
+ PROGRAM-cjson += int main() { return cJSON_False; }
+ CCFLAGS-cjson = -I$(dir $(MAKEFILE))src/cjson
+ PROGRAM-system-cjson = $(PROGRAM-cjson)
+-CCFLAGS-system-cjson = -lcjson
++CCFLAGS-system-cjson = -I$(LOCALBASE)/include -L$(LOCALBASE)/lib -lcjson
+ 
+ sink:
+ 	@echo >&2 Please run from the top-level Makefile.

Added: head/devel/tinycbor/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/pkg-descr	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,9 @@
+The Concise Binary Object Representation (CBOR) is a data format whose design
+goals include the possibility of extremely small code size, fairly small message
+size, and extensibility without the need for version negotiation. It is defined
+in IETF RFC 7049.
+
+TinyCBOR is Intel's industrial strength C/C++ implementation of CBOR, as used in
+the IoTivity framework.
+
+WWW: https://github.com/intel/tinycbor

Added: head/devel/tinycbor/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tinycbor/pkg-plist	Thu Feb  8 18:50:43 2018	(r461256)
@@ -0,0 +1,9 @@
+bin/cbordump
+bin/json2cbor
+include/tinycbor/cbor.h
+include/tinycbor/cborjson.h
+lib/libtinycbor.a
+lib/libtinycbor.so
+lib/libtinycbor.so.0
+lib/libtinycbor.so.0.5.0
+libdata/pkgconfig/tinycbor.pc



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