1 | # $Id: Portfile,v 1.00 2005/06/02 10:39:42 jwa Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name pgAdmin3 |
---|
5 | version 1.4.0 |
---|
6 | categories aqua |
---|
7 | maintainers jyrki.wahlstedt@hut.fi |
---|
8 | description "An administration program to PostgreSQL" |
---|
9 | long_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." |
---|
16 | platforms macosx |
---|
17 | homepage http://www.pgadmin.org/ |
---|
18 | |
---|
19 | master_sites http://developer.pgadmin.org/ftp/release/v${version}/src/ \ |
---|
20 | http://www.postgresql.org/ftp/pgadmin3/release/v${version}/src/ |
---|
21 | |
---|
22 | distname pgadmin3-${portversion} |
---|
23 | checksums ${distname}${extract.suffix} md5 a0779079bf579b0cd5e132ac5372f7f3 |
---|
24 | |
---|
25 | depends_lib port:postgresql8\ |
---|
26 | port:wxWidgets\ |
---|
27 | port:openssl |
---|
28 | |
---|
29 | configure.args --with-pgsql=${prefix}/pgsql --with-wx=${prefix} --enable-appbundle |
---|
30 | |
---|
31 | post-build { |
---|
32 | cd ${worksrcpath} |
---|
33 | system "make install" |
---|
34 | } |
---|
35 | |
---|
36 | destroot { |
---|
37 | xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts |
---|
38 | file copy ${worksrcpath}/${name}.app ${destroot}/Applications/DarwinPorts/${name}.app |
---|
39 | } |
---|
40 | |
---|
41 | variant pre { |
---|
42 | # database installed already |
---|
43 | depends_lib-delete port:postgresql8 |
---|
44 | configure.args --with-wx=${prefix} --enable-appbundle |
---|
45 | } |
---|
46 | |
---|
47 | variant postgresql7 { |
---|
48 | depends_lib-delete port:postgresql8 |
---|
49 | depends_lib-append port:postgresql |
---|
50 | } |
---|
51 | |
---|