2000-10-14 12:05:34 +02:00
|
|
|
# New ports collection makefile for: xine
|
|
|
|
# Date created: 14 Oct 2000
|
|
|
|
# Whom: alex
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-05-18 12:04:27 +02:00
|
|
|
PORTNAME= xine
|
2007-07-15 17:28:34 +02:00
|
|
|
PORTVERSION= 0.99.5
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 4
|
2003-02-24 13:54:56 +01:00
|
|
|
CATEGORIES= multimedia
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-ui%20%28skinned%20front%20end%29/${PORTVERSION}
|
2001-09-20 09:50:12 +02:00
|
|
|
DISTNAME= ${PORTNAME}-ui-${PORTVERSION}
|
2000-10-14 12:05:34 +02:00
|
|
|
|
2001-11-03 20:16:50 +01:00
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2003-02-22 15:25:38 +01:00
|
|
|
COMMENT= An X11 multimedia player
|
2000-10-14 12:05:34 +02:00
|
|
|
|
2007-02-15 09:35:23 +01:00
|
|
|
LIB_DEPENDS= xine.1:${PORTSDIR}/multimedia/libxine \
|
2007-07-15 17:28:34 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png
|
2001-09-20 09:50:12 +02:00
|
|
|
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_XORG= x11 xt xv xinerama xxf86vm
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2002-01-29 14:46:28 +01:00
|
|
|
USE_GMAKE= yes
|
2007-07-15 17:28:34 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2002-01-29 14:46:28 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
|
|
THREAD_LIBS="${PTHREAD_LIBS}"
|
2000-10-14 12:05:34 +02:00
|
|
|
|
2002-05-20 19:59:07 +02:00
|
|
|
MANLANG= "" de es fr pl
|
2003-02-01 17:44:37 +01:00
|
|
|
MAN1= aaxine.1 xine-bugreport.1 xine-check.1 xine-remote.1 xine.1
|
2000-12-20 16:14:07 +01:00
|
|
|
|
2007-07-15 17:28:34 +02:00
|
|
|
OPTIONS= CACA "Enable libcaca output" off \
|
|
|
|
AALIB "Enable aalib output" off \
|
|
|
|
LIRC "Enable lirc support" off \
|
2007-07-29 12:17:57 +02:00
|
|
|
CURL "Enable curl support" on \
|
2007-07-15 17:28:34 +02:00
|
|
|
WIN32_CODECS "Enable win32 codecs (for i386 only)" on \
|
|
|
|
NLS "Enable Native Language Support" on \
|
|
|
|
XFT "Enable Xft support" on
|
|
|
|
|
2007-08-11 07:52:46 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/xine-ui
|
2007-07-15 17:28:34 +02:00
|
|
|
|
2001-11-30 20:53:00 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-08-10 16:03:39 +02:00
|
|
|
.if ${ARCH} == "i386"
|
2001-11-30 20:53:00 +01:00
|
|
|
.if !defined(WITHOUT_WIN32_CODECS)
|
|
|
|
RUN_DEPENDS= ${CODEC_DETECTION_FILE}:${CODEC_PORT}
|
|
|
|
|
2002-11-28 17:37:35 +01:00
|
|
|
CODEC_PORT= ${PORTSDIR}/multimedia/win32-codecs
|
2001-11-30 20:53:00 +01:00
|
|
|
CODEC_DETECTION_FILE!= ${MAKE} -f ${CODEC_PORT}/Makefile -V CODEC_DETECTION_FILE
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2007-07-15 17:28:34 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2004-05-12 18:53:03 +02:00
|
|
|
.if !defined(WITHOUT_XFT)
|
2009-01-23 17:28:36 +01:00
|
|
|
USE_XORG+= xft
|
2004-05-12 18:53:03 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xft
|
|
|
|
.endif
|
|
|
|
|
2007-07-15 17:28:34 +02:00
|
|
|
.if !defined(WITHOUT_CURL)
|
2009-01-23 16:43:14 +01:00
|
|
|
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl
|
2007-07-15 17:28:34 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-curl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIRC)
|
|
|
|
LIB_DEPENDS+= lirc_client.1:${PORTSDIR}/comms/lirc
|
|
|
|
CONFIGURE_ARGS+= --enable-lirc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-lirc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CACA)
|
2009-05-10 07:53:18 +02:00
|
|
|
LIBXINE_VER= 1.26
|
2007-07-16 14:52:30 +02:00
|
|
|
.if !exists(${LOCALBASE}/lib/xine/plugins/${LIBXINE_VER}/xineplug_vo_out_caca.so)
|
|
|
|
IGNORE=libxine should be compiled with caca support
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS+= caca.0:${PORTSDIR}/graphics/libcaca
|
2006-08-27 15:04:36 +02:00
|
|
|
PLIST_SUB+= WITH_CACA=""
|
2004-05-12 18:53:03 +02:00
|
|
|
.else
|
2006-08-27 15:04:36 +02:00
|
|
|
PLIST_SUB+= WITH_CACA="@comment "
|
2007-07-15 17:28:34 +02:00
|
|
|
CONFIGURE_ARGS+= --without-caca --disable-cacatest
|
2006-08-27 15:04:36 +02:00
|
|
|
.endif
|
|
|
|
|
2007-07-15 17:28:34 +02:00
|
|
|
.if defined(WITH_AALIB)
|
2006-08-27 15:04:36 +02:00
|
|
|
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
|
|
|
|
PLIST_SUB+= WITH_AALIB=""
|
2007-07-15 17:28:34 +02:00
|
|
|
CONFIGURE_ARGS+= --with-aalib
|
2006-08-27 15:04:36 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= WITH_AALIB="@comment "
|
|
|
|
CONFIGURE_ARGS+= --without-aalib --disable-aalibtest
|
2003-08-10 08:09:07 +02:00
|
|
|
.endif
|
|
|
|
|
2002-01-29 14:46:28 +01:00
|
|
|
post-patch:
|
2002-06-30 19:35:29 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
2002-01-29 14:46:28 +01:00
|
|
|
's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \
|
2007-07-15 17:28:34 +02:00
|
|
|
s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g' \
|
|
|
|
${WRKSRC}/configure
|
2001-10-26 19:00:09 +02:00
|
|
|
|
2000-10-14 18:20:52 +02:00
|
|
|
post-install:
|
2002-05-20 19:59:07 +02:00
|
|
|
.for l in es fr
|
|
|
|
@${CP} ${PREFIX}/man/man1/aaxine.1 ${PREFIX}/man/${l}/man1/aaxine.1
|
|
|
|
.endfor
|
|
|
|
.for l in es fr pl
|
|
|
|
@${CP} ${PREFIX}/man/man1/xine-bugreport.1 ${PREFIX}/man/${l}/man1/xine-bugreport.1
|
|
|
|
.endfor
|
|
|
|
.for l in es fr pl
|
|
|
|
@${CP} ${PREFIX}/man/man1/xine-check.1 ${PREFIX}/man/${l}/man1/xine-check.1
|
|
|
|
.endfor
|
2003-02-01 17:44:37 +01:00
|
|
|
.for l in es fr
|
2002-05-20 19:59:07 +02:00
|
|
|
@${CP} ${PREFIX}/man/man1/xine-remote.1 ${PREFIX}/man/${l}/man1/xine-remote.1
|
|
|
|
.endfor
|
2000-10-14 18:20:52 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2001-11-30 20:53:00 +01:00
|
|
|
.include <bsd.port.post.mk>
|