source: build-files/ports-overlay/multimedia/mythtv/Makefile @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 10 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 4.2 KB
Line 
1# Created by: Stacey Son <mythdev@son.org>, Ari Maniatis <ari@ish.com.au>
2# $FreeBSD: multimedia/mythtv/Makefile 327747 2013-09-20 20:57:48Z bapt $
3
4PORTNAME=       mythtv
5PORTVERSION=    0.26.1
6CATEGORIES=     multimedia
7MASTER_SITES=   http://ftp.osuosl.org/pub/mythtv/ \
8                http://ftp.osuosl.org/pub/mythtv/old_releases/ \
9                http://ftp.oregonstate.edu/pub/mythtv/ \
10                http://ftp.oregonstate.edu/pub/mythtv/old_releases/
11
12MAINTAINER=     decke@FreeBSD.org
13COMMENT=        MythTV is a homebrew PVR project
14
15LIB_DEPENDS=    mp3lame.0:${PORTSDIR}/audio/lame \
16                freetype.9:${PORTSDIR}/print/freetype2 \
17                tag.1:${PORTSDIR}/audio/taglib
18BUILD_DEPENDS=  v4l_compat>=1.0.20100321:${PORTSDIR}/multimedia/v4l_compat \
19                yasm:${PORTSDIR}/devel/yasm
20RUN_DEPENDS=    tv_check:${PORTSDIR}/textproc/p5-xmltv \
21                wget:${PORTSDIR}/ftp/wget
22
23CONFLICTS=      mythtv-frontend-[0-9]*
24
25ONLY_FOR_ARCHS= i386 amd64
26USE_GCC=        yes
27USES=           gmake pkgconfig perl5
28USE_BZIP2=      yes
29USE_QT4=        gui sql network script linguist_build l10n sql-mysql_run \
30                moc_build qmake_build rcc_build uic_build imageformats
31QT_NONSTANDARD= yes
32USE_MYSQL=      51
33HAS_CONFIGURE=  yes
34USE_LDCONFIG=   ${PREFIX}/lib/mythtv/filters
35REINPLACE_ARGS= -i ""
36USE_RC_SUBR=    mythbackend
37
38USERS=          mythtv
39GROUPS=         mythtv
40
41MAKE_ENV=       QTDIR="${QT_PREFIX}" \
42                QMAKESPEC="${QMAKESPEC}"
43
44CPPFLAGS+=      ${QTCPPFLAGS}
45CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}" MOC="${MOC}" \
46                QTDIR="${QT_PREFIX}"
47LDFLAGS+=       -L${LOCALBASE}/lib
48
49CONFIGURE_ARGS= --prefix="${PREFIX}" --dvb-path="${LOCALBASE}/include" \
50                --enable-v4l2 --enable-ivtv --enable-xv \
51                --disable-audio-alsa --disable-indev=alsa --disable-outdev=alsa
52
53QMAKESPEC?=     ${LOCALBASE}/share/qt4/mkspecs/freebsd-g++
54
55OPTIONS_DEFINE= BINDINGS LIRC MYSQL OPENGL VDPAU
56OPTIONS_DEFAULT=        BINDINGS OPENGL
57BINDINGS_DESC=  Perl and Python bindings
58
59NO_STAGE=       yes
60.include <bsd.port.options.mk>
61
62SUB_FILES=      pkg-message
63
64# for too old binutils in base
65.if ${OSVERSION} < 900033
66BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils
67CONFIGURE_ENV+= COMPILER_PATH=${LOCALBASE}/bin
68MAKE_ENV+=      COMPILER_PATH=${LOCALBASE}/bin
69.endif
70
71.if ${PORT_OPTIONS:MBINDINGS}
72USE_PYTHON=     yes
73INSTALLS_EGGINFO=yes
74PYDISTUTILS_PKGNAME=MythTV
75PYDISTUTILS_PKGVERSION=0.26.0
76
77BUILD_DEPENDS+= py*-lxml>=0:${PORTSDIR}/devel/py-lxml \
78                ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb \
79                ${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber \
80                p5-HTTP-Request-Params>=0:${PORTSDIR}/www/p5-HTTP-Request-Params \
81                p5-LWP-UserAgent-Determined>=0:${PORTSDIR}/www/p5-LWP-UserAgent-Determined \
82                p5-Net-UPnP>=0:${PORTSDIR}/multimedia/p5-Net-UPnP \
83                p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6
84RUN_DEPENDS+=   py*-lxml>=0:${PORTSDIR}/devel/py-lxml \
85                ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb \
86                ${PYTHON_PKGNAMEPREFIX}urlgrabber>=3.1.0_1:${PORTSDIR}/www/py-urlgrabber \
87                p5-HTTP-Request-Params>=0:${PORTSDIR}/www/p5-HTTP-Request-Params \
88                p5-LWP-UserAgent-Determined>=0:${PORTSDIR}/www/p5-LWP-UserAgent-Determined \
89                p5-Net-UPnP>=0:${PORTSDIR}/multimedia/p5-Net-UPnP \
90                p5-IO-Socket-INET6>=2.51:${PORTSDIR}/net/p5-IO-Socket-INET6
91PLIST_SUB+=     BINDINGS=""
92.else
93CONFIGURE_ARGS+=--without-bindings=perl,python
94PLIST_SUB+=     BINDINGS="@comment "
95.endif
96
97.if ${PORT_OPTIONS:MLIRC}
98LIB_DEPENDS+=   lirc_client.2:${PORTSDIR}/comms/lirc
99.endif
100
101.if ${PORT_OPTIONS:MMYSQL}
102RUN_DEPENDS+=   mysqld_safe:${PORTSDIR}/databases/mysql${MYSQL_VER}-server
103.endif
104
105.if ${PORT_OPTIONS:MOPENGL}
106USE_QT4+=       opengl
107CONFIGURE_ARGS+=        --enable-opengl-video
108.else
109CONFIGURE_ARGS+=        --disable-opengl-video
110.endif
111
112.if ${PORT_OPTIONS:MVDPAU}
113LIB_DEPENDS+=   vdpau.1:${PORTSDIR}/multimedia/libvdpau
114CONFIGURE_ARGS+=        --enable-vdpau
115.else
116CONFIGURE_ARGS+=        --disable-vdpau
117.endif
118
119post-patch:
120                @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
121                        ${WRKSRC}/configure \
122                        ${WRKSRC}/libs/libmythtv/libmythtv.pro \
123                        ${WRKSRC}/bindings/perl/MythTV/Recording.pm \
124                        ${WRKSRC}/programs/mythtranscode/replex/Makefile.standalone \
125                        ${WRKSRC}/programs/scripts/database/mythconverg_backup.pl \
126                        ${WRKSRC}/programs/scripts/database/mythconverg_restore.pl \
127                        ${WRKSRC}/programs/mythcommflag/mythcommflag-analyze
128
129post-install:
130                @${INSTALL} -d ${PREFIX}/share/mythtv/database
131                @${CP} ${WRKSRC}/database/mc.sql ${PREFIX}/share/mythtv/database
132                @${CAT} ${PKGMESSAGE}
133
134.include <bsd.port.mk>
Note: See TracBrowser for help on using the repository browser.