aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xlockmore/Makefile
blob: 3f10d0c837708d368e9f37bf246662e69a983073 (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Created by: Scott Mace <smace@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xlockmore
PORTVERSION=    5.66
CATEGORIES= x11
MASTER_SITES=   http://www.sillycycle.com/xlock/ \
        SF/bsdsrc/${.CURDIR:T}

MAINTAINER= jgh@FreeBSD.org
COMMENT=    Like XLock session locker/screen saver, but just more

LICENSE=    BSD2CLAUSE

LIB_DEPENDS=    libfreetype.so:print/freetype2

USES=       tar:xz xorg
USE_XORG=   ice sm x11 xaw xext xpm xorgproto

CONFIGURE_ARGS= --without-motif --without-editres \
        --without-dtsaver --without-rplay --without-nas \
        --without-gtk --without-esound --disable-setuid \
        --disable-kerberos4
GNU_CONFIGURE=  yes
PORTDOCS=   README ${PORTNAME}.README

OPTIONS_DEFINE= MESAGL MB SYSLOG DISABLE_ALLOW_ROOT NICE_ONLY BLANK_ONLY \
        KERBEROS5 BAD_PAM GTK2 TIME_BOMB CUSTOMIZATION MAGICK JP \
        XINERAMA DOCS FREETYPE
OPTIONS_RADIO=  ONE
OPTIONS_RADIO_ONE=  PAM XLOCK_GROUP
OPTIONS_DEFAULT=    MB XINERAMA
OPTIONS_SUB=    yes

MESAGL_DESC=    Mesa 3D (for GL modes)
MB_DESC=    Xmb function series
SYSLOG_DESC=    Syslog logging
DISABLE_ALLOW_ROOT_DESC=    Allows users to turn off allowroot
NICE_ONLY_DESC= Only low cpu modes
BLANK_ONLY_DESC=    Blank mode only (boring)
BAD_PAM_DESC=   Xlock will ask PAM with root rights
GTK2_DESC=  Build Gtk2 graphical shell
XLOCK_GROUP_DESC=   Allow xlock group to logout
TIME_BOMB_DESC= Allow autologout
CUSTOMIZATION_DESC= Allow tune through resource file
JP_DESC=    Japanese Language Support

NO_OPTIONS_SORT=    yes

MAKE_ARGS+= bindir=${PREFIX}/bin \
        mandir=${PREFIX}/man/man1 \
        datarootdir=${PREFIX}/share \
        xapploaddir=${PREFIX}/lib/X11/app-defaults

KERBEROS5_CFLAGS=   ${GSSAPICPPFLAGS}
KERBEROS5_CONFIGURE_ENV=    XLOCKLIBS="${GSSAPILDFLAGS} ${GSSAPILIBS} -lcom_err"
KERBEROS5_CONFIGURE_ENABLE= kerberos5
KERBEROS5_USES=     gssapi:mit
MESAGL_CFLAGS=  -I${LOCALBASE}/include/FTGL -I${LOCALBASE}/include/freetype2
MESAGL_CONFIGURE_ENV=   XLOCKLIBS+="-lpthread"
MESAGL_CONFIGURE_WITH=  mesa opengl ftgl
MESAGL_LIB_DEPENDS= libftgl.so:graphics/ftgl
MESAGL_USES=    gl
MESAGL_USE= gl=gl,glu
BAD_PAM_CONFIGURE_ENABLE=   bad-pam
PAM_CONFIGURE_ENABLE=   pam
NICE_ONLY_CONFIGURE_ENABLE= nice-only
BLANK_ONLY_CONFIGURE_ENABLE=    blank-only
MB_CONFIGURE_ENABLE=    mb
SYSLOG_CONFIGURE_ENABLE=    syslog
XINERAMA_CONFIGURE_WITH=    xinerama
XINERAMA_USE=   xorg=xinerama
DISABLE_ALLOW_ROOT_CONFIGURE_ON=    --disable-allow-root
XLOCK_GROUP_CONFIGURE_ENABLE=   xlock-group
TIME_BOMB_CONFIGURE_ENABLE=     bomb
CUSTOMIZATION_CONFIGURE_ENABLE= customization
JP_IMPLIES= MB
JP_CATEGORIES=  japanese
JP_VARS=    XLOCKMORE_LANG=ja
MAGICK_CONFIGURE_WITH=  magick
MAGICK_LIB_DEPENDS= libMagickCore-6.so:graphics/ImageMagick6 \
            libpng.so:graphics/png
GTK2_CONFIGURE_WITH=    gtk2
GTK2_LIB_DEPENDS=   libfontconfig.so:x11-fonts/fontconfig \
            libpng.so:graphics/png
GTK2_USE=   gnome=cairo,gdkpixbuf2,gtk20
GTK2_USES=  gnome pkgconfig
FREETYPE_CONFIGURE_WITH=    ttf
FREETYPE_LIB_DEPENDS=   libgltt.so:graphics/gltt
FREETYPE_CFLAGS=    -I${LOCALBASE}/include/gltt

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MFREETYPE}
IGNORE_FreeBSD_11=  FREETYPE support requires FreeBSD version 12+
.endif

.if defined(XLOCKMORE_LANG)
CONFIGURE_ARGS+=    --with-lang=${XLOCKMORE_LANG}
.endif

.if ${PORT_OPTIONS:MPAM} && empty(PORT_OPTIONS:MBAD_PAM)
pre-extract:
    @${ECHO}
    @${ECHO} "You have enabled PAM support. If you want to authenticate against"
    @${ECHO} "root only accessible PAM modules then define WITH_BAD_PAM=yes also."
    @${ECHO} "For example, pam_unix requires root rights to access shadow passwords."
    @${ECHO}
.endif

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/docs/Revisions ${STAGEDIR}${DOCSDIR}/${PORTNAME}.README
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>