mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
cf906e5cf2
Use USES=compiler:openmp for the OPENMP option[2] Ditch the use of perl for patching etc [4] and silence perl threaded check [6] -delay option spurious message should be fixed [5] JASPER option was replace by JPEG2000 for JP2k support. Put 16BIT_PIXEL and HDRI option separate option block. These options change the library name, so the user needs to take this into consideration. Use new LIB_DEPENDS syntax. Use @sample for config files. Sprinkle some USES=pkgconfig for some ports, since we don't pull it in anymore at run-time. PR: 185462 [1] PR: 187548 [2] PR: 182793 [3] PR: 181746 [4] PR: 176047 [5] PR: 190814 [6] Submitted by: c.petrik.sosa@gmail.com [1] Matthieu Volat <mazhe@alkumuna.eu> [2] free.bsd@webstyle.ch [3] andrnils@gmail.com [4] rfg@tristatelogic.com [5] Michelle Sullivan <michelle@sorbs.net> [6] Approved by: portmgr (blanket) (for NO_STAGED ports)
154 lines
3.7 KiB
Makefile
154 lines
3.7 KiB
Makefile
# Created by: Scott Mace <smace@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xlockmore
|
|
PORTVERSION= 5.43
|
|
PORTREVISION= 3
|
|
CATEGORIES?= x11
|
|
MASTER_SITES= http://www.tux.org/~bagleyd/xlock/${PORTNAME}-${PORTVERSION}/ \
|
|
ftp://ibiblio.org/pub/Linux/X11/screensavers/ \
|
|
CRITICAL
|
|
|
|
MAINTAINER?= jgh@FreeBSD.org
|
|
COMMENT= Like XLock session locker/screen saver, but just more
|
|
|
|
USES= tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --without-motif --without-ttf --without-editres \
|
|
--without-dtsaver --without-rplay --without-nas \
|
|
--without-gtk --without-esound --disable-setuid
|
|
|
|
USE_GNOME= #
|
|
USE_XORG= x11 xaw ice
|
|
|
|
LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
OPTIONS_DEFINE= MESAGL MB SYSLOG DISABLE_ALLOW_ROOT NICE_ONLY BLANK_ONLY \
|
|
KERBEROS4 BAD_PAM GTK2 TIME_BOMB CUSTOMIZATION MAGICK
|
|
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
|
|
|
|
OPTIONS_RADIO= ONE
|
|
OPTIONS_RADIO_ONE= PAM XLOCK_GROUP
|
|
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
MAKE_ARGS+= bindir=${STAGEDIR}${PREFIX}/bin \
|
|
mandir=${STAGEDIR}${PREFIX}/man/man1 \
|
|
datarootdir=${STAGEDIR}${PREFIX}/share \
|
|
xapploaddir=${PREFIX}/lib/X11/app-defaults
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MKERBEROS4}
|
|
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
|
|
|
|
.if ${PORT_OPTIONS:MMESAGL}
|
|
CONFIGURE_ARGS+= --with-mesa
|
|
MESALIB=${PTHREAD_LIBS}
|
|
USE_GL= yes
|
|
CFLAGS+= -I${LOCALBASE}/include/FTGL
|
|
.else
|
|
CONFIGURE_ARGS+= --without-mesa --without-opengl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNICE_ONLY}
|
|
CONFIGURE_ARGS+= --enable-nice-only
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MBAD_PAM}
|
|
CONFIGURE_ARGS+= --enable-bad-pam
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
CONFIGURE_ARGS+= --enable-pam
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNICE_ONLY}
|
|
CONFIGURE_ARGS+= --enable-nice-only
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MBLANK_ONLY}
|
|
CONFIGURE_ARGS+= --enable-blank-only
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMB}
|
|
CONFIGURE_ARGS+= --enable-use-mb
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MXLOCKMORE_LANG}
|
|
CONFIGURE_ARGS+= --with-lang=${XLOCKMORE_LANG}
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSYSLOG}
|
|
CONFIGURE_ARGS+= --enable-syslog
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGTK2}
|
|
CONFIGURE_ARGS+= --with-gtk2
|
|
USE_GNOME+= gtk20
|
|
.else
|
|
CONFIGURE_ARGS+= --without-gtk2
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MXLOCK_GROUP}
|
|
CONFIGURE_ARGS+= --enable-xlock-group
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MTIME_BOMB}
|
|
CONFIGURE_ARGS+= --enable-bomb
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-bomb
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCUSTOMIZATION}
|
|
CONFIGURE_ARGS+= --enable-customization
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMAGICK}
|
|
LIB_DEPENDS+= libMagickCore-6.Q*.so:${PORTSDIR}/graphics/ImageMagick
|
|
.else
|
|
CONFIGURE_ARGS+= --without-magick
|
|
.endif
|
|
|
|
CONFIGURE_ENV+= XLOCKLIBS="${KRB5LIB} ${KRB4LIB} ${MESALIB}"
|
|
|
|
.if ${PORT_OPTIONS:MDISABLE_ALLOW_ROOT}
|
|
CONFIGURE_ARGS+= --disable-allow-root
|
|
.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-patch:
|
|
@${REINPLACE_CMD} -e '/xglockrc/ s|PROGRAM|DATA|' ${WRKSRC}/xglock/Makefile.in
|
|
|
|
post-configure:
|
|
${REINPLACE_CMD} -e 's/-lXdpms//g' ${WRKSRC}/modes/Makefile
|
|
|
|
.include <bsd.port.mk>
|