OASISFormat:      0.4
Name:             postgresql-ocaml
Version:          2.0.5
Synopsis:         postgresql-ocaml - bindings to the PostgreSQL library
Description:      postgresql-ocaml offers library functions for accessing PostgreSQL databases
Authors:          Alain Frisch <alain.frisch@lexifi.com>,
                  Markus Mottl <markus.mottl@gmail.com>
Copyrights:       (C) 2001-2012 Alain Frisch <alain.frisch@lexifi.com>,
                  (C) 2004-2012 Markus Mottl <markus.mottl@gmail.com>
Maintainers:      Markus Mottl <markus.mottl@gmail.com>,
                  Alain Frisch <alain.frisch@lexifi.com>
LicenseFile:      COPYING.txt
License:          LGPL-2.1+ with OCaml linking exception
OCamlVersion:     >= 3.12
FindlibVersion:   >= 1.3.1
Homepage:         https://bitbucket.org/mmottl/postgresql-ocaml
#Categories:
#FilesAB:

Plugins:          META (0.4), StdFiles (0.4), DevFiles (0.4)
XStdFilesREADME:  false

BuildTools:       ocamldoc, ocamlbuild

Flag strict
  Description:    Strict compile-time checks
  Default:        true

Library postgresql
  Path:           lib
  FindlibName:    postgresql
  Modules:        Postgresql
  CSources:       postgresql_stubs.c
  CCOpt:          -g -O2 -fPIC -DPIC
  if flag(strict) && ccomp_type(cc)
    CCOpt+:       -Wall -pedantic -Wextra -Wunused -Wno-long-long
  CCLib:          -lpq
  BuildDepends:   threads, bigarray


# Examples

Flag examples
  Description:    Build examples
  Default:        true

Executable cursor
  Path:           examples
  MainIs:         cursor.ml
  Build$:         flag(examples)
  BuildDepends:   postgresql
  Install:        false
  CompiledObject: best

Executable dump
  Path:           examples
  MainIs:         dump.ml
  Build$:         flag(examples)
  BuildDepends:   postgresql
  Install:        false
  CompiledObject: best

Executable populate
  Path:           examples
  MainIs:         populate.ml
  Build$:         flag(examples)
  BuildDepends:   postgresql
  Install:        false
  CompiledObject: best

Executable prompt
  Path:           examples
  MainIs:         prompt.ml
  Build$:         flag(examples)
  BuildDepends:   postgresql
  Install:        false
  CompiledObject: best

Flag lablgtk2
  Description:    Build applications depending on lablgtk2
  Default:        false

Executable prompt_gtk
  Path:           examples
  MainIs:         prompt_gtk.ml
  Build$:         flag(examples) && flag(lablgtk2)
  BuildDepends:   postgresql, lablgtk2
  Install:        false
  CompiledObject: best

Executable test_lo
  Path:           examples
  MainIs:         test_lo.ml
  Build$:         flag(examples)
  BuildDepends:   postgresql
  Install:        false
  CompiledObject: best

#

Document API
  Title:                API reference for PCRE-OCaml
  Type:                 OCamlbuild (0.4)
  InstallDir:           $docdir/api
  XOCamlbuildPath:      .
  XOCamlbuildLibraries: postgresql

SourceRepository trunk
  Type:       hg
  Location:   ssh://hg@bitbucket.org/mmottl/postgresql-ocaml
  Browser:    https://bitbucket.org/mmottl/postgresql-ocaml
  Tag:        release-$(pkg_version)
