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
|
2009-12-19 13:03:53 +00:00
|
|
|
|
PORTVERSION= 0.22
|
2010-03-28 06:47:48 +00:00
|
|
|
|
PORTREVISION= 1
|
2009-01-15 21:24:56 +00:00
|
|
|
|
CATEGORIES= multimedia
|
|
|
|
|
MASTER_SITES= http://ftp.osuosl.org/pub/mythtv/ \
|
|
|
|
|
http://ftp.oregonstate.edu/pub/mythtv/
|
|
|
|
|
DISTNAME= mythtv-${PORTVERSION}
|
|
|
|
|
|
|
|
|
|
MAINTAINER= decke@bluelife.at
|
|
|
|
|
COMMENT= MythTV is a homebrew PVR project
|
|
|
|
|
|
|
|
|
|
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
|
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2009-12-19 13:03:53 +00:00
|
|
|
|
RUN_DEPENDS= ${QT_PREFIX}/lib/qt4/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt4-mysql-plugin
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
|
|
CONFLICTS= mythtv-[0-9]*
|
|
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
USE_BZIP2= yes
|
2009-12-19 13:03:53 +00:00
|
|
|
|
USE_QT_VER= 4
|
|
|
|
|
QT_COMPONENTS= gui sql network script linguist_build l10n \
|
|
|
|
|
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
|
|
|
|
|
USE_LDCONFIG= yes
|
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}"
|
|
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}" MOC="${MOC}" CPPFLAGS="${CPPFLAGS} ${QTCPPFLAGS}" \
|
2009-08-14 13:41:11 +00:00
|
|
|
|
QTDIR="${QT_PREFIX}" KDEDIR="${KDE_PREFIX}" LDFLAGS="-L${LOCALBASE}/lib"
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --disable-v4l --disable-ivtv --disable-firewire \
|
|
|
|
|
--disable-dvb --disable-dbox2 --disable-hdhomerun --disable-iptv \
|
2009-12-19 13:03:53 +00:00
|
|
|
|
--disable-hdpvr --without-bindings=perl,python \
|
|
|
|
|
--enable-xvmc --enable-xvmc-pro --disable-xvmcw --enable-glx-procaddrarb
|
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
|
|
|
|
|
|
|
|
|
OPTIONS= ARTS "arts sound driver" off \
|
|
|
|
|
JACK "JACK sound driver" off \
|
2009-12-19 13:03:53 +00:00
|
|
|
|
OPENGL "OpenGL support" on
|
2009-01-15 21:24:56 +00:00
|
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
|
|
.if defined(WITH_ARTS)
|
|
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
|
|
|
|
CONFIGURE_ARGS+= --enable-audio-arts
|
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+= --disable-audio-arts
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.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)
|
|
|
|
|
CONFIGURE_ARGS+= --enable-opengl-video
|
2009-04-25 01:17:56 +00:00
|
|
|
|
.else
|
|
|
|
|
CONFIGURE_ARGS+= --disable-opengl-video
|
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' \
|
|
|
|
|
${WRKSRC}/libs/libmythtv/libmythtv.pro \
|
|
|
|
|
${WRKSRC}/libs/libavformat/libavformat.pro \
|
|
|
|
|
${WRKSRC}/bindings/perl/MythTV/Recording.pm \
|
|
|
|
|
${WRKSRC}/programs/mythtranscode/replex/Makefile.standalone \
|
|
|
|
|
${WRKSRC}/programs/scripts/database/mythconverg_backup.pl
|
|
|
|
|
|
2009-01-15 21:24:56 +00:00
|
|
|
|
.include <bsd.port.post.mk>
|