Merge from vendor branch TNF:
[pkgsrcv2.git] / geography / mapserver / options.mk
1 # $NetBSD: options.mk,v 1.2 2010/01/27 08:12:19 adam Exp $
2
3 PKG_OPTIONS_VAR=        PKG_OPTIONS.mapserver
4 PKG_SUPPORTED_OPTIONS=  fastcgi pgsql mysql x11
5 PKG_SUGGESTED_OPTIONS=  x11
6
7 .include "../../mk/bsd.options.mk"
8
9 #
10 # FastCGI support
11 #
12 .if !empty(PKG_OPTIONS:Mfastcgi)
13 .include "../../www/fcgi/buildlink3.mk"
14 CONFIGURE_ARGS+=        --with-fastcgi
15 .endif
16
17 #
18 # PostgreSQL/PostGIS support
19 #
20 .if !empty(PKG_OPTIONS:Mpgsql)
21 .include "../../databases/postgresql-postgis/buildlink3.mk"
22 CONFIGURE_ARGS+=        --with-postgis
23 .endif
24
25 #
26 # MySQL/MyGIS support
27 #
28 .if !empty(PKG_OPTIONS:Mmysql)
29 .include "../../databases/mysql5-client/buildlink3.mk"
30 CONFIGURE_ARGS+=        --with-mygis
31 .endif
32
33 #
34 # x11 (xpm) support
35 #
36 .if !empty(PKG_OPTIONS:Mx11)
37 .include "../../x11/libXpm/buildlink3.mk"
38 .else
39 CONFIGURE_ARGS+=        --without-xpm
40 .endif