# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 67719 2010-05-16 19:44:24Z mbclark@macports.org $

PortSystem          1.0

name                radlib

version             2.10.1

categories          devel

maintainers         mac.com:mbrooksclark

platforms           darwin

universal_variant   no

use_autoconf        yes

description         Rapid Application Development Library
long_description \
  radlib is a rapid application development library for unix \
  multi-process applications. It uses SYS V IPC facilities and FIFOs \
  to provide an RTOS-like, event-driven, distributed framework. \
  Processes may be run as daemons or have a controlling terminal.

homepage            http://www.radlib.teel.ws/

master_sites        sourceforge:radlib

checksums           md5     e6d2848c04a9efa49264ea2f3beb9986 \
                    sha1    fdaa320abf1bd69132c473d04ee96ebd051da1ca \
                    rmd160  96516d3f8a7de2144550ceabd22a5577531492eb

variant mysql5 description {Includes mySQL5 database support} {
  configure.args-append     --enable-mysql
  configure.cflags-append   -I${prefix}/include/mysql5/mysql
  configure.ldflags-append  -L${prefix}/lib/mysql5/mysql
  depends_lib-append        port:openssl port:zlib path:bin/mysql_config5:mysql5
}

variant sqlite3 description {Include sqlite3 database support} {
  configure.args-append     --enable-sqlite
  depends_lib-append        port:sqlite3
}

if {![variant_isset mysql5]} {
    default_variants +sqlite3
}
