# -*- 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
description A state-of-the-art semantic personal publishing platform
long_description WordPress is a state-of-the-art semantic personal publishing platform \
with a focus on aesthetics, web standards, and usability.
homepage https://wordpress.org/
checksums rmd160 964706415b71fc7ff1db1ccbc4980720eeba7497 \
sha256 1f6e9d16cb6b3cd77b754ad806ee67cd4b58a4c15b3a7ddf30b4237e359a437b
# The php variants deliberately do not conflict
foreach php {php55 php56 php70 php71} {
variant ${php} description "Use ${php}" "
depends_run-append port:${php}-gd \
if {![variant_isset php55] && ![variant_isset php56] && ![variant_isset php70]} {
file copy ${worksrcpath} ${destroot}${prefix}/www/${name}
If your webserver is already running with php and mysql, connect on http://localhost/wordpress/ to finish the install.
Temporarily allow the webserver write access so it can create wp-config.php (or do it yourself)
$ sudo chmod 1777 ${prefix}/www/wordpress
$ sudo chmod 755 ${prefix}/www/wordpress
If Apache is not set, set an alias to the wordpress dir and some access like
-- ${prefix}/apache2/conf/extra/wordpress.conf
Alias /wordpress/ \"${prefix}/www/wordpress/\"
<Directory \"${prefix}/www/wordpress\">
Options Indexes FollowSymLinks