2001-09-20 03:50:12 -04:00
|
|
|
# New ports collection makefile for: libxine
|
|
|
|
# Date created: 14 Oct 2000
|
|
|
|
# Whom: alex
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xine
|
2004-01-07 09:14:16 -05:00
|
|
|
PORTVERSION= 1.0.r3
|
2004-04-11 11:56:05 -04:00
|
|
|
PORTREVISION= 5
|
2003-02-24 07:54:56 -05:00
|
|
|
CATEGORIES= multimedia
|
2003-02-01 11:44:37 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-09-20 03:50:12 -04:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
PKGNAMEPREFIX= lib
|
2004-04-11 11:56:05 -04:00
|
|
|
DISTNAME= ${PORTNAME}-lib-1-rc3c
|
2001-09-20 03:50:12 -04:00
|
|
|
|
2001-11-03 14:16:50 -05:00
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2003-02-22 09:25:38 -05:00
|
|
|
COMMENT= Libraries for xine multimedia player
|
2001-09-20 03:50:12 -04:00
|
|
|
|
2003-02-01 11:44:37 -05:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
|
2003-08-16 12:39:16 -04:00
|
|
|
LIB_DEPENDS= FLAC.5:${PORTSDIR}/audio/flac \
|
|
|
|
a52.0:${PORTSDIR}/audio/liba52 \
|
2003-12-20 11:37:57 -05:00
|
|
|
vorbis.3:${PORTSDIR}/audio/libvorbis \
|
2004-01-07 09:14:16 -05:00
|
|
|
mad.2:${PORTSDIR}/audio/libmad \
|
2003-08-16 12:39:16 -04:00
|
|
|
speex.2:${PORTSDIR}/audio/speex \
|
|
|
|
aa.1:${PORTSDIR}/graphics/aalib \
|
2003-03-26 08:57:01 -05:00
|
|
|
mng.1:${PORTSDIR}/graphics/libmng \
|
2004-05-04 11:58:29 -04:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2003-03-26 08:57:01 -05:00
|
|
|
dvdread.3:${PORTSDIR}/multimedia/libdvdread
|
2002-01-24 04:22:15 -05:00
|
|
|
|
2004-02-03 23:36:30 -05:00
|
|
|
USE_GETTEXT= yes
|
2004-03-30 14:20:22 -05:00
|
|
|
USE_ICONV= yes
|
2001-09-20 03:50:12 -04:00
|
|
|
USE_X_PREFIX= yes
|
2004-04-11 11:56:05 -04:00
|
|
|
USE_LIBTOOL_VER=15
|
2003-02-01 11:44:37 -05:00
|
|
|
WANT_GNOME= yes
|
2004-04-11 11:56:05 -04:00
|
|
|
USE_GNOME= lthack gnomehack gnometarget
|
2002-01-29 08:43:33 -05:00
|
|
|
USE_GMAKE= yes
|
2004-01-07 09:14:16 -05:00
|
|
|
USE_GL= yes
|
2004-01-28 01:17:42 -05:00
|
|
|
USE_SDL= sdl
|
2002-06-30 09:40:36 -04:00
|
|
|
USE_REINPLACE= yes
|
2003-03-26 08:57:01 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/dvdread -I${X11BASE}/include" \
|
2002-05-24 23:10:19 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
2002-01-29 08:43:33 -05:00
|
|
|
THREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
2002-05-24 23:10:19 -04:00
|
|
|
THREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
X_EXTRA_LIBS="-lGL -lGLU -lXext -lX11 -lm"
|
2004-01-07 09:14:16 -05:00
|
|
|
CONFIGURE_ARGS= --with-w32-path=${LOCALBASE}/lib/win32 --enable-ipv6
|
2001-09-20 03:50:12 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
MAN1= xine-config.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-04-11 11:56:05 -04:00
|
|
|
# PRId64, INT16_MAX macro are not defined
|
|
|
|
.if ${OSVERSION} < 500040
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src:xine-engine:audio_out.c \
|
|
|
|
${PATCHDIR}/extra-patch-src:xine-engine:video_out.c \
|
|
|
|
${PATCHDIR}/extra-patch-src:xine-engine:metronom.c \
|
|
|
|
${PATCHDIR}/extra-patch-src:demuxers:demux_ogg.c
|
2003-11-15 10:18:20 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
# CDIOCREADAUDIO macro is not defined
|
|
|
|
.if ${OSVERSION} >= 501106
|
|
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-src:input:input_cdda.c
|
|
|
|
.endif
|
|
|
|
|
2001-09-20 03:50:12 -04:00
|
|
|
.if ${XFREE86_VERSION} >= 4
|
2003-11-15 10:18:20 -05:00
|
|
|
PLIST_SUB+= HAVE_LIBXV=""
|
2001-09-20 03:50:12 -04:00
|
|
|
.else
|
2003-11-15 10:18:20 -05:00
|
|
|
PLIST_SUB+= HAVE_LIBXV="@comment "
|
2001-09-20 03:50:12 -04:00
|
|
|
.endif
|
|
|
|
|
2003-02-01 11:44:37 -05:00
|
|
|
.if exists(${LOCALBASE}/bin/artsc-config) || defined(WITH_ARTS)
|
2003-08-16 12:39:16 -04:00
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
2001-09-20 03:50:12 -04:00
|
|
|
PLIST_SUB+= HAVE_ARTS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAVE_ARTS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-02-01 11:44:37 -05:00
|
|
|
.if ${HAVE_GNOME:Mesound} != "" || defined(WITH_ESOUND)
|
|
|
|
USE_GNOME+= esound
|
|
|
|
PLIST_SUB+= HAVE_ESOUND=""
|
2001-10-26 12:58:00 -04:00
|
|
|
.else
|
2003-02-01 11:44:37 -05:00
|
|
|
PLIST_SUB+= HAVE_ESOUND="@comment "
|
2001-10-26 12:58:00 -04:00
|
|
|
.endif
|
|
|
|
|
2003-06-22 00:49:06 -04:00
|
|
|
.if ${HAVE_GNOME:Mgnomevfs2} != ""
|
|
|
|
USE_GNOME+= gnomevfs2
|
2003-02-09 10:19:12 -05:00
|
|
|
PLIST_SUB+= HAVE_GNOMEVFS2=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= HAVE_GNOMEVFS2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-11-15 10:18:20 -05:00
|
|
|
.if ${ARCH} == "i386"
|
|
|
|
PLIST_SUB+= VIDIX=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= VIDIX="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${X11BASE}/lib/libXvMCNVIDIA.so.1)
|
|
|
|
LIB_DEPENDS+= XvMCNVIDIA.1:${PORTSDIR}/x11/nvidia-driver
|
|
|
|
PLIST_SUB+= XVMC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= XVMC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-02-01 11:44:37 -05:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
@${ECHO_MSG} "===> You can enable some features by defining following variables."
|
|
|
|
@${ECHO_MSG} "===>"
|
|
|
|
.if !exists(${LOCALBASE}/bin/artsc-config) && !defined(WITH_ARTS)
|
|
|
|
@${ECHO_MSG} "===> WITH_ARTS (arts support)"
|
2001-10-26 12:58:00 -04:00
|
|
|
.else
|
2003-02-01 11:44:37 -05:00
|
|
|
@${ECHO_MSG} "===> WITH_ARTS (arts support, enabled)"
|
2001-10-26 12:58:00 -04:00
|
|
|
.endif
|
2003-02-01 11:44:37 -05:00
|
|
|
.if !(${HAVE_GNOME:Mesound} != "") && !defined(WITH_ESOUND)
|
|
|
|
@${ECHO_MSG} "===> WITH_ESOUND (esound support)"
|
|
|
|
.else
|
|
|
|
@${ECHO_MSG} "===> WITH_ESOUND (esound support, enabled)"
|
|
|
|
.endif
|
|
|
|
@${ECHO_MSG} "===>"
|
2001-10-26 12:58:00 -04:00
|
|
|
|
2002-01-29 08:43:33 -05:00
|
|
|
post-patch:
|
2002-06-30 13:35:29 -04:00
|
|
|
@${REINPLACE_CMD} -e \
|
2002-01-29 08:43:33 -05:00
|
|
|
's|THREAD_LIBS=.*$$|THREAD_LIBS="\$$THREAD_LIBS"|g ; \
|
|
|
|
s|THREAD_CFLAGS=.*$$|THREAD_CFLAGS="\$$THREAD_CFLAGS"|g ; \
|
|
|
|
s|-L/usr/local/lib||g ; \
|
|
|
|
s|-I/usr/local/include||g ; \
|
2002-06-30 09:40:36 -04:00
|
|
|
s|-lgiconv|-liconv|g ; \
|
2003-02-01 11:44:37 -05:00
|
|
|
s|-funroll-loops||g' ${WRKSRC}/configure
|
2002-06-30 13:35:29 -04:00
|
|
|
.if ${OSVERSION} >= 500035
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-malign-loops|-falign-loops|g ; \
|
|
|
|
s|-malign-jumps|-falign-jumps|g ; \
|
2003-02-01 11:44:37 -05:00
|
|
|
s|-malign-functions|-falign-functions|g' ${WRKSRC}/configure
|
2002-06-30 13:35:29 -04:00
|
|
|
.endif
|
2001-10-26 12:58:00 -04:00
|
|
|
|
2001-09-20 03:50:12 -04:00
|
|
|
.include <bsd.port.post.mk>
|