# -*- 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
checksums rmd160 246031909a28c7dc780e3d3afab1600cb12fdfc4 \
sha256 3bc3e37fefbdfcaf12fd59d6d7fdbf11ffcffe3e211155bf5b822b54a3c2043e \
categories www php databases
maintainers {ryandesign @ryandesign} openmaintainer
description A tool written in PHP intended to handle the \
administration of MySQL over the Web.
long_description phpMyAdmin is a tool written in PHP intended to handle \
the administration of MySQL over the Web. phpMyAdmin \
supports a wide range of operations with MySQL. The most \
frequently used operations are supported by the user \
interface (managing databases, tables, fields, relations, \
indexes, users, permissions, etc), while you still have \
the ability to directly execute any SQL statement.
homepage https://www.phpmyadmin.net/
master_sites https://files.phpmyadmin.net/phpMyAdmin/${version}/
distname ${my_name}-${version}-all-languages
# The php variants deliberately do not conflict
foreach php {php55 php56 php70 php71 php72 php73} {
variant ${php} description "Use ${php}" "
depends_run-append port:${php}-gd \
if {![variant_isset php55] && ![variant_isset php56] && ![variant_isset php70] && ![variant_isset php71] && ![variant_isset php72] && ![variant_isset php73]} {
set docroot ${destroot}${prefix}/www/${name}
set configfile ${prefix}/www/${name}/config.inc.php
set configsample ${prefix}/www/${name}/config.sample.inc.php
xinstall -d -m 0755 ${docroot}
copy {*}[glob ${worksrcpath}/*] ${docroot}
phpMyAdmin must be configured before it can be used.\
Consult the documentation at file://${prefix}/www/phpmyadmin/doc/html/config.html
A sample configuration file is installed at ${configsample}, but you mustn’t edit this file.\
The file to edit is the real configuration file at ${configfile}.
if {[file exists ${configfile}]} {
notes-append "\n\nYour existing config file has not been modified. You should manually compare the new sample config file with your existing config file."
if {![file exists ${configfile}]} {
xinstall -m 0644 ${configsample} ${configfile}
livecheck.url ${homepage}home_page/version.php
livecheck.regex {^([0-9.]+)$}