2009-01-15 21:24:56 +00:00
|
|
|
|
#
|
|
|
|
|
# Ports collection makefile for: mythtv-frontend
|
|
|
|
|
# Date created: 14 September 2008
|
|
|
|
|
# Whom: Bernhard Fr<46>hlich <decke@bluelife.at>
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
PORTNAME= mythtv-frontend
|
2012-02-01 14:51:25 +00:00
|
|
|
|
PORTVERSION= 0.24.2
|
2009-01-15 21:24:56 +00:00
|
|
|
|
CATEGORIES= multimedia
|
|
|
|
|
MASTER_SITES= http://ftp.osuosl.org/pub/mythtv/ \
|
2010-12-08 18:34:56 +00:00
|
|
|
|
http://ftp.osuosl.org/pub/mythtv/old_releases/ \
|
|
|
|
|
http://ftp.oregonstate.edu/pub/mythtv/ \
|
|
|
|
|
http://ftp.oregonstate.edu/pub/mythtv/old_releases/
|
2009-01-15 21:24:56 +00:00
|
|
|
|
DISTNAME= mythtv-${PORTVERSION}
|
|
|
|
|
|
2010-04-01 12:45:37 +00:00
|
|
|
|
MAINTAINER= decke@FreeBSD.org
|
2009-01-15 21:24:56 +00:00
|
|
|
|
COMMENT= MythTV is a homebrew PVR project
|
|
|
|
|
|
2011-01-04 17:49:38 +00:00
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
|
2009-01-15 21:24:56 +00:00
|
|
|
|
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
|
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
|
|
|
|
|
|
|
|
CONFLICTS= mythtv-[0-9]*
|
|
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
USE_BZIP2= yes
|
2009-12-19 13:03:53 +00:00
|
|
|
|
USE_QT_VER= 4
|
2010-09-24 19:08:49 +00:00
|
|
|
|
QT_COMPONENTS= gui sql network script linguist_build l10n sql-mysql_run \
|
2009-12-19 13:03:53 +00:00
|
|
|
|
moc_build qmake_build rcc_build uic_build
|
2009-01-15 21:24:56 +00:00
|
|
|
|
QT_NONSTANDARD= yes
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
HAS_CONFIGURE= yes
|
2010-06-21 13:22:23 +00:00
|
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/mythtv/filters
|
2009-12-19 13:03:53 +00:00
|
|
|
|
REINPLACE_ARGS= -i ""
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
|
|
DATADIR= ${PREFIX}/share/mythtv
|
|
|
|
|
|
|
|
|
|
MAKE_ENV= QTDIR="${QT_PREFIX}" \
|
|
|
|
|
QMAKESPEC="${QMAKESPEC}"
|
|
|
|
|
|
2011-05-20 12:40:29 +00:00
|
|
|
|
CPPFLAGS+= ${QTCPPFLAGS}
|
|
|
|
|
CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}" MOC="${MOC}" \
|
2011-09-23 22:26:39 +00:00
|
|
|
|
QTDIR="${QT_PREFIX}"
|
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
2011-01-04 17:49:38 +00:00
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --disable-audio-alsa --disable-firewire --disable-iptv \
|
|
|
|
|
--disable-hdhomerun \
|
2010-06-21 13:22:23 +00:00
|
|
|
|
--disable-v4l --disable-ivtv --disable-hdpvr --disable-dvb --enable-xvmc \
|
2011-01-04 17:49:38 +00:00
|
|
|
|
--disable-xvmcw --enable-xvmc --enable-opengl-video \
|
|
|
|
|
--disable-directfb --without-bindings=perl,python
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
2009-12-19 13:03:53 +00:00
|
|
|
|
QMAKESPEC?= ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
|
|
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="MythTV Frontend" "MythTV is a homebrew PVR project" "" \
|
|
|
|
|
"mythfrontend" "AudioVideo;Video;" false
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
2010-06-21 13:22:23 +00:00
|
|
|
|
OPTIONS= JACK "JACK sound driver" off \
|
|
|
|
|
OPENGL "OpenGL support" on \
|
|
|
|
|
PULSEAUDIO "PulseAudio audio output support" off \
|
|
|
|
|
VDPAU "VDPAU support (nvidia only)" off
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
|
|
.if defined(WITH_JACK)
|
|
|
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
|
|
|
CONFIGURE_ARGS+= --enable-audio-jack
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+= --disable-audio-jack
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if defined(WITH_OPENGL)
|
2010-06-21 13:22:23 +00:00
|
|
|
|
QT_COMPONENTS+= opengl
|
|
|
|
|
CONFIGURE_ARGS+= --enable-opengl-video --enable-opengl-vsync
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+= --disable-opengl-video --disable-opengl-vsync
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if defined(WITH_PULSEAUDIO)
|
|
|
|
|
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
|
CONFIGURE_ARGS+= --enable-audio-pulseoutput
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+= --disable-audio-pulseoutput
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if defined(WITH_VDPAU)
|
2010-09-24 19:08:49 +00:00
|
|
|
|
LIB_DEPENDS+= vdpau.1:${PORTSDIR}/multimedia/libvdpau
|
2010-06-21 13:22:23 +00:00
|
|
|
|
CONFIGURE_ARGS+= --enable-vdpau
|
2009-04-25 01:17:56 +00:00
|
|
|
|
.else
|
2010-06-21 13:22:23 +00:00
|
|
|
|
CONFIGURE_ARGS+= --disable-vdpau
|
2009-01-15 21:24:56 +00:00
|
|
|
|
.endif
|
|
|
|
|
|
2009-12-19 13:03:53 +00:00
|
|
|
|
post-patch:
|
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
2010-06-21 13:22:23 +00:00
|
|
|
|
${WRKSRC}/configure \
|
2009-12-19 13:03:53 +00:00
|
|
|
|
${WRKSRC}/libs/libmythtv/libmythtv.pro \
|
|
|
|
|
${WRKSRC}/bindings/perl/MythTV/Recording.pm \
|
|
|
|
|
${WRKSRC}/programs/mythtranscode/replex/Makefile.standalone \
|
2010-06-21 13:22:23 +00:00
|
|
|
|
${WRKSRC}/programs/scripts/database/mythconverg_backup.pl \
|
|
|
|
|
${WRKSRC}/programs/scripts/database/mythconverg_restore.pl \
|
|
|
|
|
${WRKSRC}/programs/mythcommflag/mythcommflag-analyze
|
2009-12-19 13:03:53 +00:00
|
|
|
|
|
2009-01-15 21:24:56 +00:00
|
|
|
|
.include <bsd.port.post.mk>
|