mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-03 11:12:13 +00:00
Toxine is a text user interface using the xine library. It permit to playback
all streams that xine supports, in interactive or in script mode (using toxine syntax). It use xine's visualisation plugins (AAlib, X11, DXR3/HW+), and/or his own 'none' one (audio only output). PR: ports/82951 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
This commit is contained in:
parent
84641a60c1
commit
4f389e3ad2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=138577
@ -155,6 +155,7 @@
|
||||
SUBDIR += tosvcd
|
||||
SUBDIR += totem
|
||||
SUBDIR += totem-gstreamer
|
||||
SUBDIR += toxine
|
||||
SUBDIR += transcode
|
||||
SUBDIR += vcdgear
|
||||
SUBDIR += vcdimager
|
||||
|
84
multimedia/toxine/Makefile
Normal file
84
multimedia/toxine/Makefile
Normal file
@ -0,0 +1,84 @@
|
||||
# New ports collection makefile for: multimedia/toxine
|
||||
# Date created: 3 August 2005
|
||||
# Whom: Alejandro Pulver <alejandro@varnet.biz>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= toxine
|
||||
PORTVERSION= 0.6.3
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= toxine
|
||||
|
||||
MAINTAINER= alejandro@varnet.biz
|
||||
COMMENT= Text user interface using the xine library
|
||||
|
||||
LIB_DEPENDS= xine.13:${PORTSDIR}/multimedia/libxine
|
||||
|
||||
# configure rejects amd64
|
||||
ONLY_FOR_ARCHS= i386
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib -I${X11BASE}/lib"
|
||||
|
||||
MAN1= toxine.1
|
||||
|
||||
OPTIONS= AALIB "Enable aalib support" on \
|
||||
LIBCACA "Enable libcaca support" on \
|
||||
OPTIMIZED_CFLAGS "Enable compilation optimizations" on
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 502000
|
||||
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
|
||||
CONFIGURE_ARGS+= --with-readline=${LOCALBASE}
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-main.c
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_AALIB)
|
||||
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_LIBCACA)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|alsa09|oss|g' ${WRKSRC}/misc/dvdplayer.sh.in
|
||||
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
|
||||
@${REINPLACE_CMD} -e 's|-mpreferred-stack-boundary=2||g ; \
|
||||
s|-fno-strict-aliasing||g ; \
|
||||
s|-fschedule-insns2||g ; \
|
||||
s|-mwide-multiply||g ; \
|
||||
s|-falign-functions=4||g ; \
|
||||
s|-falign-loops=4||g ; \
|
||||
s|-falign-jumps=4||g ; \
|
||||
s|-fomit-frame-pointer||g ; \
|
||||
s|-fexpensive-optimizations||g ; \
|
||||
s|-ffast-math||g ; \
|
||||
s|-funroll-loops||g ; \
|
||||
s|-finline-functions||g' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_AALIB) || exists(${LOCALBASE}/lib/libaa.a)
|
||||
PLIST_SUB+= AALIB=""
|
||||
.else
|
||||
PLIST_SUB+= AALIB="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LIBCACA) || exists(${LOCALBASE}/lib/libcaca.a)
|
||||
PLIST_SUB+= LIBCACA=""
|
||||
.else
|
||||
PLIST_SUB+= LIBCACA="@comment "
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
multimedia/toxine/distinfo
Normal file
2
multimedia/toxine/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (toxine-0.6.3.tar.gz) = 261c6ac24f77337a9311d39f42fb5be4
|
||||
SIZE (toxine-0.6.3.tar.gz) = 342432
|
13
multimedia/toxine/files/extra-patch-main.c
Normal file
13
multimedia/toxine/files/extra-patch-main.c
Normal file
@ -0,0 +1,13 @@
|
||||
FreeBSD 4.X does not have O_SYNC yet
|
||||
|
||||
--- src/main.c.orig Mon Apr 12 17:55:02 2004
|
||||
+++ src/main.c Wed Jul 6 12:16:42 2005
|
||||
@@ -207,7 +207,7 @@
|
||||
{
|
||||
char *ofile = (optarg) ? optarg : "toxine.out";
|
||||
|
||||
- if((tox->msg_fd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, 0644)) < 0) {
|
||||
+ if((tox->msg_fd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC | O_FSYNC, 0644)) < 0) {
|
||||
fprintf(stderr, "Cannot open %s: %s\n", ofile, strerror(errno));
|
||||
exit(1);
|
||||
}
|
23
multimedia/toxine/pkg-descr
Normal file
23
multimedia/toxine/pkg-descr
Normal file
@ -0,0 +1,23 @@
|
||||
Toxine is a text user interface using the xine library. It permit to playback
|
||||
all streams that xine supports, in interactive or in script mode (using
|
||||
toxine syntax). It use xine's visualisation plugins (AAlib, X11, DXR3/HW+),
|
||||
and/or his own 'none' one (audio only output).
|
||||
|
||||
It use the readline library, which permit, in interactive mode, to recall
|
||||
commands, completions, etc..
|
||||
|
||||
You can use it in a console (useful for DXR3/HW+ owners, using TV output), or
|
||||
in a X11 terminal window.
|
||||
If you're a developper, and you want to test/debug your own plugins, using
|
||||
toxine is useful due of script usage. This way, you can reproduce actions
|
||||
without interactions, redirect outputs to a file (name given or not). You can
|
||||
also see how to implement your own xine library frontend, because toxine
|
||||
implement almost all xine's API calls.
|
||||
|
||||
If you don't like GUIs, or love console (and AAlib video output), toxine is
|
||||
for you ;-)
|
||||
|
||||
WWW: http://toxine.sourceforge.net/
|
||||
|
||||
- Alejandro Pulver
|
||||
alejandro@vanet.biz
|
9
multimedia/toxine/pkg-plist
Normal file
9
multimedia/toxine/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
bin/dvdplayer.sh
|
||||
bin/toxine
|
||||
%%AALIB%%lib/toxine/plugins/toxine_vo_plugin_aa.so
|
||||
%%LIBCACA%%lib/toxine/plugins/toxine_vo_plugin_caca.so
|
||||
lib/toxine/plugins/toxine_vo_plugin_dxr3.so
|
||||
lib/toxine/plugins/toxine_vo_plugin_none.so
|
||||
lib/toxine/plugins/toxine_vo_plugin_x11.so
|
||||
@dirrm lib/toxine/plugins
|
||||
@dirrm lib/toxine
|
Loading…
x
Reference in New Issue
Block a user