From nobody Sat Aug 05 19:16:59 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RJC4q3ktkz4mRGw; Sat, 5 Aug 2023 19:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RJC4q3Hm6z4ftT; Sat, 5 Aug 2023 19:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691263019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lqDBYgg7JJqH8putZ7v1P3YBpcBgxNvs1U/ZBHM8jJY=; b=TPWEQCqBnUssGjCA/o8uwE9IjA3BK8v3NsY+oozEwPdy7rhjTqBqrH/VwYoGA8fWTpY8pc UHaiCTyqq9DSBrJG9cDdceaD4ySFOn4u1+/U+QVvVaDaGiJUBrFDmGR9RgoUoxBWBQPChx 4Zz3xDAz/Zx2aX2W8FmUfWp1++AAcVEQEfTO4rsfTrsJ4rta+ip57/1uPg7Xpr5ujPSWfq lGtWuHxY/JRWmTEDzkGD8dMv+lpFRM4trkDzxwzDvGFe16eZPBdu7RQpyc38cTiyF2TsbO E9oQMF7IfLVuj7CdgvYfYQH4+Fhle19fmYzUcJD3jnWL9/9zTVP6uH/TYPeYAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691263019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lqDBYgg7JJqH8putZ7v1P3YBpcBgxNvs1U/ZBHM8jJY=; b=wf+35YI1Vp9zVLroN7p/eKCw+JBp7808y3zl93R4IGvtF6Nbu9HiH/844nbDAmHBGyZmV+ pqDKHv/vl3zV6bzzckTE8TavIojK9e/WJ+NxaE9na2MvJKh6FoiOsqYDm4aB3HGwUWF7Bw pn18yz9uQAUpKpLaQOk1YTLe0J2ZpSE/rDpTqzdTNdUFkBAWppKZggPmQRrDvp1j0loRa7 Exx0jvqBQu3hp/pA+NnBDogz/D2zSFw3pUxo8mc1mylbDqhGIFLHrn/Dv4jTJXyPvNAr8o DKUabZROnYacOgWcTQcSSk/iiAlvl7SFp0cZACKZ5EtnZsPjCyQcIbRBOGvWCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691263019; a=rsa-sha256; cv=none; b=Qboo+9em/KRqPBiS6oMIcwjC5TlI02fMpe3YOvR9Y9hpC7SSLjk1RhlfICNh98vdBx4tFN NsJb+j69oujZKHc9zPfWR2UfTMI3x0ryoFY82IKRHnpOOL51xRwgstBrq+bLtYER9EqMN2 ZLiFjhDz1rHwm99/r4CKiljGPzdGbHPwf4BD+epG6LVsQxhBN7slj4bRmf1GcK30C3KhtV 7xw/+FWANRR3Is5Rs6B9Wg9QeJMzCMleXdAN+afzfL7SxASUiwKqTQrYgauxX02/MlKrrl zOPDJbYcXyZDvsWgWUgFB2D0++Vgl/5PQFvz/PiKjXPKmZusj3OdPGzpNiuHyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RJC4q1x7Xzh4L; Sat, 5 Aug 2023 19:16:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 375JGxN2010532; Sat, 5 Aug 2023 19:16:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 375JGxvx010531; Sat, 5 Aug 2023 19:16:59 GMT (envelope-from git) Date: Sat, 5 Aug 2023 19:16:59 GMT Message-Id: <202308051916.375JGxvx010531@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: cb0f0ba54600 - main - multimedia/obuparse: Add Port: Portable single file AV1 OBU parser List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb0f0ba546007a450de73338c815bfc8bb88ed9c Auto-Submitted: auto-generated The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=cb0f0ba546007a450de73338c815bfc8bb88ed9c commit cb0f0ba546007a450de73338c815bfc8bb88ed9c Author: Daniel Engberg AuthorDate: 2023-08-05 18:57:25 +0000 Commit: Daniel Engberg CommitDate: 2023-08-05 19:14:22 +0000 multimedia/obuparse: Add Port: Portable single file AV1 OBU parser Simple and portable single file AV1 OBU parser Features: * No allocations; only works on user-provided buffers and the stack. * OBU header parsing. * Sequence Header OBU parsing. * Metadata OBU parsing. * Tile List OBU parsing. * Tile Group OBU parsing. * Frame Header OBU parsing. * Frame OBU parsing. --- multimedia/Makefile | 1 + multimedia/obuparse/Makefile | 30 +++++++++++++++++++++++++++++ multimedia/obuparse/distinfo | 3 +++ multimedia/obuparse/files/patch-Makefile | 33 ++++++++++++++++++++++++++++++++ multimedia/obuparse/pkg-descr | 12 ++++++++++++ 5 files changed, 79 insertions(+) diff --git a/multimedia/Makefile b/multimedia/Makefile index 4e137680a39f..27e9c05c0cf9 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -260,6 +260,7 @@ SUBDIR += obs-studio SUBDIR += obs-text-pthread SUBDIR += obs-waveform + SUBDIR += obuparse SUBDIR += oggvideotools SUBDIR += ogmrip SUBDIR += ogmtools diff --git a/multimedia/obuparse/Makefile b/multimedia/obuparse/Makefile new file mode 100644 index 000000000000..4af8eb8657a4 --- /dev/null +++ b/multimedia/obuparse/Makefile @@ -0,0 +1,30 @@ +PORTNAME= obuparse +DISTVERSION= g20230712 +CATEGORIES= multimedia + +MAINTAINER= diizzy@FreeBSD.org +COMMENT= Simple and portable single file AV1 OBU parser +WWW= https://github.com/dwbuiten/obuparse + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake +USE_GITHUB= yes +GH_ACCOUNT= dwbuiten +GH_TAGNAME= f40598f + +USE_LDCONFIG= yes + +MAKE_ARGS= PREFIX="${STAGEDIR}${PREFIX}" + +INSTALL_TARGET= install-shared + +PLIST_FILES= include/obuparse.h \ + lib/libobuparse.so \ + lib/libobuparse.so.1 + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libobuparse.so.1 + +.include diff --git a/multimedia/obuparse/distinfo b/multimedia/obuparse/distinfo new file mode 100644 index 000000000000..86aa254d0350 --- /dev/null +++ b/multimedia/obuparse/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1690742528 +SHA256 (dwbuiten-obuparse-g20230712-f40598f_GH0.tar.gz) = 3908f4f8a2b85acf602f18ed0b91c860c787046a26441c2d92dec79da68e5a68 +SIZE (dwbuiten-obuparse-g20230712-f40598f_GH0.tar.gz) = 29233 diff --git a/multimedia/obuparse/files/patch-Makefile b/multimedia/obuparse/files/patch-Makefile new file mode 100644 index 000000000000..b371f44188b8 --- /dev/null +++ b/multimedia/obuparse/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig 2023-07-12 18:02:40 UTC ++++ Makefile +@@ -1,9 +1,9 @@ + PREFIX=/usr/local + +-CFLAGS := -O3 -std=c99 -Wall -Wextra -g -fPIC -I. $(CPPFLAGS) ++CFLAGS += -std=c99 -Wall -Wextra -fPIC -I. $(CPPFLAGS) + LDFLAGS += +-CC := $(CROSS)gcc +-AR := $(CROSS)ar ++CC := $(CC) ++AR := $(AR) + + ifneq (,$(findstring mingw,$(CC))) + LIBSUF=.dll +@@ -11,7 +11,7 @@ ifneq (,$(findstring mingw,$(CC))) + SYSTEM=MINGW + else + LIBSUF=.so +- LDFLAGS=-Wl,--version-script,obuparse.v ++ LDFLAGS+= -Wl,--version-script,obuparse.v + endif + + all: libobuparse$(LIBSUF) libobuparse.a +@@ -24,7 +24,7 @@ libobuparse.a: obuparse.o + $(AR) rcs $@ $^ + + libobuparse$(LIBSUF): obuparse.o +- $(CC) $(LDFLAGS) -shared $^ -o $@ ++ $(CC) $(LDFLAGS) -shared $^ -o $@ -Wl,-soname,libobuparse$(LIBSUF).1 + + install: install-shared install-static + diff --git a/multimedia/obuparse/pkg-descr b/multimedia/obuparse/pkg-descr new file mode 100644 index 000000000000..3ac4991733ee --- /dev/null +++ b/multimedia/obuparse/pkg-descr @@ -0,0 +1,12 @@ +Simple and portable single file AV1 OBU parser written in mostly C89 with a +tiny bit of C99. + +* No allocations; only works on user-provided buffers and the stack. +* OBU header parsing. +* Sequence Header OBU parsing. +* Metadata OBU parsing. +* Tile List OBU parsing. +* Tile Group OBU parsing. +* Frame Header OBU parsing. +* Frame OBU parsing. +