Ticket #3378: Portfile.3

File Portfile.3, 1.5 KB (added by jyrki.wahlstedt@…, 19 years ago)

Portfile: pgAdmin3 1.2.2

Line 
1# $Id: Portfile,v 1.00 2005/06/02 10:39:42 jwa Exp $
2
3PortSystem 1.0
4name            pgAdmin3
5version         1.2.2
6categories      aqua
7maintainers     jyrki.wahlstedt@hut.fi
8description     "An administration program to PostgreSQL"
9long_description "pgAdmin III is a powerful administration and development\
10                platform for the PostgreSQL database, free for any use. The\
11                application works on several platforms (GNU/Linux, FreeBSD\
12                and Windows 2000/XP). This port is for OS X.\
13                Variant pre is for those, who have for one reason or \
14                another installed the database themselves. Variant\
15                postgresql7 is for PostgreSQL 7."
16platforms       macosx
17homepage        http://www.pgadmin.org/
18
19master_sites    http://developer.pgadmin.org/ftp/release/v${version}/src/ \
20                http://www.postgresql.org/ftp/pgadmin3/release/v${version}/src/
21
22distname        pgadmin3-${portversion}
23checksums       ${distname}${extract.suffix} md5 daead4660883f423db31f2019cac2f34
24patchfiles      patch-configure patch-complete-bundle.sh
25
26post-patch {
27        cd pkg/mac
28        file attributes complete-bundle.sh -permissions a+x
29}
30
31depends_lib     port:postgresql8\
32                port:wxWidgets\
33                port:openssl
34
35configure.args  --with-pgsql=${prefix} --with-wx=${prefix} --enable-appbundle
36
37post-build {
38        cd ${worksrcpath}
39        system "make install"
40}
41
42destroot {
43        xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts
44        file copy ${worksrcpath}/${name}.app ${destroot}/Applications/DarwinPorts/${name}.app
45}
46
47variant pre {
48         # database installed already
49        depends_lib-delete port:postgresql8
50}
51
52variant postgresql7 {
53        depends_lib-delete port:postgresql8
54        depends_lib-append port:postgresql
55}
56