2012-10-27 13:24:45 +00:00
|
|
|
# Created by: Bernhard Froehlich <decke@bluelife.at>
|
2009-01-15 21:24:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mythtv-frontend
|
2014-01-25 19:45:46 +00:00
|
|
|
PORTVERSION= 0.27.0.20140121
|
2014-07-15 21:29:23 +00:00
|
|
|
PORTREVISION= 3
|
2009-01-15 21:24:56 +00:00
|
|
|
CATEGORIES= multimedia
|
2014-01-25 19:45:46 +00:00
|
|
|
MASTER_SITES= http://people.freebsd.org/~decke/distfiles/
|
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
|
|
|
|
|
2012-10-27 13:24:45 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat \
|
|
|
|
yasm:${PORTSDIR}/devel/yasm
|
2013-11-18 12:03:42 +00:00
|
|
|
LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame \
|
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
|
|
libtag.so:${PORTSDIR}/audio/taglib \
|
|
|
|
libxml2.so:${PORTSDIR}/textproc/libxml2
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
CONFLICTS= mythtv-[0-9]*
|
|
|
|
|
2013-11-18 12:03:42 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= MythTV
|
|
|
|
GH_PROJECT= mythtv
|
2014-01-25 19:45:46 +00:00
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
|
|
GH_COMMIT= 5a5e1cd
|
2013-11-18 12:03:42 +00:00
|
|
|
|
2014-01-25 19:45:46 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/${GH_PROJECT}
|
2013-11-18 12:03:42 +00:00
|
|
|
|
2009-01-15 21:24:56 +00:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
2014-03-25 10:06:55 +00:00
|
|
|
NOPRECIOUSMAKEVARS= # don't override $(ARCH) in ffmpeg makefiles
|
2014-07-15 21:29:23 +00:00
|
|
|
USES= gmake libtool pkgconfig
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4= 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
|
|
|
|
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 ""
|
2013-11-18 12:03:42 +00:00
|
|
|
DESTDIRNAME= INSTALL_ROOT
|
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}"
|
2013-11-18 12:03:42 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-01-15 21:24:56 +00:00
|
|
|
|
2013-11-18 12:03:42 +00:00
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}" --cxx="${CXX}" --libxml2-path="${LOCALBASE}/include/libxml2" \
|
|
|
|
--disable-audio-alsa --disable-indev=alsa --disable-outdev=alsa --disable-firewire \
|
2012-05-10 08:21:14 +00:00
|
|
|
--disable-hdhomerun --disable-v4l2 --disable-ivtv --disable-hdpvr \
|
|
|
|
--disable-dvb --enable-opengl-video --without-bindings=perl,python,php
|
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
|
|
|
|
2012-10-27 13:24:45 +00:00
|
|
|
OPTIONS_DEFINE= OPENGL JACK PULSEAUDIO VDPAU
|
|
|
|
OPTIONS_DEFAULT= OPENGL
|
2009-01-15 21:24:56 +00:00
|
|
|
|
2013-11-18 12:03:42 +00:00
|
|
|
JACK_LIB_DEPENDS= libjack.so:${PORTSDIR}/audio/jack
|
|
|
|
JACK_CONFIGURE_ENABLE= audio-jack
|
|
|
|
|
|
|
|
PULSEAUDIO_LIB_DEPENDS= libpulse.so:${PORTSDIR}/audio/pulseaudio
|
|
|
|
PULSEAUDIO_CONFIGURE_ENABLE= audio-pulseoutput
|
|
|
|
|
|
|
|
VDPAU_LIB_DEPENDS= libvdpau.so:${PORTSDIR}/multimedia/libvdpau
|
|
|
|
VDPAU_CONFIGURE_ENABLE= vdpau
|
|
|
|
|
|
|
|
OPENGL_CONFIGURE_ENABLE= opengl-video
|
|
|
|
|
2009-01-15 21:24:56 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2012-10-27 13:24:45 +00:00
|
|
|
# for too old binutils in base
|
|
|
|
.if ${OSVERSION} < 900033
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
|
|
|
|
CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
|
|
|
MAKE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4+= opengl
|
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>
|