1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup archcheck 1.0 |
---|
6 | |
---|
7 | name pgAdmin3-devel |
---|
8 | version 1.16.0 |
---|
9 | license PostgreSQL |
---|
10 | |
---|
11 | categories aqua |
---|
12 | maintainers mareimbrium.org:kuba |
---|
13 | |
---|
14 | description An administration program to PostgreSQL |
---|
15 | long_description pgAdmin III is a powerful administration and development \ |
---|
16 | platform for the PostgreSQL database, free for any use. The \ |
---|
17 | application works on several platforms, e.g. GNU/Linux, FreeBSD, \ |
---|
18 | OS X and Windows 2000/XP. This port is for OS X. |
---|
19 | |
---|
20 | conflicts pgAdmin3 |
---|
21 | |
---|
22 | platforms macosx |
---|
23 | homepage http://www.pgadmin.org/ |
---|
24 | |
---|
25 | master_sites http://developer.pgadmin.org/ftp/release/v${version}/src/ \ |
---|
26 | http://www.postgresql.org/ftp/pgadmin3/release/v${version}/src/ \ |
---|
27 | postgresql:pgadmin3/release/v${version}/src/ |
---|
28 | |
---|
29 | distname pgadmin3-${version} |
---|
30 | |
---|
31 | checksums sha256 f9cd6ff620f9c920615261ed6bd4b4c9f7b446420ed18a8080d2375640d851ac \ |
---|
32 | rmd160 d528d78d1a6ebcbd25f3af31d50623252eb3820c |
---|
33 | |
---|
34 | depends_lib port:postgresql92 \ |
---|
35 | port:wxWidgets-devel \ |
---|
36 | port:openssl \ |
---|
37 | port:libxml2 \ |
---|
38 | port:libxslt |
---|
39 | |
---|
40 | archcheck.files lib/postgresql92/libpq.dylib \ |
---|
41 | lib/libwx_osx_cocoau_gl-2.9.dylib |
---|
42 | |
---|
43 | patchfiles rescomp.diff |
---|
44 | |
---|
45 | configure.args --with-pgsql=${prefix}/lib/postgresql92 \ |
---|
46 | --with-wx=${prefix} \ |
---|
47 | --with-wx-version=2.9 \ |
---|
48 | --with-libxml2=${prefix} \ |
---|
49 | --with-libxslt=${prefix} \ |
---|
50 | --enable-appbundle |
---|
51 | |
---|
52 | if {[info exists build_arch] && ${build_arch} != ""} { |
---|
53 | configure.args-append "--with-arch-${build_arch}" |
---|
54 | } |
---|
55 | |
---|
56 | use_parallel_build no |
---|
57 | build.target all install |
---|
58 | |
---|
59 | #destroot.violate_mtree yes |
---|
60 | destroot { |
---|
61 | xinstall -d -m 0755 ${destroot}${applications_dir} |
---|
62 | file copy ${worksrcpath}/pgAdmin3.app ${destroot}${applications_dir}/${name}.app |
---|
63 | } |
---|
64 | |
---|
65 | foreach arch ${universal_archs} { |
---|
66 | configure.universal_args-append --with-arch-${arch} |
---|
67 | } |
---|
68 | configure.universal_cflags |
---|
69 | configure.universal_cxxflags |
---|
70 | |
---|
71 | variant with_postgresql82 conflicts with_postgresql83 with_postgresql84 with_postgresql90 with_postgresql91 \ |
---|
72 | description {support for PostgreSQL 8.2.x} { |
---|
73 | archcheck.files-delete lib/postgresql92/libpq.dylib |
---|
74 | archcheck.files-append lib/postgresql82/libpq.dylib |
---|
75 | depends_lib-delete port:postgresql912 |
---|
76 | depends_lib-delete --with-pgsql=${prefix}/lib/postgresql92 |
---|
77 | depends_lib-append port:postgresql82 |
---|
78 | configure.args-append --with-pgsql=${prefix}/lib/postgresql82 |
---|
79 | } |
---|
80 | |
---|
81 | variant with_postgresql83 conflicts with_postgresql82 with_postgresql84 with_postgresql90 with_postgresql91 \ |
---|
82 | description {support for PostgreSQL 8.3.x} { |
---|
83 | archcheck.files-delete lib/postgresql92/libpq.dylib |
---|
84 | archcheck.files-append lib/postgresql83/libpq.dylib |
---|
85 | depends_lib-delete port:postgresql92 |
---|
86 | depends_lib-delete --with-pgsql=${prefix}/lib/postgresql92 |
---|
87 | depends_lib-append port:postgresql83 |
---|
88 | configure.args-append --with-pgsql=${prefix}/lib/postgresql83 |
---|
89 | } |
---|
90 | |
---|
91 | variant with_postgresql84 conflicts with_postgresql82 with_postgresql83 with_postgresql90 with_postgresql91 \ |
---|
92 | description {support for PostgreSQL 8.4.x} { |
---|
93 | archcheck.files-delete lib/postgresql92/libpq.dylib |
---|
94 | archcheck.files-append lib/postgresql84/libpq.dylib |
---|
95 | depends_lib-delete port:postgresql92 |
---|
96 | depends_lib-delete --with-pgsql=${prefix}/lib/postgresql92 |
---|
97 | depends_lib-append port:postgresql84 |
---|
98 | configure.args-append --with-pgsql=${prefix}/lib/postgresql84 |
---|
99 | } |
---|
100 | |
---|
101 | variant with_postgresql90 conflicts with_postgresql82 with_postgresql83 with_postgresql84 with_postgresql91 \ |
---|
102 | description {support for PostgreSQL 9.0.x} { |
---|
103 | archcheck.files-delete lib/postgresql92/libpq.dylib |
---|
104 | archcheck.files-append lib/postgresql90/libpq.dylib |
---|
105 | depends_lib-delete port:postgresql92 |
---|
106 | depends_lib-delete --with-pgsql=${prefix}/lib/postgresql92 |
---|
107 | depends_lib-append port:postgresql90 |
---|
108 | configure.args-append --with-pgsql=${prefix}/lib/postgresql90 |
---|
109 | } |
---|
110 | |
---|
111 | variant with_postgresql91 conflicts with_postgresql82 with_postgresql83 with_postgresql84 with_postgresql90 \ |
---|
112 | description {support for PostgreSQL 9.1.x} { |
---|
113 | archcheck.files-delete lib/postgresql92/libpq.dylib |
---|
114 | archcheck.files-append lib/postgresql91/libpq.dylib |
---|
115 | depends_lib-delete port:postgresql92 |
---|
116 | depends_lib-delete --with-pgsql=${prefix}/lib/postgresql92 |
---|
117 | depends_lib-append port:postgresql91 |
---|
118 | configure.args-append --with-pgsql=${prefix}/lib/postgresql91 |
---|
119 | } |
---|
120 | |
---|
121 | variant debug description {provide a debug build in case of difficulties} { |
---|
122 | configure.args-append --enable-debug |
---|
123 | } |
---|
124 | |
---|
125 | livecheck.type regex |
---|
126 | livecheck.url ${homepage} |
---|
127 | livecheck.regex pgAdmin v(1\\.\[0-9\]+\\.\[0-9\]+) |
---|