summaryrefslogtreecommitdiff
path: root/devel/libslang2/options.mk
blob: 2d0d71dbbb4fb983100fe9f996e8a40a2b80c3c3 (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
# $NetBSD: options.mk,v 1.2 2008/08/28 07:39:49 obache Exp $
#
PKG_OPTIONS_VAR=		PKG_OPTIONS.libslang2
PKG_SUPPORTED_OPTIONS=		png oniguruma pcre

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

PLIST_VARS=	${PKG_SUPPORTED_OPTIONS}

.if !empty(PKG_OPTIONS:Mpng)
CONFIGURE_ARGS+=	--with-png=${BUILDLINK_PREFIX.png}
PLIST.png=		yes
.  include "../../graphics/png/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-png
.endif

.if !empty(PKG_OPTIONS:Mpcre)
CONFIGURE_ARGS+=	--with-pcre=${BUILDLINK_PREFIX.pcre}
PLIST.pcre=		yes
.  include "../../devel/pcre/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-pcre
.endif

.if !empty(PKG_OPTIONS:Moniguruma)
CONFIGURE_ARGS+=	--with-onig=${BUILDLINK_PREFIX.oniguruma}
PLIST.oniguruma=	yes
.  include "../../textproc/oniguruma/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-onig
.endif

.if empty(PKG_OPTIONS:Moniguruma) && empty(PKG_OPTIONS:Mpcre)
USE_FEATURES+=		regcomp
.endif