1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/x11/xlockmore/Makefile
Sergey A. Osokin 1fdb0bc2d0 Add WITH_SYSLOG knob.
Submitted by:	Katsura Matsumoto <katsura@cc.osaka-kyoiku.ac.jp>
PR:		62629
2004-02-11 17:47:34 +00:00

76 lines
1.6 KiB
Makefile

# New ports collection makefile for: xlockmore
# Date created: 9 November 1994
# Whom: smace
#
# $FreeBSD$
#
PORTNAME= xlockmore
PORTVERSION= 5.11.1
CATEGORIES?= x11
MASTER_SITES= ftp://ftp.tux.org/pub/tux/bagleyd/xlockmore/ \
${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications
MAINTAINER?= ports@FreeBSD.org
COMMENT= Like XLock session locker/screen saver, but just more
USE_BZIP2= yes
USE_REINPLACE= yes
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
KRB4LIB= -lcom_err -lcrypto
.endif
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
CONFIGURE_ARGS+= --enable-kerberos5
CFLAGS+= -I${KRB5_HOME}/include
KRB5LIB= -L${KRB5_HOME}/lib
.endif
USE_X_PREFIX= yes
USE_XPM= yes
MAN1= xlock.1
.if ${MACHINE_ARCH} == "amd64"
WITH_MESAGL= no
.else
WITH_MESAGL?= yes
.endif
.if ${WITH_MESAGL} == yes
CONFIGURE_ARGS+= --with-mesa
MESALIB=${PTHREAD_LIBS}
USE_GL= yes
.else
CONFIGURE_ARGS+= --without-mesa --without-opengl
.endif
.if defined(WITH_MB)
CONFIGURE_ARGS+= --enable-use_mb
.endif
.if defined(XLOCKMORE_LANG)
CONFIGURE_ARGS+= --with-lang=${XLOCKMORE_LANG}
.endif
.if defined(WITH_SYSLOG)
CONFIGURE_ARGS+= --enable-syslog
.endif
CONFIGURE_ENV+= XLOCKLIBS="${KRB5LIB} ${KRB4LIB} ${MESALIB}"
.include <bsd.port.pre.mk>
.if defined(WITH_DISABLE_ALLOW_ROOT)
CONFIGURE_ARGS+= --disable-allow-root
.endif
.if ${XFREE86_VERSION} >= 4
post-configure:
${REINPLACE_CMD} -e 's/-lXdpms//g' ${WRKSRC}/modes/Makefile
.endif
.include <bsd.port.post.mk>