aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xlockmore/Makefile
blob: 8e0ace81f5e764910663c99e461bf40025d9b2c3 (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
# New ports collection makefile for:    xlockmore
# Date created:     9 November 1994
# Whom:         smace
#
# $FreeBSD$
#

PORTNAME=   xlockmore
PORTVERSION=    4.17
CATEGORIES= x11
MASTER_SITES=   ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \
        ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications

MAINTAINER= tg@FreeBSD.org

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --without-gl --without-motif --without-sx \
        --without-editres --without-dtsaver --without-rplay \
        --without-nas --without-gtk --without-esound
.if defined(MAKE_KERBEROS4)
CONFIGURE_ARGS+= --enable-kerberos4
.endif
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
CONFIGURE_ARGS+= --enable-kerberos5
.endif
USE_X_PREFIX=   yes
USE_XPM=    yes
MAN1=       xlock.1

.include <bsd.port.pre.mk>

# .if ${OSVERSION} > 300000
# CONFIGURE_ARGS+= --with-libraries=/usr/lib/aout
# .endif

WITH_MESAGL?=   yes
.if ${WITH_MESAGL} == yes
CONFIGURE_ARGS+=    --with-mesagl
USE_MESA=   yes
.else
CONFIGURE_ARGS+=    --without-mesagl
.endif

XFREE86VERSION!= /usr/bin/awk '/\#define XFree86Version/ {print $$3}' \
                ${X11BASE}/lib/X11/config/xfree86.cf

.if ${XFREE86VERSION} >= 4000
post-configure:
    ${PERL} -pi -e 's/-lXdpms//g' ${WRKSRC}/modes/Makefile
.endif

.include <bsd.port.post.mk>