source: trunk/dports/aqua/pgAdmin3/Portfile @ 67784

Last change on this file since 67784 was 67784, checked in by ryandesign@…, 7 years ago

pgAdmin3: change archcheck.files to use a wx library that exists regardless what variant of wxWidgets is installed (#24933)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
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: Portfile 67784 2010-05-18 11:17:22Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup               archcheck 1.0
6
7name            pgAdmin3
8version         1.10.3
9
10categories      aqua
11maintainers     jwa
12
13description     An administration program to PostgreSQL
14long_description pgAdmin III is a powerful administration and development \
15    platform for the PostgreSQL database, free for any use. The \
16    application works on several platforms, e.g. GNU/Linux, FreeBSD, \
17    OS X and Windows 2000/XP. This port is for OS X.
18
19platforms       macosx
20homepage        http://www.pgadmin.org/
21
22master_sites    http://developer.pgadmin.org/ftp/release/v${version}/src/ \
23    http://www.postgresql.org/ftp/pgadmin3/release/v${version}/src/
24
25distname        pgadmin3-${version}
26
27checksums           md5     c8f104c9b6835f5ea24393c2f93b8a7b \
28                    sha1    d5895ca8be9cccf0faa626b2b7be0049dd4abf92 \
29                    rmd160  8db5b45c946fb4ed990f8386cb193f56c9a0cca9
30
31depends_lib     port:postgresql84 \
32    port:wxWidgets \
33    port:openssl \
34    port:libxml2 \
35    port:libxslt
36
37archcheck.files lib/postgresql84/libpq.dylib \
38    lib/libwx_macu_gl-2.8.dylib
39
40configure.args  --with-pgsql=${prefix}/lib/postgresql84 \
41    --with-wx=${prefix} \
42    --with-wx-version=2.8 \
43    --with-libxml2=${prefix} \
44    --with-libxslt=${prefix} \
45    --enable-appbundle
46
47use_parallel_build      no
48build.target    all install
49
50if {$build_arch == "x86_64"} {
51    configure.build_arch i386
52} elseif {$build_arch == "ppc64"} {
53    configure.build_arch ppc
54}
55if {![info exists configure.ld_archflags]} {
56    eval configure.ldflags-append ${configure.cc_archflags}
57}
58# wxWidgets is not universal
59universal_variant no
60
61#destroot.violate_mtree yes
62destroot {
63    xinstall -d -m 0755 ${destroot}${applications_dir}
64    file copy ${worksrcpath}/${name}.app ${destroot}${applications_dir}/${name}.app
65}
66
67variant with_postgresql82 conflicts with_postgresql83 \
68    description {support for PostgreSQL 8.2.x} {
69        depends_lib-delete      port:postgresql84
70        depends_lib-delete      --with-pgsql=${prefix}/lib/postgresql84
71        depends_lib-append      port:postgresql82
72        configure.args-append   --with-pgsql=${prefix}/lib/postgresql82
73}
74
75variant with_postgresql83 conflicts with_postgresql82 \
76    description {support for PostgreSQL 8.3.x} {
77        depends_lib-delete      port:postgresql84
78        depends_lib-delete      --with-pgsql=${prefix}/lib/postgresql84
79        depends_lib-append      port:postgresql83
80        configure.args-append   --with-pgsql=${prefix}/lib/postgresql83
81}
82
83variant debug description {provide a debug build in case of difficulties} {
84    configure.args-append       --enable-debug
85}
86
87livecheck.type  regex
88livecheck.url   ${homepage}
89livecheck.regex pgAdmin v(1\\.\[0-9\]+\\.\[0-9\]+)
Note: See TracBrowser for help on using the repository browser.