# -*- 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
description An administration program to PostgreSQL
long_description pgAdmin III is a powerful administration and development \
platform for the PostgreSQL database, free for any use. The \
application works on several platforms, e.g. GNU/Linux, FreeBSD, \
OS X and Windows 2000/XP. This port is for OS X.
homepage http://www.pgadmin.org/
master_sites https://developer.pgadmin.org/ftp/release/v${version}/src/ \
https://www.postgresql.org/ftp/pgadmin/pgadmin3/v${version}/src/ \
postgresql:pgadmin/pgadmin3/v${version}/src/
distname pgadmin3-${version}
checksums rmd160 48e732089cd1879f99d1894229a9cc23ed3c0c44 \
sha256 9b68b0e3d3f0a261344fb8196825967d1e7acaca1d8cc82c42e12368ca5844ac \
wxWidgets.use wxWidgets-3.0
# For unknown reasons pgAdmin3.app/Contents/MacOS/pgAdmin3 still links to
# libcrypto.1.1.dylib, so the openssl dependency is needed even if pgAdmin3
# is built with libgcrypt.
depends_lib path:lib/libssl.dylib:openssl \
configure.args --with-wx=${wxWidgets.prefix} \
--with-wx-version=${wxWidgets.version} \
--with-libxml2=${prefix} \
--with-libxslt=${prefix} \
--with-libgcrypt=${prefix} \
system -W ${worksrcpath} "patch -p0 <${filespath}/patch-Makefile.diff"
reinplace "s;wxrc;${wxWidgets.wxrc};" ${worksrcpath}/pgadmin/ui/embed-xrc
destroot.violate_mtree yes