From 56ae63132b9ae06295fe40ad15cfff25e432f95c Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sat, 1 Jul 2023 00:02:46 +0300 Subject: [PATCH 1/2] srtalliance.org (#2329) * new file: projects/srtalliance.org/package.yml * display-name: srt --- projects/srtalliance.org/package.yml | 48 ++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 projects/srtalliance.org/package.yml diff --git a/projects/srtalliance.org/package.yml b/projects/srtalliance.org/package.yml new file mode 100644 index 00000000..3e97a0fe --- /dev/null +++ b/projects/srtalliance.org/package.yml @@ -0,0 +1,48 @@ +distributable: + url: https://github.com/Haivision/srt/archive/v{{version}}.tar.gz + strip-components: 1 + +display-name: srt + +versions: + github: Haivision/srt + +dependencies: + openssl.org: '*' + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + cmake.org: '*' + freedesktop.org/pkg-config: '*' + + script: + - cmake . $ARGS + - make --jobs {{ hw.concurrency }} install + env: + ARGS: + - -DWITH_OPENSSL_INCLUDEDIR={{deps.openssl.prefix}}/include + - -DWITH_OPENSSL_LIBDIR={{deps.openssl.prefix}}/lib + - -DCMAKE_INSTALL_BINDIR=bin + - -DCMAKE_INSTALL_LIBDIR=lib + - -DCMAKE_INSTALL_INCLUDEDIR=include + - -DCMAKE_INSTALL_PREFIX={{prefix}} + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_FIND_FRAMEWORK=LAST + - -DCMAKE_VERBOSE_MAKEFILE=ON + - -Wno-dev + - -DBUILD_TESTING=OFF + +provides: + - bin/srt-ffplay + - bin/srt-file-transmit + - bin/srt-live-transmit + - bin/srt-tunnel + +test: + dependencies: + freedesktop.org/pkg-config: '*' + script: + - pkg-config --modversion srt | grep {{version}} + - pkg-config --modversion haisrt | grep {{version}} \ No newline at end of file From 5dee2e3b8b25de4c8ef1581ee7b5432304c0a56a Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sat, 1 Jul 2023 00:03:23 +0300 Subject: [PATCH 2/2] hboehm.info/gc (#2328) * Create package.yml * Create test.cc --- hboehm.info/gc/package.yml | 36 ++++++++++++++++++++++++++++++++++++ hboehm.info/gc/test.cc | 16 ++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 hboehm.info/gc/package.yml create mode 100644 hboehm.info/gc/test.cc diff --git a/hboehm.info/gc/package.yml b/hboehm.info/gc/package.yml new file mode 100644 index 00000000..a013059f --- /dev/null +++ b/hboehm.info/gc/package.yml @@ -0,0 +1,36 @@ +distributable: + url: https://github.com/ivmai/bdwgc/releases/download/v{{version}}/gc-{{version}}.tar.gz + strip-components: 1 + +versions: + github: ivmai/bdwgc + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + freedesktop.org/pkg-config: '*' + github.com/ivmai/libatomic_ops: '*' + script: + - ./configure $ARGS + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} check + - make --jobs {{ hw.concurrency }} install + + env: + ARGS: + - --prefix="{{prefix}}" + - --disable-debug + - --disable-dependency-tracking + - --enable-cplusplus + - --enable-static + - --enable-large-config + +test: + dependencies: + tea.xyz/gx/cc: c99 + freedesktop.org/pkg-config: '*' + script: + - pkg-config --modversion bdw-gc | grep {{version}} + - cc test.c -lgc -o test + - ./test diff --git a/hboehm.info/gc/test.cc b/hboehm.info/gc/test.cc new file mode 100644 index 00000000..ae94ab4b --- /dev/null +++ b/hboehm.info/gc/test.cc @@ -0,0 +1,16 @@ +#include +#include +#include "gc.h" + +int main(void) { + int i; + + GC_INIT(); + for (i = 0; i < 10000000; ++i) { + int **p = (int **) GC_MALLOC(sizeof(int *)); + int *q = (int *) GC_MALLOC_ATOMIC(sizeof(int)); + assert(*p == 0); + *p = (int *) GC_REALLOC(q, 2 * sizeof(int)); + } + return 0; +}