forked from tnarg/haskell-libpq
-
Notifications
You must be signed in to change notification settings - Fork 18
/
postgresql-libpq.cabal
86 lines (74 loc) · 2.46 KB
/
postgresql-libpq.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Name: postgresql-libpq
Version: 0.9.4.1
Synopsis: low-level binding to libpq
Description: This is a binding to libpq: the C application
programmer's interface to PostgreSQL. libpq is a
set of library functions that allow client
programs to pass queries to the PostgreSQL
backend server and to receive the results of
these queries.
Homepage: https://github.com/lpsmith/postgresql-libpq
License: BSD3
License-file: LICENSE
Author: Grant Monroe, Leon P Smith, Joey Adams
Maintainer: Leon P Smith <[email protected]>
Copyright: (c) 2010 Grant Monroe
(c) 2011 Leon P Smith
Category: Database
Build-type: Custom
Extra-source-files: cbits/noticehandlers.h
Cabal-version: >=1.8
Tested-with:
GHC==7.0.4,
GHC==7.2.2,
GHC==7.4.2,
GHC==7.6.3,
GHC==7.8.4,
GHC==7.10.3,
GHC==8.0.2,
GHC==8.2.2,
GHC==8.4.1
Custom-setup
setup-depends:
base >= 4.3 && <5, Cabal >= 1.10 && <2.3
-- If true, use pkg-config, otherwise use the pg_config based build
-- configuration
Flag use-pkg-config
default: False
manual: True
Library
hs-source-dirs: src
c-sources: cbits/noticehandlers.c
include-dirs: cbits
Exposed-modules: Database.PostgreSQL.LibPQ
Database.PostgreSQL.LibPQ.Internal
Build-depends: base >= 4.3 && < 5
, bytestring
if !os(windows)
Build-depends: unix
if os(windows)
Build-depends: Win32
GHC-Options: -Wall
if flag(use-pkg-config)
Pkgconfig-depends: libpq
else
if os(windows)
-- Due to https://sourceware.org/bugzilla/show_bug.cgi?id=22948,
-- if we specify pq instead of libpq, then ld might link against
-- libpq.dll directly, which can lead to segfaults. As a temporary hack,
-- we force ld to link against the libpq.lib import library directly
-- by specifying libpq here.
Extra-Libraries: libpq
else
Extra-Libraries: pq
if os(openbsd)
Extra-Libraries: crypto ssl
-- Other-modules:
Build-tools: hsc2hs
source-repository head
type: git
location: https://github.com/lpsmith/postgresql-libpq
source-repository this
type: git
location: https://github.com/lpsmith/postgresql-libpq
tag: v0.9.4.1