aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-02-25 16:45:59 +0800
committermarcus <marcus@FreeBSD.org>2004-02-25 16:45:59 +0800
commitb4be506da1c90ca0945825be598b31f00d8ae261 (patch)
tree44061243c62ec5f40a1dd3579052dcfce5bdef06 /multimedia
parent20ead0abbca78e0040929c4faa10aa9a2961e7e0 (diff)
downloadfreebsd-ports-gnome-b4be506da1c90ca0945825be598b31f00d8ae261.tar.gz
freebsd-ports-gnome-b4be506da1c90ca0945825be598b31f00d8ae261.tar.zst
freebsd-ports-gnome-b4be506da1c90ca0945825be598b31f00d8ae261.zip
Add libtheora, Xiph.Org's video codec, intended for use within the Ogg
project's multimedia streaming system. Theora is derived directly from On2's VP3 codec. Submitted by: Koop Mast <kwm@rainbow-runner.nl>
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libtheora/Makefile51
-rw-r--r--multimedia/libtheora/distinfo2
-rw-r--r--multimedia/libtheora/files/patch-Makefile.in11
-rw-r--r--multimedia/libtheora/pkg-descr7
-rw-r--r--multimedia/libtheora/pkg-plist4
5 files changed, 75 insertions, 0 deletions
diff --git a/multimedia/libtheora/Makefile b/multimedia/libtheora/Makefile
new file mode 100644
index 000000000000..5029ccdb7d7c
--- /dev/null
+++ b/multimedia/libtheora/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: theora
+# Date created: 09 februari 2003
+# Whom: Koop Mast <kwm@rainbow-runner.nl>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libtheora
+PORTVERSION= 1.0.a2
+CATEGORIES= graphics
+MASTER_SITES= http://www.theora.org/files/ \
+ http://download.videolan.org/pub/videolan/vlc/0.7.0/contrib/
+DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a2/alpha2/}
+
+MAINTAINER= kwm@rainbow-runner.nl
+COMMENT= Theora video codec for the Ogg multimedia streaming system
+
+LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USE_REINPLACE= yes
+USE_LIBTOOL= yes
+INSTALLS_SHLIB= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include " \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ LIBS="${PTHEAD_LIBS}"
+CONFIGURE_ARGS= --disable-sdltest \
+ --enable-shared
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|sdl-config|sdl11-config|g; \
+ s|-O2||g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|SDL/SDL.h|SDL11/SDL.h|g; \
+ s|machine/soundcard.h|sys/soundcard.h|g' \
+ ${WRKSRC}/examples/player_example.c
+ @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/examples/Makefile.in
+
+do-install:
+ for i in ${WRKSRC}/lib/.libs/libtheora.so.0 \
+ ${WRKSRC}/lib/.libs/libtheora.so \
+ ${WRKSRC}/lib/.libs/libtheora.a ; do \
+ ${INSTALL_DATA} $$i ${PREFIX}/lib ; \
+ done
+ @${MKDIR} ${PREFIX}/include/theora
+ @${INSTALL_DATA} ${WRKSRC}/include/theora/theora.h \
+ ${PREFIX}/include/theora/
+
+.include <bsd.port.mk>
diff --git a/multimedia/libtheora/distinfo b/multimedia/libtheora/distinfo
new file mode 100644
index 000000000000..6781523470f8
--- /dev/null
+++ b/multimedia/libtheora/distinfo
@@ -0,0 +1,2 @@
+MD5 (libtheora-1.0alpha2.tar.gz) = 8fdeb6fabc7c67598b1031e0a3cb73dd
+SIZE (libtheora-1.0alpha2.tar.gz) = 281921
diff --git a/multimedia/libtheora/files/patch-Makefile.in b/multimedia/libtheora/files/patch-Makefile.in
new file mode 100644
index 000000000000..3892c1b35e45
--- /dev/null
+++ b/multimedia/libtheora/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Tue Feb 10 21:32:49 2004
++++ Makefile.in Tue Feb 10 21:33:01 2004
+@@ -86,7 +86,7 @@
+
+ AUTOMAKE_OPTIONS = foreign dist-zip
+
+-SUBDIRS = lib include examples debian
++SUBDIRS = lib include debian
+
+ EXTRA_DIST = COPYING autogen.sh
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
diff --git a/multimedia/libtheora/pkg-descr b/multimedia/libtheora/pkg-descr
new file mode 100644
index 000000000000..6370a23db61d
--- /dev/null
+++ b/multimedia/libtheora/pkg-descr
@@ -0,0 +1,7 @@
+Theora is Xiph.Org's video codec, intended for use within the Ogg
+project's Ogg multimedia streaming system. Theora is derived
+directly from On2's VP3 codec.
+
+This is alpha testing software; the API will probably change.
+
+WWW: http://www.theora.org
diff --git a/multimedia/libtheora/pkg-plist b/multimedia/libtheora/pkg-plist
new file mode 100644
index 000000000000..bf5cad64a477
--- /dev/null
+++ b/multimedia/libtheora/pkg-plist
@@ -0,0 +1,4 @@
+include/theora/theora.h
+lib/libtheora.a
+lib/libtheora.so
+lib/libtheora.so.0