Ticket #33906: Portfile

File Portfile, 5.1 KB (added by ctreleaven (Craig Treleaven), 12 years ago)

Fails at build phase

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3PortSystem          1.0
4PortGroup           github 1.0 
5github.setup        MythTV mythtv v0.25-rc-0-g92f7d1f
6# MythTV-mythtv-v0.25-rc-0-g92f7d1f
7name                mythtv
8# version             0.25-RC1
9categories          multimedia
10platforms           darwin
11supported_archs     i386
12license             TBD
13maintainers         cogeco.ca:ctreleaven openmaintainer
14
15description         MythTV - Open source digital video recorder
16long_description    The ultimate Digital Video Recorder and home media \
17                    center hub. Think of it as a Free and Open Source alternative \
18                    to Windows Media Center or Tivo. With its plugin architecture, \
19                    it has been extended from a mere TV viewing application into a \
20                    full home media center suite, capable of managing your personal \
21                    photo, video, and music collections, as well as keep you up to \
22                    date with the weather, a ZoneMinder home security system, and \
23                    more. \
24
25homepage            http://www.mythtv.org/
26
27# fetch.type          git
28# git.branch          92f7d1f51c
29
30checksums           rmd160  fd6c70709dbb0742536d914eee99298db856bd41 \
31                    sha256  a8814baba1aa155259fbfa6483e0eebfcab99e4ee9dd6bc0aa6435e8c13ff77d
32                   
33depends_lib         port:libdvdcss \
34                    port:freetype \
35                    port:lame \
36                    port:qt4-mac
37
38configure.dir       ${worksrcpath}/mythtv
39#worksrcdir          mythtv/mythtv
40#worksrcdir          ${distname}
41#worksrcdir          ${name}-${version}/mythtv/mythtv
42#pre-configure       { append worksrcpath "/mythtv" }
43#post-extract        {  worksrcdir-delete " "
44#                       worksrcdir-append "/mythtv"
45#}
46
47configure.args          --extra-cflags=-I${prefix}/include \
48                        --extra-cflags=-I${prefix}/include/mysql5 \
49                                            --extra-cxxflags=-I${prefix}/include \
50                                            --extra-cxxflags=-I${prefix}/include/mysql5 \
51                                            --sysinclude=-I${prefix}/include \
52                                            --sysinclude=-I${prefix}/include/mysql5 \
53                                            --disable-firewire \
54                        --disable-distcc
55                                            #--extra-ldflags=-F/System/Library/Frameworks \
56                                            #--extra-libs=-L${destroot}/build/lib \
57                                            # --extra-libs=-L/Volumes/Playpen/buildbot/build/master-osx-snow-leopard/build/.osx-packager/build/lib
58                                            #--sysroot=${prefix} \
59                                           
60configure.args-delete       "-arch i386"
61
62configure.cflags-delete     "-arch i386"
63configure.cflags-append     "-m32"
64configure.ldflags-append    "-m32 -F/System/Library/Frameworks"
65configure.cppflags-append   "-m32"
66configure.cxxflags-append   "-m32"
67
68depends_build               port:yasm
69
70# configure.macosx_deployment_target 10.6
71
72configure.env-append    QMAKESPEC="macx-g++" \
73                        QMAKE_LIBDIR_OPENGL="/opt/local/lib" \
74                        ECXXFLAGS="-m32"
75#                       CXXFLAGS="-m32" \
76#                       CPPFLAGS="-m32" \
77#                       LDFLAGS="-m32 -F/System/Library/Frameworks -L${prefix}/lib" \
78#                       CFLAGS="-m32" \
79                        # LDFLAGS="-m32 -F/System/Library/Frameworks -L/usr/lib -L${prefix}/lib" \
80                        # MACOSX_DEPLOYMENT_TARGET="10.5" \
81                        # LDFLAGS="-m32 -F/System/Library/Frameworks -L/usr/lib -L${prefix}/lib" \
82                        # ECXXFLAGS is for MythTV configure
83
84configure.env-delete    -arch i386      # messes up qmake?
85
86#configure.cc
87#configure.cpp
88#configure.cxx
89
90# post configure, find every Makefile and strip bogus "-L "
91# /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_Myth.25/mythtv/work/mythtv-v0.25-rc-0-g92f7d1f/mythtv
92# sudo find . -name "Makefile" -exec sed -i '' 's/ -L / /g' {} \;
93post-configure {
94                ui_info "Removing any spurious -L from ${configure.dir}\*\Makefile ..."
95                system "find ${configure.dir} -name \"Makefile\" -print "
96                system "find ${configure.dir} -name \"Makefile\" -exec sed -i '' 's/ -L / /g' {} \\; "
97                ui_info "... done."
98#       fs-traverse myfile ${configure.dir} {
99#                       if  { [ file tail $myfile ] == "Makefile" } {
100##                              ui_info "Removing any spurious -L from ${myfile}"
101#                               reinplace "s/ -L / /g" ${myfile}
102#               }
103#       }
104} 
105# Re QT - 
106# Using configure -release saves a lot of space and time,
107# but by default, debug builds of mythtv try to link against
108# debug libraries of Qt. This works around that:
109#
110# sudo ln -sf libQt3Support.dylib libQt3Support_debug.dylib
111# sudo ln -sf libQtSql.dylib      libQtSql_debug.dylib     
112# sudo ln -sf libQtXml.dylib      libQtXml_debug.dylib     
113# sudo ln -sf libQtOpenGL.dylib   libQtOpenGL_debug.dylib 
114# sudo ln -sf libQtGui.dylib      libQtGui_debug.dylib     
115# sudo ln -sf libQtNetwork.dylib  libQtNetwork_debug.dylib
116# sudo ln -sf libQtCore.dylib     libQtCore_debug.dylib   
117# sudo ln -sf libQtWebKit.dylib   libQtWebKit_debug.dylib 
118# sudo ln -sf libQtScript.dylib   libQtScript_debug.dylib 
119# QtDBus_debug
120
121build.dir               ${worksrcpath}/mythtv
122
123destroot.destdir        INSTALL_ROOT=${destroot}