Ticket #36234: Portfile

File Portfile, 4.5 KB (added by KubaO (Kuba Ober), 12 years ago)

aqua/pgAdmin3-devel/Portfile

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$
3
4PortSystem 1.0
5PortGroup               archcheck 1.0
6
7name            pgAdmin3-devel
8version         1.16.0
9license         PostgreSQL
10
11categories      aqua
12maintainers     mareimbrium.org:kuba
13
14description     An administration program to PostgreSQL
15long_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
20conflicts       pgAdmin3
21
22platforms       macosx
23homepage        http://www.pgadmin.org/
24
25master_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
29distname        pgadmin3-${version}
30
31checksums sha256 f9cd6ff620f9c920615261ed6bd4b4c9f7b446420ed18a8080d2375640d851ac \
32          rmd160 d528d78d1a6ebcbd25f3af31d50623252eb3820c
33
34depends_lib     port:postgresql92 \
35    port:wxWidgets-devel \
36    port:openssl \
37    port:libxml2 \
38    port:libxslt
39
40archcheck.files lib/postgresql92/libpq.dylib \
41    lib/libwx_osx_cocoau_gl-2.9.dylib
42
43patchfiles  rescomp.diff
44
45configure.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
52if {[info exists build_arch] && ${build_arch} != ""} {
53    configure.args-append "--with-arch-${build_arch}"
54}
55
56use_parallel_build      no
57build.target    all install
58
59#destroot.violate_mtree yes
60destroot {
61    xinstall -d -m 0755 ${destroot}${applications_dir}
62    file copy ${worksrcpath}/pgAdmin3.app ${destroot}${applications_dir}/${name}.app
63}
64
65foreach arch ${universal_archs} {
66    configure.universal_args-append --with-arch-${arch}
67}
68configure.universal_cflags
69configure.universal_cxxflags
70
71variant 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
81variant 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
91variant 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
101variant 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
111variant 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
121variant debug description {provide a debug build in case of difficulties} {
122    configure.args-append       --enable-debug
123}
124
125livecheck.type  regex
126livecheck.url   ${homepage}
127livecheck.regex pgAdmin v(1\\.\[0-9\]+\\.\[0-9\]+)