blob: 2a441648a4f26cb99c487f29b0eaa573da3e33d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#
# 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= grog@FreeBSD.org
COMMENT= MythTV is a homebrew PVR project
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake \
${SITE_PERL}/${PERL_ARCH}/XML/Parser/Expat.pm:${PORTSDIR}/textproc/p5-XML-SAX-Expat
LIB_DEPENDS= mp3lame.0:${PORTSDIR}/audio/lame \
freetype.9:${PORTSDIR}/print/freetype2
RUN_DEPENDS= tv_check:${PORTSDIR}/textproc/p5-xmltv \
${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin \
wget:${PORTSDIR}/ftp/wget
BROKEN= Incorrect pkg-plist
ONLY_FOR_ARCHS= i386
USE_BZIP2= yes
USE_QT_VER= 3
USE_MYSQL= 51
GNU_CONFIGURE= yes
CONFIGURE_ENV= QTDIR="${LOCALBASE}" \
QMAKESPEC="${QMAKESPEC}" \
CFLAGS="${CFLAGS}"
MAKE_ENV= QTDIR="${X11BASE}" QMAKESPEC="${QMAKESPEC}"
USE_RC_SUBR= mythbackend
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
OPTIONS+= MYSQL_LOCAL "RUN_DEPEND on selected MySQL server" off
.include <bsd.port.pre.mk>
.if defined(WITH_LIRC)
LIB_DEPENDS+= lirc_client.0:${PORTSDIR}/comms/lirc
# EXTRA_PATCHES= ${FILESDIR}/patchsettings-lirc
.endif
.if defined(WITH_MYSQL_LOCAL)
RUN_DEPENDS+= mysqld:${PORTSDIR}/databases/${MYSQL_VER}-server
.endif
post-extract:
${ECHO_CMD} '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_CMD} export QMAKESPEC=${QMAKESPEC}
do-configure:
@cd ${WRKSRC} && QMAKESPEC=${QMAKESPEC} \
./configure --enable-memalign-hack --prefix=${PREFIX} \
--extra-cflags=-g --extra-cxxflags=-g
@${ECHO_CMD} MAKE_ENV: ${MAKE_ENV}
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
-spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ mythtv.pro
post-install:
${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
${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${MKDIR} ${PREFIX}/share/mythtv/database
.include <bsd.port.post.mk>
|