Commit 47ad3e7a authored by pawel's avatar pawel
Browse files

babeltrace provides trace read and write libraries, as well as a trace

converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
The main format expected to be converted to/from is the Common Trace
Format (CTF). The latest version of the CTF specification can be found at
git://git.efficios.com/ctf.git
gitweb:     http://git.efficios.com/?p=ctf.git
The CE Workgroup of the Linux Foundation, Ericsson, and EfficiOS have
sponsored this work.

WWW: http://www.efficios.com/babeltrace

PR:		211574
Submitted by:	luca.pizzamiglio@gmail.com
parent 5b47ad89
......@@ -144,6 +144,7 @@
SUBDIR += avro-cpp
SUBDIR += awscli
SUBDIR += b2
SUBDIR += babeltrace
SUBDIR += bam
SUBDIR += bbfreeze
SUBDIR += bbfreeze-loader
......
# $FreeBSD$
PORTNAME= babeltrace
PORTVERSION= 1.4.0
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= luca.pizzamiglio@gmail.com
COMMENT= Tool and library to read, write and convert execution traces
# license is complicated
LICENSE= MIT GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE_MIT= ${WRKSRC}/mit-license.txt
LICENSE_FILE_GPLv2= ${WRKSRC}/gpl-2.0.txt
LICENSE_FILE_LGPL21= ${WRKSRC}/lgpl-2.1.txt
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpopt.so:devel/popt \
libuuid.so:misc/e2fsprogs-libuuid
USE_GITHUB= yes
GH_ACCOUNT= efficios
USES= autoreconf:build bison gettext-runtime gmake libtool pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-debug-info
USE_GNOME= glib20
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
PORTDOCS= ChangeLog std-ext-lib.txt API.txt lttng-live.txt
.include <bsd.port.pre.mk>
# FreeBSD 9.x and earlier do not have an updated flex
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>=2.5.35:textproc/flex
.endif
post-patch:
@${REINPLACE_CMD} -e 's|LICENSE mit-license.txt gpl-2.0.txt||' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|/pkgconfig|/../libdata/pkgconfig|' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|machine\/endian|sys\/endian|' \
${WRKSRC}/include/babeltrace/endian.h
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
@${REINPLACE_CMD} -e 's|\[FLEX\],\[flex\]|\[FLEX\],\[flex\],\[\/usr\/bin\/flex\],${LOCALBASE}/bin:${PATH}|' \
${WRKSRC}/configure.ac
.endif
pre-configure:
(cd ${WRKSRC}; ./bootstrap )
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000033
pre-build:
@${REINPLACE_CMD} -e 's|(LEX)|(FLEX)|' \
${WRKSRC}/formats/ctf/metadata/Makefile
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libbabeltrace*so.1.0.0
.include <bsd.port.post.mk>
TIMESTAMP = 1469700563
SHA256 (efficios-babeltrace-v1.4.0_GH0.tar.gz) = a9580fb15acf0aad8f7176bbd6f29c04d34878dcdc259e3f70b182c804edfed9
SIZE (efficios-babeltrace-v1.4.0_GH0.tar.gz) = 776774
--- include/babeltrace/compat/limits.h.orig 2016-07-28 12:52:51 UTC
+++ include/babeltrace/compat/limits.h
@@ -29,10 +29,11 @@
#define BABELTRACE_HOST_NAME_MAX HOST_NAME_MAX
+/*
#elif defined(__FreeBSD__)
#define BABELTRACE_HOST_NAME_MAX MAXHOSTNAMELEN
-
+*/
#elif defined(_POSIX_HOST_NAME_MAX)
#define BABELTRACE_HOST_NAME_MAX _POSIX_HOST_NAME_MAX
babeltrace provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.
The main format expected to be converted to/from is the Common Trace
Format (CTF). The latest version of the CTF specification can be found at
git://git.efficios.com/ctf.git
gitweb: http://git.efficios.com/?p=ctf.git
The CE Workgroup of the Linux Foundation, Ericsson, and EfficiOS have
sponsored this work.
WWW: http://www.efficios.com/babeltrace
bin/babeltrace
bin/babeltrace-log
include/babeltrace/babeltrace.h
include/babeltrace/clock-types.h
include/babeltrace/context.h
include/babeltrace/ctf-writer/clock.h
include/babeltrace/ctf-writer/event-fields.h
include/babeltrace/ctf-writer/event-types.h
include/babeltrace/ctf-writer/event.h
include/babeltrace/ctf-writer/stream.h
include/babeltrace/ctf-writer/writer.h
include/babeltrace/ctf/callbacks.h
include/babeltrace/ctf/events.h
include/babeltrace/ctf/iterator.h
include/babeltrace/format.h
include/babeltrace/iterator.h
include/babeltrace/list.h
include/babeltrace/trace-handle.h
lib/libbabeltrace-ctf-metadata.a
lib/libbabeltrace-ctf-metadata.so
lib/libbabeltrace-ctf-metadata.so.1
lib/libbabeltrace-ctf-metadata.so.1.0.0
lib/libbabeltrace-ctf-text.a
lib/libbabeltrace-ctf-text.so
lib/libbabeltrace-ctf-text.so.1
lib/libbabeltrace-ctf-text.so.1.0.0
lib/libbabeltrace-ctf.a
lib/libbabeltrace-ctf.so
lib/libbabeltrace-ctf.so.1
lib/libbabeltrace-ctf.so.1.0.0
lib/libbabeltrace-dummy.a
lib/libbabeltrace-dummy.so
lib/libbabeltrace-dummy.so.1
lib/libbabeltrace-dummy.so.1.0.0
lib/libbabeltrace-lttng-live.a
lib/libbabeltrace-lttng-live.so
lib/libbabeltrace-lttng-live.so.1
lib/libbabeltrace-lttng-live.so.1.0.0
lib/libbabeltrace.a
lib/libbabeltrace.so
lib/libbabeltrace.so.1
lib/libbabeltrace.so.1.0.0
libdata/pkgconfig/babeltrace-ctf.pc
libdata/pkgconfig/babeltrace.pc
man/man1/babeltrace-log.1.gz
man/man1/babeltrace.1.gz
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment