Portfile

# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $

PortSystem 1.0

name gallery
version 2.1.1a
categories www
maintainers nomaintainer@macports.org

description Gallery is a web based photo album written using PHP
long_description Gallery is a web based software product that lets you manage your \
photos on your own website. You must have your own website with PHP \
support in order to install and use it. With Gallery you can easily \
create and maintain albums of photos via an intuitive interface. Photo \
management includes automatic thumbnail creation, image resizing, \
rotation, ordering, captioning, searching and more. Albums can have \
read, write and caption permissions per individual authenticated user \
for an additional level of privacy. Give accounts to your friends and \
family and let them upload and manage their own photos on your \
website!

homepage http://gallery.menalto.com
master_sites sourceforge
distname gallery-${version}-full
checksums md5 0ff0857716a1473c319b6a468c47c877
platforms darwin freebsd

depends_run port:jhead \
port:netpbm \
port:unzip \
port:ImageMagick \
port:expat \
port:fontconfig \
port:gplghostscript \
port:jasper \
port:jbigkit \
port:lcms \
port:libiconv \
port:libxml2 \
port:mpeg2vidcodec \
port:perl5.8 \
port:pkgconfig \
port:libpng \
port:tiff

depends_lib port:apache2 port:php5 port:mysql5

variant apache {
depends_lib-append port:apache
depends_lib-delete port:apache2
}

variant php4 {
depends_lib-append port:php4
depends_lib-delete port:php5
}

variant mysql3 conflicts mysql4 postgresql7 postgresql8 {
depends_lib-append port:mysql
depends_lib-delete port:mysql5
}

variant mysql4 conflicts mysql3 postgresql7 postgresql8 {
depends_lib-append port:mysql4
depends_lib-delete port:mysql5
}

variant postgresql7 conflicts mysql3 mysql4 mysql5 postgresql8 {
depends_lib-append port:postgresql7
depends_lib-delete port:mysql5
}

variant postgresql8 conflicts mysql3 mysql4 mysql5 postgresql7 {
depends_lib-append port:postgresql8
depends_lib-delete port:mysql5
}

use_configure no
build {}

set docpath ${destroot}${prefix}/www/data/gallery

destroot {
xinstall -m 755 -d ${destroot}${prefix}/www/data/gallery
eval file copy [glob ${workpath}/gallery2/*] ${docpath}
}