From 5650d046fc596f7de6f46b7131c964dadad588cc Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 5 Nov 2010 12:54:51 +0000 Subject: [PATCH] Oggz comprises liboggz and the tool oggz, which provides commands to inspect, edit and validate Ogg files. The oggz-chop tool can also be used to serve time ranges of Ogg media over HTTP by any web server that supports CGI. liboggz is a C library for reading and writing Ogg files and streams. It offers various features over the reference libogg, including support for seeking, validation and timestamp interpretation. Ogg is an interleaving data container developed by Monty at Xiph.org, originally to support the Ogg Vorbis audio format but now used for many free codecs including Dirac, FLAC, Speex and Theora. ok pea@ --- multimedia/oggz/Makefile | 30 +++++ multimedia/oggz/distinfo | 5 + multimedia/oggz/patches/patch-doc_Makefile_in | 39 +++++++ .../patch-src_tools_oggz-chop_httpdate_c | 12 ++ .../patch-src_tools_oggz-chop_httpdate_test_c | 11 ++ multimedia/oggz/pkg/DESCR | 11 ++ multimedia/oggz/pkg/PFRAG.shared | 2 + multimedia/oggz/pkg/PLIST | 104 ++++++++++++++++++ 8 files changed, 214 insertions(+) create mode 100644 multimedia/oggz/Makefile create mode 100644 multimedia/oggz/distinfo create mode 100644 multimedia/oggz/patches/patch-doc_Makefile_in create mode 100644 multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_c create mode 100644 multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_test_c create mode 100644 multimedia/oggz/pkg/DESCR create mode 100644 multimedia/oggz/pkg/PFRAG.shared create mode 100644 multimedia/oggz/pkg/PLIST diff --git a/multimedia/oggz/Makefile b/multimedia/oggz/Makefile new file mode 100644 index 00000000000..09a8e416392 --- /dev/null +++ b/multimedia/oggz/Makefile @@ -0,0 +1,30 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ + +COMMENT = inspect, edit and validate Ogg files + +V = 1.1.1 +PKGNAME = oggz-${V} +DISTNAME = liboggz-${V} +CATEGORIES = multimedia +HOMEPAGE = http://www.xiph.org/oggz/ + +MAINTAINER = Eric Faurot + +SHARED_LIBS = oggz 0.0 + +# BSD +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM = Yes +PERMIT_DISTFILES_FTP = Yes + +MASTER_SITES = http://downloads.xiph.org/releases/liboggz/ + +WANTLIB = c ogg m + +LIB_DEPENDS = ::audio/libogg + +CONFIGURE_STYLE = gnu +USE_LIBTOOL = Yes + +.include diff --git a/multimedia/oggz/distinfo b/multimedia/oggz/distinfo new file mode 100644 index 00000000000..3cb921e6dca --- /dev/null +++ b/multimedia/oggz/distinfo @@ -0,0 +1,5 @@ +MD5 (liboggz-1.1.1.tar.gz) = NkmmV/jjaLiBuosbVzgf9w== +RMD160 (liboggz-1.1.1.tar.gz) = 6FBzExvI7AIbFSlIfvIYAtAbAmA= +SHA1 (liboggz-1.1.1.tar.gz) = NUAZDIyaMdg0qneU75kburaZ9N4= +SHA256 (liboggz-1.1.1.tar.gz) = a6+tseCprkrIMwTzhiGlYhuOjjKSeInmWphwbSE9QVo= +SIZE (liboggz-1.1.1.tar.gz) = 702261 diff --git a/multimedia/oggz/patches/patch-doc_Makefile_in b/multimedia/oggz/patches/patch-doc_Makefile_in new file mode 100644 index 00000000000..ce5ce0edf26 --- /dev/null +++ b/multimedia/oggz/patches/patch-doc_Makefile_in @@ -0,0 +1,39 @@ +$OpenBSD: patch-doc_Makefile_in,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ +--- doc/Makefile.in.orig Thu Apr 29 03:39:46 2010 ++++ doc/Makefile.in Wed Nov 3 11:48:35 2010 +@@ -478,12 +478,8 @@ html: oggz.1.html oggz-diff.1.html oggz-dump.1.html og + @HAVE_MAN2HTML_TRUE@%.1.html: %.1 + @HAVE_MAN2HTML_TRUE@ man2html $< > $@ + +-@HAVE_DOXYGEN_TRUE@doxygen-build.stamp: Doxyfile $(top_srcdir)/include/oggz/*.h $(top_srcdir)/src/examples/*.c +-@HAVE_DOXYGEN_TRUE@ doxygen +-@HAVE_DOXYGEN_TRUE@ touch doxygen-build.stamp +-@HAVE_DOXYGEN_FALSE@doxygen-build.stamp: +-@HAVE_DOXYGEN_FALSE@ echo "*** Warning: Doxygen not found; documentation will not be built." +-@HAVE_DOXYGEN_FALSE@ touch doxygen-build.stamp ++doxygen-build.stamp: ++ touch doxygen-build.stamp + + dist-hook: + if test -d liboggz; then \ +@@ -503,17 +499,9 @@ dist-hook: + + install-data-local: doxygen-build.stamp + $(mkinstalldirs) $(DESTDIR)$(docdir) +- if test -d liboggz; then \ +- for dir in liboggz/*; do \ +- if test -d $$dir; then \ +- b=`basename $$dir`; \ +- $(mkinstalldirs) $(DESTDIR)$(docdir)/$$b; \ +- for f in $$dir/*; do \ +- $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/$$b; \ +- done \ +- fi \ +- done \ +- fi ++ for f in liboggz/html/*; do \ ++ $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/; \ ++ done + + uninstall-local: + rm -rf $(DESTDIR)$(docdir) diff --git a/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_c b/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_c new file mode 100644 index 00000000000..18f4a047ded --- /dev/null +++ b/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-src_tools_oggz-chop_httpdate_c,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ +--- src/tools/oggz-chop/httpdate.c.orig Sat Jan 30 06:55:59 2010 ++++ src/tools/oggz-chop/httpdate.c Wed Nov 3 10:07:10 2010 +@@ -60,7 +60,5 @@ httpdate_parse (char * s, int n) + + d.tm_year -= 1900; + +- d.tm_sec -= timezone; +- +- return mktime (&d); ++ return timegm (&d); + } diff --git a/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_test_c b/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_test_c new file mode 100644 index 00000000000..0202bebcfd6 --- /dev/null +++ b/multimedia/oggz/patches/patch-src_tools_oggz-chop_httpdate_test_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-src_tools_oggz-chop_httpdate_test_c,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ +--- src/tools/oggz-chop/httpdate_test.c.orig Sat Jan 30 06:55:59 2010 ++++ src/tools/oggz-chop/httpdate_test.c Wed Nov 3 10:09:25 2010 +@@ -21,7 +21,6 @@ main (int argc, char * argv[]) + if (t == (time_t)-1) { + FAIL ("Parse error"); + } else { +- t -= timezone; + httpdate_snprint (d_out, 30, t); + + INFO ("Output date:"); diff --git a/multimedia/oggz/pkg/DESCR b/multimedia/oggz/pkg/DESCR new file mode 100644 index 00000000000..c2d2a2de49c --- /dev/null +++ b/multimedia/oggz/pkg/DESCR @@ -0,0 +1,11 @@ +Oggz comprises liboggz and the tool oggz, which provides commands to +inspect, edit and validate Ogg files. The oggz-chop tool can also be +used to serve time ranges of Ogg media over HTTP by any web server that +supports CGI. + +liboggz is a C library for reading and writing Ogg files and streams. +It offers various features over the reference libogg, including +support for seeking, validation and timestamp interpretation. Ogg is +an interleaving data container developed by Monty at Xiph.org, +originally to support the Ogg Vorbis audio format but now used for +many free codecs including Dirac, FLAC, Speex and Theora. diff --git a/multimedia/oggz/pkg/PFRAG.shared b/multimedia/oggz/pkg/PFRAG.shared new file mode 100644 index 00000000000..2ba662e8012 --- /dev/null +++ b/multimedia/oggz/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ +@lib lib/liboggz.so.${LIBoggz_VERSION} diff --git a/multimedia/oggz/pkg/PLIST b/multimedia/oggz/pkg/PLIST new file mode 100644 index 00000000000..076649481f9 --- /dev/null +++ b/multimedia/oggz/pkg/PLIST @@ -0,0 +1,104 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2010/11/05 12:54:51 eric Exp $ +%%SHARED%% +@bin bin/oggz +@bin bin/oggz-chop +@bin bin/oggz-codecs +@bin bin/oggz-comment +bin/oggz-diff +@bin bin/oggz-dump +@bin bin/oggz-info +@bin bin/oggz-known-codecs +@bin bin/oggz-merge +@bin bin/oggz-rip +@bin bin/oggz-scan +@bin bin/oggz-sort +@bin bin/oggz-validate +include/oggz/ +include/oggz/oggz.h +include/oggz/oggz_comments.h +include/oggz/oggz_constants.h +include/oggz/oggz_deprecated.h +include/oggz/oggz_io.h +include/oggz/oggz_off_t.h +include/oggz/oggz_off_t_generated.h +include/oggz/oggz_packet.h +include/oggz/oggz_read.h +include/oggz/oggz_seek.h +include/oggz/oggz_stream.h +include/oggz/oggz_table.h +include/oggz/oggz_write.h +lib/liboggz.a +lib/liboggz.la +lib/pkgconfig/ +lib/pkgconfig/oggz.pc +@man man/man1/oggz-chop.1 +@man man/man1/oggz-codecs.1 +@man man/man1/oggz-comment.1 +@man man/man1/oggz-diff.1 +@man man/man1/oggz-dump.1 +@man man/man1/oggz-info.1 +@man man/man1/oggz-known-codecs.1 +@man man/man1/oggz-merge.1 +@man man/man1/oggz-rip.1 +@man man/man1/oggz-scan.1 +@man man/man1/oggz-sort.1 +@man man/man1/oggz-validate.1 +@man man/man1/oggz.1 +share/doc/liboggz/ +share/doc/liboggz/annotated.html +share/doc/liboggz/classes.html +share/doc/liboggz/doxygen.css +share/doc/liboggz/doxygen.png +share/doc/liboggz/files.html +share/doc/liboggz/functions.html +share/doc/liboggz/functions_vars.html +share/doc/liboggz/globals.html +share/doc/liboggz/globals_defs.html +share/doc/liboggz/globals_enum.html +share/doc/liboggz/globals_eval.html +share/doc/liboggz/globals_func.html +share/doc/liboggz/globals_type.html +share/doc/liboggz/group__basics.html +share/doc/liboggz/group__building.html +share/doc/liboggz/group__configuration.html +share/doc/liboggz/group__force__feed.html +share/doc/liboggz/group__hungry.html +share/doc/liboggz/group__install.html +share/doc/liboggz/group__metric.html +share/doc/liboggz/group__read__api.html +share/doc/liboggz/group__seek__api.html +share/doc/liboggz/group__seek__semantics.html +share/doc/liboggz/group__write__api.html +share/doc/liboggz/index.html +share/doc/liboggz/modules.html +share/doc/liboggz/oggz_8h.html +share/doc/liboggz/oggz_8h_source.html +share/doc/liboggz/oggz__comments_8h.html +share/doc/liboggz/oggz__comments_8h_source.html +share/doc/liboggz/oggz__constants_8h.html +share/doc/liboggz/oggz__constants_8h_source.html +share/doc/liboggz/oggz__deprecated_8h.html +share/doc/liboggz/oggz__deprecated_8h_source.html +share/doc/liboggz/oggz__io_8h.html +share/doc/liboggz/oggz__io_8h_source.html +share/doc/liboggz/oggz__off__t_8h.html +share/doc/liboggz/oggz__off__t_8h_source.html +share/doc/liboggz/oggz__packet_8h.html +share/doc/liboggz/oggz__packet_8h_source.html +share/doc/liboggz/oggz__read_8h.html +share/doc/liboggz/oggz__read_8h_source.html +share/doc/liboggz/oggz__seek_8h.html +share/doc/liboggz/oggz__seek_8h_source.html +share/doc/liboggz/oggz__stream_8h.html +share/doc/liboggz/oggz__stream_8h_source.html +share/doc/liboggz/oggz__table_8h.html +share/doc/liboggz/oggz__table_8h_source.html +share/doc/liboggz/oggz__write_8h.html +share/doc/liboggz/oggz__write_8h_source.html +share/doc/liboggz/structOggzComment.html +share/doc/liboggz/structoggz__packet.html +share/doc/liboggz/structoggz__position.html +share/doc/liboggz/tab_b.gif +share/doc/liboggz/tab_l.gif +share/doc/liboggz/tab_r.gif +share/doc/liboggz/tabs.css