# -*- 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 # $Id$ PortSystem 1.0 PortGroup github 1.0 # set fullhash 8aa49039796ca347503553b048b5bd7a750df7c1 set shorthash 8aa49039 github.setup MythTV mythweb ${shorthash} version .26 revision 20160106 set minorversion "" name mythweb${version} categories multimedia www platforms darwin license GPL-2 LGPL-2.1 maintainers ctreleaven openmaintainer supported_archs noarch conflicts mythweb.25 mythweb.27 description control your Myth system via a web browser long_description MythWeb provides a frontend to MythTV using a web browser. \ Review program listings, schedule recordings, browse previous recordings, \ check on the status of your system and much more. Note that this is an \ INSECURE installation intended for local network access only. Take steps to \ secure if access from the internet is to be allowed. homepage http://www.mythtv.org/ checksums rmd160 4d193d5f581382e40a9f9bb6248b1b90f1c38409 \ sha256 2086c1aefe826100f67f463026cf40bfeb8b992c459ab61f32dcc8a8fc201bc8 set perlver perl5.24 set perlbin ${prefix}/bin/${perlver} set perlmodver p5.24 depends_run port:php54-mysql \ port:php54-apache2handler depends_lib port:mythtv-core${version} \ port:${perlmodver}-http-request-ascgi \ port:${perlmodver}-dbd-mysql patchfiles patch-mythweb.conf.diff # Re class_autoload, see http://code.mythtv.org/trac/ticket/10600 patchfiles-append patch-class_autoload.diff use_configure no build {} pre-patch { copy ${worksrcpath}/mythweb.conf.apache ${worksrcpath}/mythweb.conf } post-patch { reinplace -locale C "s|@PREFIX@|${prefix}|g" ${worksrcpath}/mythweb.conf reinplace -locale C "s|/usr/local|${prefix}|" ${worksrcpath}/mythweb.php reinplace -locale C "s|#!/usr/bin/perl|#!${perlbin}|" \ ${worksrcpath}/mythweb.pl \ ${worksrcpath}/modules/_shared/lang/build_translation.pl \ ${worksrcpath}/modules/coverart/handler.pl \ ${worksrcpath}/modules/stream/handler.pl \ ${worksrcpath}/modules/stream/stream_asx.pl \ ${worksrcpath}/modules/stream/stream_flv.pl \ ${worksrcpath}/modules/stream/stream_flvp.pl \ ${worksrcpath}/modules/stream/stream_mp4.pl \ ${worksrcpath}/modules/stream/stream_raw.pl \ ${worksrcpath}/modules/stream/tv.pl } destroot { xinstall -d ${destroot}${prefix}/apache2/htdocs copy ${worksrcpath} ${destroot}${prefix}/apache2/htdocs file rename ${destroot}${prefix}/apache2/htdocs/mythweb-${shorthash} \ ${destroot}${prefix}/apache2/htdocs/MythWeb system "chown -R _www:_www ${destroot}${prefix}/apache2/htdocs/MythWeb/data" destroot.violate_mtree yes destroot.keepdirs \ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/cache \ ${destroot}${prefix}/apache2/htdocs/MythWeb/data/tv_icons } notes "\ ############################################################################ # # If this is the first time installing MythWeb, please see # http://www.mythtv.org/wiki/MythWeb_via_MacPorts for information # essential to finishing the installation of MythWeb! # # Upgrading after September 23, 2014? The change to PHP 5.4 requires certain # configuration changes. Check your configuration with the above wiki page. # ############################################################################" livecheck.type none