citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 51c9892f5f3fa2b52561e14c1545d0056ffbb179
parent 79d419412d1b342bfb11ba4ce76ac312cdd3721a
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Thu, 31 Mar 2016 22:22:23 -0600

pkg: add openbsd package building

Diffstat:
Apkg/devel/citrun/Makefile | 36++++++++++++++++++++++++++++++++++++
Apkg/devel/citrun/distinfo | 2++
Apkg/devel/citrun/patches/patch-instrument_main_cc | 20++++++++++++++++++++
Apkg/devel/citrun/pkg/DESCR | 0
Apkg/devel/citrun/pkg/PLIST | 8++++++++
5 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/pkg/devel/citrun/Makefile b/pkg/devel/citrun/Makefile @@ -0,0 +1,36 @@ +# $OpenBSD$ + +COMMENT = see your source code run + +DISTNAME = citrun-0 +REVISION = 1 +CATEGORIES = devel + +HOMEPAGE = http://citrun.com + +# BSD +PERMIT_PACKAGE_CDROM = Yes + +MASTER_SITES = http://git.0x30.net/ + +WANTLIB += GL GLU GLEW glut c freetype m pthread z + +SHARED_LIBS += scv 0.0 # 0.0 + +# -std=c++11 +MODULES = gcc4 +MODGCC4_ARCHS = * +MODGCC4_LANGS = c++ + +LIB_DEPENDS = graphics/freeglut \ + graphics/glew +BUILD_DEPENDS = devel/jam \ + devel/llvm + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} jam + +do-install: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${ALL_FAKE_FLAGS} jam install + +.include <bsd.port.mk> diff --git a/pkg/devel/citrun/distinfo b/pkg/devel/citrun/distinfo @@ -0,0 +1,2 @@ +SHA256 (citrun-0.tar.gz) = xLsP5zmaSYArz1e4zimGgvgZ/IJkmv/HSQYyIYy663U= +SIZE (citrun-0.tar.gz) = 57437 diff --git a/pkg/devel/citrun/patches/patch-instrument_main_cc b/pkg/devel/citrun/patches/patch-instrument_main_cc @@ -0,0 +1,20 @@ +--- Jamrules ++++ Jamrules +@@ -4,7 +4,7 @@ if $(OS) = OPENBSD { + C++ = eg++ ; + SHLIB_SUF = so.0.0 ; + +- C++FLAGS = -DLLVM_VER=34 ; ++ C++FLAGS = -DLLVM_VER=37 ; + + PKG_CONFIG_LIBS = gl glew freetype2 ; + # Link directly against libestdc++ from ports +@@ -21,7 +21,7 @@ if $(OS) = OPENBSD { + -lclangFrontend + -lclangFrontendTool + -lclangLex -lclangParse +- -lclangRewriteCore ++ -lclangRewrite + -lclangRewriteFrontend + -lclangSema + -lclangSerialization diff --git a/pkg/devel/citrun/pkg/DESCR b/pkg/devel/citrun/pkg/DESCR diff --git a/pkg/devel/citrun/pkg/PLIST b/pkg/devel/citrun/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $OpenBSD$ +@bin bin/scv_instrument +@bin bin/scv_viewer +bin/scv_wrap +@lib lib/libscv.so.${LIBscv_VERSION} +@man man/man1/scv_instrument.1 +@man man/man1/scv_viewer.1 +@man man/man1/scv_wrap.1