pkgsrc-WIP-changes archive

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

Add libtheoraplay version 0.0.20190909



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Sun Jan 24 20:17:51 2021 +0200
Changeset:	a29b7046f4d61a793b77c61c5bbe4f73b9c40765

Added Files:
	libtheoraplay/DESCR
	libtheoraplay/Makefile
	libtheoraplay/PLIST
	libtheoraplay/buildlink3.mk
	libtheoraplay/distinfo

Log Message:
Add libtheoraplay version 0.0.20190909

TheoraPlay is a simple library to make decoding of Ogg Theora videos
easier.

A tiny example to pull data out of an .ogv file is about 50 lines of C
code, and a complete SDL-based media player is about 300 lines of code.

TheoraPlay is optimized for multicore CPUs, and is designed to be
programmer-friendly. You will need libogg, libvorbis, and libtheora, of
course, but then you just drop a .c file and two headers into your
project and you're ready to hook up video decoding, without worrying
about Ogg pages, Vorbis blocks, or Theora decoder state.

Places TheoraPlay can be found in use: - Shank.  - Crypt of the
Necrodancer.  - 20XX.  - FNA.

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

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

diffstat:
 libtheoraplay/DESCR         | 14 ++++++++++++++
 libtheoraplay/Makefile      | 34 ++++++++++++++++++++++++++++++++++
 libtheoraplay/PLIST         |  4 ++++
 libtheoraplay/buildlink3.mk | 16 ++++++++++++++++
 libtheoraplay/distinfo      |  6 ++++++
 5 files changed, 74 insertions(+)

diffs:
diff --git a/libtheoraplay/DESCR b/libtheoraplay/DESCR
new file mode 100644
index 0000000000..c4b1bf4222
--- /dev/null
+++ b/libtheoraplay/DESCR
@@ -0,0 +1,14 @@
+TheoraPlay is a simple library to make decoding of Ogg Theora videos
+easier.
+
+A tiny example to pull data out of an .ogv file is about 50 lines of C
+code, and a complete SDL-based media player is about 300 lines of code.
+
+TheoraPlay is optimized for multicore CPUs, and is designed to be
+programmer-friendly. You will need libogg, libvorbis, and libtheora, of
+course, but then you just drop a .c file and two headers into your
+project and you're ready to hook up video decoding, without worrying
+about Ogg pages, Vorbis blocks, or Theora decoder state.
+
+Places TheoraPlay can be found in use: - Shank.  - Crypt of the
+Necrodancer.  - 20XX.  - FNA.
diff --git a/libtheoraplay/Makefile b/libtheoraplay/Makefile
new file mode 100644
index 0000000000..ea8fd6f2fb
--- /dev/null
+++ b/libtheoraplay/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME=	99e5fc74603e
+PKGNAME=	libtheoraplay-0.0.20190909
+CATEGORIES=	multimedia
+MASTER_SITES=	https://hg.icculus.org/icculus/theoraplay/archive/
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://hg.icculus.org/icculus/theoraplay/archive/
+COMMENT=	Simple library to make decoding of Ogg Theora videos easier
+LICENSE=	zlib
+
+WRKSRC=	${WRKDIR}/theoraplay-99e5fc74603e
+
+
+do-build:
+	cd ${WRKSRC} && \
+	${CC} ${CFLAGS} ${LDFLAGS} -fPIC -shared -I${PREFIX}/include \
+		-L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib \
+		-lpthread -logg -lvorbis -ltheoradec -o \
+		${WRKSRC}/libtheoraplay.so \
+		theoraplay.c
+
+
+INSTALLATION_DIRS=	lib include
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/*theora*.h ${DESTDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/libtheoraplay.so \
+		${DESTDIR}${PREFIX}/lib
+
+.include "../../multimedia/libogg/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../multimedia/libtheora/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libtheoraplay/PLIST b/libtheoraplay/PLIST
new file mode 100644
index 0000000000..ed30f79dc5
--- /dev/null
+++ b/libtheoraplay/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+include/theoraplay.h
+include/theoraplay_cvtrgb.h
+lib/libtheoraplay.so
diff --git a/libtheoraplay/buildlink3.mk b/libtheoraplay/buildlink3.mk
new file mode 100644
index 0000000000..b199ff53f7
--- /dev/null
+++ b/libtheoraplay/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libtheoraplay
+
+.if !defined(LIBTHEORAPLAY_BUILDLINK3_MK)
+LIBTHEORAPLAY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libtheoraplay+=	libtheoraplay>=0.0.20190909
+BUILDLINK_PKGSRCDIR.libtheoraplay?=	../../wip/libtheoraplay
+
+.include "../../multimedia/libogg/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../multimedia/libtheora/buildlink3.mk"
+.endif	# LIBTHEORAPLAY_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libtheoraplay
diff --git a/libtheoraplay/distinfo b/libtheoraplay/distinfo
new file mode 100644
index 0000000000..98e83a0e78
--- /dev/null
+++ b/libtheoraplay/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (99e5fc74603e.tar.gz) = 7a88a44511b552d38f6d00791d1759466bab3149
+RMD160 (99e5fc74603e.tar.gz) = 70c9233788b7b59ba162384e11b3ed8ca5903d6d
+SHA512 (99e5fc74603e.tar.gz) = 7abe70b5b36f3e0548fe15b49a90502bbbe582a1c847fb8c16a55054277b8ea925bce717b2984dde0543511b26af987d5ebda84c5408efe8739b742e784370e7
+Size (99e5fc74603e.tar.gz) = 15027 bytes


Home | Main Index | Thread Index | Old Index