Ticket #5215: Portfile.2

File Portfile.2, 2.0 KB (added by joe@…, 19 years ago)

gallery 2.0 portfile

Line 
1PortSystem              1.0
2
3name                    gallery
4version                 2.0
5categories              www
6maintainers             joe@netmusician.org
7
8description             Gallery is a web based photo album written using PHP
9long_description        Gallery is a web based software product that lets you manage your \
10                        photos on your own website. You must have your own website with PHP \
11                        support in order to install and use it. With Gallery you can easily \
12                        create and maintain albums of photos via an intuitive interface. Photo \
13                        management includes automatic thumbnail creation, image resizing, \
14                        rotation, ordering, captioning, searching and more. Albums can have \
15                        read, write and caption permissions per individual authenticated user \
16                        for an additional level of privacy. Give accounts to your friends and \
17                        family and let them upload and manage their own photos on your \
18                        website!
19
20homepage                http://gallery.menalto.com
21master_sites            sourceforge
22distname                gallery-${version}-full
23checksums               md5 2b0f11a494b7c18e17f333509cbb7ee8
24platforms               darwin freebsd
25
26depends_lib             port:jhead \
27                        port:netpbm \
28                        port:unzip \
29                        port:ImageMagick
30                       
31default_variants        +apache +php4 +mysql4
32
33variant apache conflicts apache2 {
34        depends_lib-append      port:apache
35}
36
37variant apache2 conflicts apache {
38        depends_lib-append      port:apache2
39}
40
41variant php4 conflicts php5 {
42        depends_lib-append      port:php4
43}
44
45variant php5 conflicts php4 {
46        depends_lib-append      port:php5
47}
48
49variant mysql conflicts mysql4 postgresql {
50        depends_lib-append      port:mysql
51}
52
53variant mysql4 conflicts mysql postgresql {
54        depends_lib-append      port:mysql4
55}
56
57variant postgresql conflicts mysql mysql4 {
58        depends_lib-append      port:postgresql
59}
60
61use_configure   no
62configure       {}
63build           {}
64
65
66if { [variant_isset apache] } {
67                set docpath ${destroot}${prefix}/www/data/gallery
68        } elseif { [variant_isset apache2] } {
69                set docpath ${destroot}${prefix}/apache2/htdocs/gallery
70        }   
71
72destroot {
73        xinstall -m 755 -d ${destroot}${prefix}/www/data/gallery
74        eval file copy [glob ${workpath}/gallery2/*] ${docpath}
75}