pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/tracy: import tracy-0.4.1



Module Name:	pkgsrc-wip
Committed By:	Aleksej Lebedev <root%zta.lk@localhost>
Pushed By:	zhtw
Date:		Tue Apr 2 11:17:20 2019 +0000
Changeset:	54bde25e1ac5ea9e29c4c8ffa119e67c2d4dc0e8

Added Files:
	tracy/DESCR
	tracy/Makefile
	tracy/PLIST
	tracy/distinfo
	tracy/patches/patch-profiler_build_unix_build.mk

Log Message:
wip/tracy: import tracy-0.4.1

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=54bde25e1ac5ea9e29c4c8ffa119e67c2d4dc0e8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tracy/DESCR                                      |  4 +++
 tracy/Makefile                                   | 32 ++++++++++++++++++++++++
 tracy/PLIST                                      |  2 ++
 tracy/distinfo                                   |  7 ++++++
 tracy/patches/patch-profiler_build_unix_build.mk | 15 +++++++++++
 5 files changed, 60 insertions(+)

diffs:
diff --git a/tracy/DESCR b/tracy/DESCR
new file mode 100644
index 0000000000..853a34799f
--- /dev/null
+++ b/tracy/DESCR
@@ -0,0 +1,4 @@
+Tracy is a real time, nanosecond resolution frame profiler that can be used for
+remote or embedded telemetry of your application. It can profile CPU (C, C++11,
+Lua), GPU (OpenGL, Vulkan) and memory. It also can display locks held by threads
+and their interactions with each other.
diff --git a/tracy/Makefile b/tracy/Makefile
new file mode 100644
index 0000000000..cec26a7298
--- /dev/null
+++ b/tracy/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+VERSION=	0.4.1
+PKGNAME=	tracy-${VERSION}
+DISTNAME=	v${VERSION}
+CATEGORIES=	devel
+MASTER_SITES=	https://bitbucket.org/wolfpld/tracy/get/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	root%zta.lk@localhost
+HOMEPAGE=	https://bitbucket.org/wolfpld/tracy
+COMMENT=	Real time, nanosecond resolution frame profiler
+LICENSE=	modified-bsd
+
+WRKSRC=		${WRKDIR}/wolfpld-tracy-59ed5775d973
+USE_LANGUAGES=	c c++
+
+USE_TOOLS+=	gmake pkg-config
+INSTALLATION_DIRS= bin
+
+do-build:
+	cd ${WRKSRC}/profiler/build/unix && ${GMAKE} release
+
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/profiler/build/unix/Tracy-release ${DESTDIR}${PREFIX}/bin/tracy
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/glfw/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tracy/PLIST b/tracy/PLIST
new file mode 100644
index 0000000000..f8eb00d514
--- /dev/null
+++ b/tracy/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/tracy
diff --git a/tracy/distinfo b/tracy/distinfo
new file mode 100644
index 0000000000..af81d7f6d0
--- /dev/null
+++ b/tracy/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (v0.4.1.tar.bz2) = 82bb67a85a74b0d876ecc7c36184450315b5bf9b
+RMD160 (v0.4.1.tar.bz2) = ad62157232ae3f18729563d6ad4ac51051d4b55c
+SHA512 (v0.4.1.tar.bz2) = 55ef47713a188e5a6e591157bd1bb189e26d9c0ece2c5724461fb5a87127b3e950bf60c5e4ef5348fec9c550ee43fc2a1603b07e57cca97825a76d8808cbbdb9
+Size (v0.4.1.tar.bz2) = 1565710 bytes
+SHA1 (patch-profiler_build_unix_build.mk) = 26f5f6e9ec7ebc1c24fc427531484d593b116bef
diff --git a/tracy/patches/patch-profiler_build_unix_build.mk b/tracy/patches/patch-profiler_build_unix_build.mk
new file mode 100644
index 0000000000..f10d82a640
--- /dev/null
+++ b/tracy/patches/patch-profiler_build_unix_build.mk
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Prevents pkgsrc glfw's headers from being picked up during the build.
+
+--- profiler/build/unix/build.mk.orig	2019-03-26 14:55:22.000000000 +0000
++++ profiler/build/unix/build.mk
+@@ -1,7 +1,7 @@
+ CFLAGS += 
+ CXXFLAGS := $(CFLAGS) -std=c++17
+ DEFINES += -DTRACY_FILESELECTOR -DTRACY_EXTENDED_FONT -DTRACY_ROOT_WINDOW
+-INCLUDES := $(shell pkg-config --cflags glfw3 freetype2) -I../../../imgui -I../../libs/gl3w
++INCLUDES := -I../../../imgui -I../../libs/gl3w $(shell pkg-config --cflags glfw3 freetype2)
+ LIBS := $(shell pkg-config --libs glfw3 freetype2) -lpthread -ldl
+ PROJECT := Tracy
+ IMAGE := $(PROJECT)-$(BUILD)


Home | Main Index | Thread Index | Old Index