Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / xscreensaver / options.mk
blob7a7b10332a50fc0c6795a907bf8db43daded75a2
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
16 . endif
17 .else
18 CONFIGURE_ARGS+= --without-pam
19 # configure should figure out
20 #CONFIGURE_ARGS+= --without-shadow
21 .endif
23 PLIST_SRC= PLIST
24 .if !empty(PKG_OPTIONS:Mwebcollage)
25 PLIST_SRC+= PLIST.webcollage
26 .else
27 post-install: delwebcollage
28 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
32 .endif
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"
39 .else
40 CONFIGURE_ARGS+= --without-gl
41 CONFIGURE_ARGS+= --without-gle
42 .endif