Ticket #5769: Portfile

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

The portfile (for pgAdmin3 1.4.0)

Line 
1# $Id: Portfile,v 1.00 2005/06/02 10:39:42 jwa Exp $
2
3PortSystem 1.0
4name            pgAdmin3
5version         1.4.0
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 a0779079bf579b0cd5e132ac5372f7f3
24
25depends_lib     port:postgresql8\
26                port:wxWidgets\
27                port:openssl
28
29configure.args  --with-pgsql=${prefix}/pgsql --with-wx=${prefix} --enable-appbundle
30
31post-build {
32        cd ${worksrcpath}
33        system "make install"
34}
35
36destroot {
37        xinstall -d -m 0755 ${destroot}/Applications/DarwinPorts
38        file copy ${worksrcpath}/${name}.app ${destroot}/Applications/DarwinPorts/${name}.app
39}
40
41variant pre {
42         # database installed already
43        depends_lib-delete port:postgresql8
44        configure.args --with-wx=${prefix} --enable-appbundle
45}
46
47variant postgresql7 {
48        depends_lib-delete port:postgresql8
49        depends_lib-append port:postgresql
50}
51