summaryrefslogtreecommitdiff
path: root/multimedia/mythtv/Makefile
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2006-12-19 23:55:54 +0000
committerGreg Lehey <grog@FreeBSD.org>2006-12-19 23:55:54 +0000
commit3e0fe5991c71eabecad2c3227dbd3de583203521 (patch)
tree27c40565d5079b2bb356641cde023bebbc29dff2 /multimedia/mythtv/Makefile
parent- Quick spellfix (diff)
New port: MythTV.
Currently, the port builds and installs MythTV, but doesn't help much in configuring it.
Diffstat (limited to 'multimedia/mythtv/Makefile')
-rw-r--r--multimedia/mythtv/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/multimedia/mythtv/Makefile b/multimedia/mythtv/Makefile
new file mode 100644
index 000000000000..e96e8cdc419d
--- /dev/null
+++ b/multimedia/mythtv/Makefile
@@ -0,0 +1,76 @@
+#
+# Ports collection makefile for: mythtv
+# Date created: 05 February 2005
+# Whom: Stacey Son <mythdev@son.org>
+# Ari Maniatis <ari@ish.com.au>
+#
+# $FreeBSD$
+
+PORTNAME= mythtv
+PORTVERSION= 0.20
+CATEGORIES= multimedia
+MASTER_SITES= http://www.mythtv.org/mc/
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= myth4fbsd@son.org
+COMMENT= MythTV is a homebrew PVR project
+
+BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \
+ ${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
+
+LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
+ freetype.9:${PORTSDIR}/print/freetype2
+
+RUN_DEPENDS= tv_check:${PORTSDIR}/textproc/p5-xmltv \
+ wget:${PORTSDIR}/ftp/wget \
+ mysql:${PORTSDIR}/databases/mysql51-server
+
+USE_BZIP2= yes
+USE_QT_VER= 3
+USE_MYSQL= 40
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= QTDIR="${LOCALBASE}" \
+ QMAKESPEC="${QMAKESPEC}" \
+ CFLAGS="${CFLAGS}"
+MAKE_ENV= QTDIR="${X11BASE}" QMAKESPEC="${QMAKESPEC}"
+USE_RC_SUBR= yes
+
+CONFIGURE_ARGS= --with-qt-dir=${LOCALBASE}
+# CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
+
+OPTIONS= LIRC "Native LIRC Support" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LIRC)
+LIB_DEPENDS+= lirc_client.0:${PORTSDIR}/comms/lirc
+# EXTRA_PATCHES= ${FILESDIR}/patchsettings-lirc
+.endif
+
+post-extract:
+ @${SED} "s|%%RC_SUBR%%|${RC_SUBR}|g;s|%%PREFIX%%|${PREFIX}|g" \
+ ${FILESDIR}/mythbackend.sh > ${WRKSRC}/mythbackend.sh
+ echo 'const char *myth_source_version = "FreeBSD Ports Collection' \
+ `pwd`, MythTV version ${PORTVERSION} "`date`\";" \
+ > ${WRKSRC}/programs/mythfrontend/version.cpp
+ cp -p ${WRKSRC}/programs/mythfrontend/version.cpp ${WRKSRC}/programs/mythbackend
+ echo export QMAKESPEC=${QMAKESPEC}
+
+do-configure:
+ @cd ${WRKSRC} && QMAKESPEC=${QMAKESPEC} \
+ ./configure --enable-memalign-hack --prefix=${PREFIX} \
+ --extra-cflags=-g --extra-cxxflags=-g
+ @echo MAKE_ENV: ${MAKE_ENV}
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
+ -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ mythtv.pro
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/mythbackend.sh ${PREFIX}/etc/rc.d/mythbackend.sh
+ ${MKDIR} ${PREFIX}/share/mythtv/database
+ ${CP} ${WRKSRC}/database/mc.sql ${PREFIX}/share/mythtv/database
+ ${CP} ${WRKSRC}/programs/mythtv-setup/mythtv-setup ${PREFIX}/bin/mythtv-setup
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>