1 # $NetBSD: options.mk,v 1.7 2011/03/06 16:04:33 wiz Exp $
3 PKG_OPTIONS_VAR
= PKG_OPTIONS.xscreensaver
4 PKG_SUPPORTED_OPTIONS
= pam webcollage opengl
5 PKG_SUGGESTED_OPTIONS
= opengl
7 .
include "../../mk/bsd.options.mk"
9 .if
!empty
(PKG_OPTIONS
:Mpam
)
10 .
include "../../mk/pam.buildlink3.mk"
11 CONFIGURE_ARGS
+= --with-pam
12 CONFIGURE_ARGS
+= --without-shadow
13 . if
${OPSYS} == "NetBSD"
14 # needed to read shadow passwords
15 DEPENDS
+= pam-pwauth_suid-
*:..
/..
/security
/pam-pwauth_suid
18 CONFIGURE_ARGS
+= --without-pam
19 # configure should figure out
20 #CONFIGURE_ARGS+= --without-shadow
24 .if
!empty
(PKG_OPTIONS
:Mwebcollage
)
25 PLIST_SRC
+= PLIST.webcollage
27 post-install
: delwebcollage
29 rm ${DESTDIR}${PREFIX}/libexec
/xscreensaver
/config
/webcollage.xml
30 rm ${DESTDIR}${PREFIX}/libexec
/xscreensaver
/webcollage
31 rm ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
/webcollage
.6
34 .if
!empty
(PKG_OPTIONS
:Mopengl
)
35 PLIST_SRC
+= PLIST.opengl
36 CONFIGURE_ARGS
+= --with-gl
37 CONFIGURE_ARGS
+= --with-gle
38 .
include "../../graphics/gle/buildlink3.mk"
40 CONFIGURE_ARGS
+= --without-gl
41 CONFIGURE_ARGS
+= --without-gle