summaryrefslogtreecommitdiff
path: root/devel/gps/options.mk
blob: 6268b188c9062b01a8ad32414fe675eb4122b830 (plain)
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
# $NetBSD: options.mk,v 1.3 2012/10/04 07:05:54 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.gps
PKG_SUPPORTED_OPTIONS=	syslog python sqlite 
PKG_SUGGESTED_OPTIONS=	syslog sqlite

PLIST_VARS+=	pysupport

.include "../../mk/bsd.options.mk"


######################
##  SYSLOG SUPPORT  ##
######################

.if !empty(PKG_OPTIONS:Msyslog)
CONFIGURE_ARGS+= --enable-syslog=yes
.else
CONFIGURE_ARGS+= --enable-syslog=no
.endif


######################
##  SQLITE SUPPORT  ##
######################

.if !empty(PKG_OPTIONS:Msqlite)
CONFIGURE_ARGS+= --with-sqlite=${PREFIX}
.include "../../databases/sqlite3/buildlink3.mk"
.endif


##########################
##  POSTGRESQL SUPPORT  ##
##########################

.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
.include "../../databases/postgresql90-client/buildlink3.mk"
.endif


##############################
##  PYTHON / PYGTK SUPPORT  ##
##############################

#
# Something is wrong with the pkgsrc versions of Python.  Both
# versions 2.6 and 2.7 will cause a core dump of gps because they
# contain undefined symbols in their dynamically loaded libraries.
# Since no version of Python < 3 can work with GPS, this option
# has been removed from the list.
#

.if !empty(PKG_OPTIONS:Mpython)
CONFIGURE_ARGS+= --with-python=${PREFIX}
CONFIGURE_ARGS+= --enable-shared-python=no
CONFIGURE_ARGS+= --enable-pygtk
PLIST.pysupport= yes
.include "../../lang/python/pyversion.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-python
CONFIGURE_ARGS+= --disable-pygtk
.endif