~cypheon/pkgsrc-wip

pkgsrc-wip/maxima-git/options.mk -rw-r--r-- 831 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: options.mk,v 1.5 2010/10/17 19:16:08 asau Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.maxima
PKG_OPTIONS_REQUIRED_GROUPS=	lisp
PKG_OPTIONS_GROUP.lisp=		clisp sbcl ecl

PKG_SUGGESTED_OPTIONS+=		clisp

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

# Select Lisp backend
.if !empty(PKG_OPTIONS:Mclisp)
DEPENDS+=		clisp-[0-9]*:../../lang/clisp
CONFIGURE_ARGS+=	--enable-clisp
.endif
.if !empty(PKG_OPTIONS:Msbcl)
DEPENDS+=		sbcl-[0-9]*:../../lang/sbcl
CONFIGURE_ARGS+=	--enable-sbcl
.endif
.if !empty(PKG_OPTIONS:Mecl)
DEPENDS+=		ecl-[0-9]*:../../lang/ecl
CONFIGURE_ARGS+=	--enable-ecl
.include "../../lang/ecl/buildlink3.mk"
.include "../../devel/libffi/buildlink3.mk"
.endif

# Modify PLIST
PLIST_VARS+=		${PKG_OPTIONS_GROUP.lisp}
.for opt in ${PKG_OPTIONS_GROUP.lisp}
.  if !empty(PKG_OPTIONS:M${opt})
PLIST.${opt}=		yes
.  endif
.endfor