summaryrefslogtreecommitdiff
path: root/multimedia/toxine/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-06 11:49:00 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-06 11:49:00 +0000
commit4f389e3ad28b488a8e261969200664a6dd88a90e (patch)
treee7b41bef398ff27ca63d9d47d2a0ad929a4c2cb1 /multimedia/toxine/Makefile
parentAdd wavpack. (diff)
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>
Diffstat (limited to 'multimedia/toxine/Makefile')
-rw-r--r--multimedia/toxine/Makefile84
1 files changed, 84 insertions, 0 deletions
diff --git a/multimedia/toxine/Makefile b/multimedia/toxine/Makefile
new file mode 100644
index 000000000000..caf9dfd85a46
--- /dev/null
+++ b/multimedia/toxine/Makefile
@@ -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>