[111984] trunk/dports/multimedia/mythtv-core.26/Portfile

pixilla at macports.org pixilla at macports.org
Mon Oct 7 21:09:53 PDT 2013


Revision: 111984
          https://trac.macports.org/changeset/111984
Author:   pixilla at macports.org
Date:     2013-10-07 21:09:52 -0700 (Mon, 07 Oct 2013)
Log Message:
-----------
multimedia/mythtv-core.26:
- maintainer provided patch
- work around run-time failure (fixes #40137) using apple-gcc42
- incorporate 0.26-fixes commits as of 2013Sep21
- drop support for i386 and PPC (stay with mythtv-core.25 if this is essential)
- don't attempt to build on 10.4 or earlier, not supported
- clear configure.ldflags to prevent inappropriate linking
- disable libvpx, libxvid and libsdl in configure to prevent opportunistic linking.
- fix permissions so Finder can open myth-related directories

Modified Paths:
--------------
    trunk/dports/multimedia/mythtv-core.26/Portfile

Modified: trunk/dports/multimedia/mythtv-core.26/Portfile
===================================================================
--- trunk/dports/multimedia/mythtv-core.26/Portfile	2013-10-08 03:49:02 UTC (rev 111983)
+++ trunk/dports/multimedia/mythtv-core.26/Portfile	2013-10-08 04:09:52 UTC (rev 111984)
@@ -5,27 +5,29 @@
 PortGroup           github 1.0
 PortGroup           qt4 1.0
 
-set shorthash       99eb39adb
-# set fullhash      99eb39adb5ff15ea6b3d1c968c64883646f8bf0f
+set shorthash       9fd7c6102
+# set fullhash      9fd7c6102b2cd1a3760337663803b110446c6ea7
 set majorversion    .26
-set minorversion    ""
+set minorversion    .1
 github.setup        MythTV mythtv ${shorthash}
 name                mythtv-core${majorversion}
-version             0${majorversion}${minorversion}-Fixes-20130720
+version             0${majorversion}${minorversion}-Fixes-20130921
 revision            0
 categories          multimedia
 platforms           darwin
+# i386 unsupported -- https://trac.macports.org/ticket/40337
+supported_archs     x86_64
 license             GPL-2
 maintainers         cogeco.ca:ctreleaven openmaintainer
 
-description         MythTV - Open source digital video recorder
+description         personal video recorder (PVR) and media centre system
 long_description    The ultimate Digital Video Recorder and home media \
                     center hub. Think of it as a Free and Open Source alternative \
                     to Windows Media Center or Tivo.
 
 homepage            http://www.mythtv.org/
-checksums           rmd160  a1eb2ac1754535dc94eb327e96630bdb6e3808f3 \
-                    sha256  c044011002d635f878806ecf36b4d7acf242d3624423e14baa7d8ff348f2b0f4
+checksums           rmd160  85ab191fb12a8319ca2fbb2d761846d3b643e548 \
+                    sha256  1dd2192b8d0169eb3642da8b42bc6112ad5b862fe03368d941a3f15af27b9b23
 
 set nick            mythtv
 set mythtvhomedir   ${prefix}/var/mythtvuser
@@ -67,6 +69,18 @@
 
 depends_run         port:logrotate
 
+# Inexplicable run-time errors on Mtn Lion with XCode 4 compilers and other versions of
+# clang.  Punt and only allow compilers known to work
+# https://trac.macports.org/ticket/40137
+compiler.whitelist gcc-4.2 apple-gcc-4.2
+
+pre-fetch {
+    if {"darwin" == ${os.platform} && ${os.major} < 9} {
+        ui_error "${name} ${version} requires Mac OS X 10.5 or greater."
+        return -code error "incompatible Mac OS X version"
+    }
+}
+
 # see http://code.mythtv.org/trac/ticket/10890
 patchfiles          patch-configure-configincludepath.diff \
                     patch-mythtv_settings.pro.diff
@@ -156,17 +170,19 @@
     reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/macports/logrotate.conf
     reinplace -locale C "s|@MYTHTVLOGDIR@|${mythtvlogdir}|g" ${worksrcpath}/macports/logrotate.mythtv
     reinplace -locale C "s|xxxyyyzzz|${mythtvpidfile}|" ${worksrcpath}/mythtv/configure
+    reinplace -locale C "s|--includedir=|CC=${configure.cc} CXX=${configure.cxx} --includedir=|" \
+        ${worksrcpath}/mythtv/external/Makefile
 }
 
 ################################################################################
-# We do not want flags except LD...MythTV is smart enough to set up its own.   #
+# Let Myth set its own flags... (ala qt4-mac)                                  #
 ################################################################################
 
 configure.cflags
 configure.cppflags
 configure.cxxflags
 configure.objcflags
-configure.ldflags    '-L${prefix}/lib'
+configure.ldflags
 
 configure.universal_cflags
 configure.universal_cppflags
@@ -186,6 +202,8 @@
                     --python=${pythonbin} \
                     --disable-firewire \
                     --disable-audio-jack --disable-indev=jack \
+                    --disable-libvpx --disable-libxvid \
+                    --disable-sdl \
                     --enable-libmp3lame --enable-libx264
 
 if {${configure.ccache} != "yes"} {
@@ -213,11 +231,11 @@
 
 post-destroot {
 # make some directories myth will need
-    xinstall -d -m 666 ${destroot}${mythtvhomedir}
-    xinstall -d -m 666 ${destroot}${mythtvlogdir}
-    xinstall -d -m 666 ${destroot}${mythtvlogdir}/old
-    xinstall -d -m 666 ${destroot}${prefix}/etc/logrotate.d
-    xinstall -d -m 644 ${destroot}${mythtvrundir}
+    xinstall -d -m 755 ${destroot}${mythtvhomedir}
+    xinstall -d -m 777 ${destroot}${mythtvlogdir}
+    xinstall -d -m 777 ${destroot}${mythtvlogdir}/old
+    xinstall -d -m 755 ${destroot}${prefix}/etc/logrotate.d
+    xinstall -d -m 744 ${destroot}${mythtvrundir}
 
     destroot.keepdirs \
         ${destroot}${mythtvhomedir} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131007/b92ce6ea/attachment.html>


More information about the macports-changes mailing list