Ticket #5215: Portfile

File Portfile, 2.1 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
26# port:netpbm broken as of 10/01/05, could be added as a dependency
27
28depends_lib             port:jhead \
29                        port:unzip \
30                        port:ImageMagick
31                       
32default_variants        +apache +php4 +mysql4
33
34variant apache conflicts apache2 {
35        depends_lib-append      port:apache
36}
37
38variant apache2 conflicts apache {
39        depends_lib-append      port:apache2
40}
41
42variant php4 conflicts php5 {
43        depends_lib-append      port:php4
44}
45
46variant php5 conflicts php4 {
47        depends_lib-append      port:php5
48}
49
50variant mysql conflicts mysql4 postgresql {
51        depends_lib-append      port:mysql
52}
53
54variant mysql4 conflicts mysql postgresql {
55        depends_lib-append      port:mysql4
56}
57
58variant postgresql conflicts mysql mysql4 {
59        depends_lib-append      port:postgresql
60}
61
62use_configure   no
63configure       {}
64build           {}
65
66
67if { [variant_isset apache] } {
68                set docpath ${destroot}${prefix}/www/data/gallery
69        } elseif { [variant_isset apache2] } {
70                set docpath ${destroot}${prefix}/apache2/htdocs/gallery
71        }   
72
73destroot {
74        xinstall -m 755 -d ${destroot}${prefix}/www/data/gallery
75        eval file copy [glob ${workpath}/gallery2/*] ${docpath}
76}