freebsd-ports/multimedia/mythtv/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

132 lines
4.4 KiB
Makefile

# Created by: Stacey Son <mythdev@son.org>, Ari Maniatis <ari@ish.com.au>
# $FreeBSD$
PORTNAME= mythtv
PORTVERSION= 0.27.0.20140121
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://people.freebsd.org/~decke/distfiles/
MAINTAINER= decke@FreeBSD.org
COMMENT= MythTV is a homebrew PVR project
LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libtag.so:${PORTSDIR}/audio/taglib \
libxml2.so:${PORTSDIR}/textproc/libxml2
BUILD_DEPENDS= v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat \
yasm:${PORTSDIR}/devel/yasm
RUN_DEPENDS= tv_check:${PORTSDIR}/textproc/p5-xmltv \
wget:${PORTSDIR}/ftp/wget
CONFLICTS= mythtv-frontend-[0-9]*
USE_GITHUB= yes
GH_ACCOUNT= MythTV
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 5a5e1cd
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/${GH_PROJECT}
ONLY_FOR_ARCHS= i386 amd64
NOPRECIOUSMAKEVARS= # don't override $(ARCH) in ffmpeg makefiles
USES= gmake pkgconfig perl5
USE_QT4= gui sql network script linguist_build l10n sql-mysql_run \
moc_build qmake_build rcc_build uic_build imageformats
QT_NONSTANDARD= yes
USE_MYSQL= yes
HAS_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/lib/mythtv/filters
REINPLACE_ARGS= -i ""
USE_RC_SUBR= mythbackend
DESTDIRNAME= INSTALL_ROOT
USERS= mythtv
GROUPS= mythtv
MAKE_ENV= QTDIR="${QT_PREFIX}" \
QMAKESPEC="${QMAKESPEC}"
CPPFLAGS+= ${QTCPPFLAGS}
CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}" MOC="${MOC}" \
QTDIR="${QT_PREFIX}"
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --prefix="${PREFIX}" --cc="${CC}" --cxx="${CXX}" --dvb-path="${LOCALBASE}/include" \
--libxml2-path="${LOCALBASE}/include/libxml2" --enable-v4l2 --enable-ivtv --enable-xv \
--disable-audio-alsa --disable-indev=alsa --disable-outdev=alsa
QMAKESPEC?= ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
OPTIONS_DEFINE= BINDINGS LIRC MYSQL OPENGL VDPAU
OPTIONS_DEFAULT= BINDINGS OPENGL VDPAU
OPTIONS_SUB= BINDINGS
BINDINGS_DESC= Perl and Python bindings
LIRC_LIB_DEPENDS= liblirc_client.so:${PORTSDIR}/comms/lirc
MYSQL_RUN_DEPENDS= mysqld_safe:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
VDPAU_LIB_DEPENDS= libvdpau.so:${PORTSDIR}/multimedia/libvdpau
VDPAU_CONFIGURE_ENABLE= vdpau
OPENGL_CONFIGURE_ENABLE= opengl-video
.include <bsd.port.options.mk>
SUB_FILES= pkg-message
# 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:MBINDINGS}
CONFIGURE_ARGS+= --python=${PYTHON_CMD}
USE_PYTHON= yes
INSTALLS_EGGINFO=yes
PYDISTUTILS_PKGNAME=MythTV
PYDISTUTILS_PKGVERSION=0.27._1
BUILD_DEPENDS+= py*-lxml>=0:${PORTSDIR}/devel/py-lxml \
${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb \
${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber \
p5-HTTP-Request-Params>=0:${PORTSDIR}/www/p5-HTTP-Request-Params \
p5-LWP-UserAgent-Determined>=0:${PORTSDIR}/www/p5-LWP-UserAgent-Determined \
p5-Net-UPnP>=0:${PORTSDIR}/multimedia/p5-Net-UPnP \
p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6 \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-DBD-mysql>0:${PORTSDIR}/databases/p5-DBD-mysql
RUN_DEPENDS+= py*-lxml>=0:${PORTSDIR}/devel/py-lxml \
${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb \
${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber \
p5-HTTP-Request-Params>=0:${PORTSDIR}/www/p5-HTTP-Request-Params \
p5-LWP-UserAgent-Determined>=0:${PORTSDIR}/www/p5-LWP-UserAgent-Determined \
p5-Net-UPnP>=0:${PORTSDIR}/multimedia/p5-Net-UPnP \
p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6 \
p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
p5-DBD-mysql>0:${PORTSDIR}/databases/p5-DBD-mysql
.else
CONFIGURE_ARGS+=--without-bindings=perl,python
.endif
.if ${PORT_OPTIONS:MOPENGL}
USE_QT4+= opengl
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/configure \
${WRKSRC}/libs/libmythtv/libmythtv.pro \
${WRKSRC}/bindings/perl/MythTV/Recording.pm \
${WRKSRC}/programs/mythtranscode/replex/Makefile.standalone \
${WRKSRC}/programs/scripts/database/mythconverg_backup.pl \
${WRKSRC}/programs/scripts/database/mythconverg_restore.pl \
${WRKSRC}/programs/mythcommflag/mythcommflag-analyze
post-install:
@${INSTALL} -d ${STAGEDIR}${PREFIX}/share/mythtv/database
@${CP} ${WRKSRC}/database/mc.sql ${STAGEDIR}${PREFIX}/share/mythtv/database
.include <bsd.port.mk>