Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2019 21:45:59 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r511271 - head/x11/xlockmore
Message-ID:  <201909052145.x85LjxaS081009@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Thu Sep  5 21:45:58 2019
New Revision: 511271
URL: https://svnweb.freebsd.org/changeset/ports/511271

Log:
  - update OPTIONS handling
  - shift hosting distfile at FreeBSD resources to SF
  - drop unsupported KERBEROS4 option
  - xlockmore.README was distributed via upstream, however same file is in
    source code
  - bump portrevision

Modified:
  head/x11/xlockmore/Makefile
  head/x11/xlockmore/distinfo

Modified: head/x11/xlockmore/Makefile
==============================================================================
--- head/x11/xlockmore/Makefile	Thu Sep  5 20:55:22 2019	(r511270)
+++ head/x11/xlockmore/Makefile	Thu Sep  5 21:45:58 2019	(r511271)
@@ -3,19 +3,17 @@
 
 PORTNAME=	xlockmore
 PORTVERSION=	5.58
+PORTREVISION=	1
 CATEGORIES?=	x11
 MASTER_SITES=	http://www.sillycycle.com/xlock/ \
-		LOCAL/jgh/x11/${PORTNAME}/
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
-		${PORTNAME}.README
-EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
+		SF/bsdsrc/${.CURDIR:T}
 
 MAINTAINER=	jgh@FreeBSD.org
 COMMENT=	Like XLock session locker/screen saver, but just more
 
 LICENSE=	BSD2CLAUSE
 
-USES=		tar:xz gnome
+USES=		tar:xz gnome xorg
 
 GNU_CONFIGURE=	yes
 PORTDOCS=	README ${PORTNAME}.README
@@ -29,7 +27,7 @@ LIB_DEPENDS+=	libfreetype.so:print/freetype2 \
 		libpng.so:graphics/png
 
 OPTIONS_DEFINE=	MESAGL MB SYSLOG DISABLE_ALLOW_ROOT NICE_ONLY BLANK_ONLY \
-		KERBEROS4 BAD_PAM GTK2 TIME_BOMB CUSTOMIZATION MAGICK JP \
+		KERBEROS5 BAD_PAM GTK2 TIME_BOMB CUSTOMIZATION MAGICK JP \
 		XINERAMA DOCS
 OPTIONS_DEFAULT=	XINERAMA
 OPTIONS_SUB=	yes
@@ -59,102 +57,42 @@ MAKE_ARGS+=	bindir=${PREFIX}/bin \
 		datarootdir=${PREFIX}/share \
 		xapploaddir=${PREFIX}/lib/X11/app-defaults
 
+MESAGL_CONFIGURE_WITH=	mesa
+MESAGL_VARS=	CFLAGS+="-I${LOCALBASE}/include/FTGL -I${LOCALBASE}/include/freetype2" USE_GL=yes
+MESAGL_LIB_DEPENDS=	libftgl.so:graphics/ftgl
+MESAGL_CONFIGURE_ENV=	XLOCKLIBS="-lpthread"
+MESAGL_CONFIGURE_OFF=	--without-opengl --without-ftgl
+KERBEROS5_CONFIGURE_ENABLE=	kerberos5
+KERBEROS5_VARS=		CFLAGS+=-I${KRB5_HOME}/include KRB5LIB=-L${KRB5_HOME}/lib
+KERBEROS5_CONFIGURE_ENV=	XLOCKLIBS="${KRB5LIB}"
+BAD_PAM_CONFIGURE_ENABLE=	bad-pam
+PAM_CONFIGURE_ENABLE=	pam
+NICE_ONLY_CONFIGURE_ENABLE=	nice-only
+BLANK_ONLY_CONFIGURE_ENABLE=	blank-only
+MB_CONFIGURE_ON=	--enable-use-mb
+MB_CONFIGURE_OFF=	--disable-mb
+SYSLOG_CONFIGURE_ENABLE=	syslog
+XINERAMA_CONFIGURE_WITH=	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_VARS=	XLOCKMORE_LANG=ja CATEGORIES+=japanese
+MAGICK_CONFIGURE_OFF=	--without-magick
+MAGICK_LIB_DEPENDS=	libMagickCore-6.so:graphics/ImageMagick6
+GTK2_CONFIGURE_WITH=	gtk2
+GTK2_VARS+=	USE_GNOME+=gtk20
+
 .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=	-lpthread
-USE_GL=		yes
-LIB_DEPENDS+=	libftgl.so:graphics/ftgl
-CFLAGS+=	-I${LOCALBASE}/include/FTGL -I${LOCALBASE}/include/freetype2
-.else
-CONFIGURE_ARGS+=	--without-mesa --without-opengl --without-ftgl
-.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:MJP}
-XLOCKMORE_LANG=	ja
-CATEGORIES+=	japanese
-.endif
-
 .if defined(XLOCKMORE_LANG)
 CONFIGURE_ARGS+=	--with-lang=${XLOCKMORE_LANG}
 .endif
 
-.if ${PORT_OPTIONS:MSYSLOG}
-CONFIGURE_ARGS+=	--enable-syslog
+.if ${PORT_OPTIONS:MKERBEROS5} && empty(KRB5_HOME)
+BROKEN=	KRB5_HOME is undefined!
 .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.so:graphics/ImageMagick6
-.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:MXINERAMA}
-CONFIGURE_ARGS+=	--with-xinerama
-.endif
-
 .if ${PORT_OPTIONS:MPAM} && empty(PORT_OPTIONS:MBAD_PAM)
 pre-extract:
 	@${ECHO}
@@ -169,7 +107,7 @@ post-patch:
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.README ${STAGEDIR}${DOCSDIR}/${PORTNAME}.README
+	${INSTALL_DATA} ${WRKSRC}/docs/Revisions ${STAGEDIR}${DOCSDIR}/${PORTNAME}.README
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/x11/xlockmore/distinfo
==============================================================================
--- head/x11/xlockmore/distinfo	Thu Sep  5 20:55:22 2019	(r511270)
+++ head/x11/xlockmore/distinfo	Thu Sep  5 21:45:58 2019	(r511271)
@@ -1,5 +1,3 @@
-TIMESTAMP = 1566409879
+TIMESTAMP = 1567716907
 SHA256 (xlockmore-5.58.tar.xz) = fc9f81773afef0dc7e3e62defbad4056d8d16af9ba8208eeec73d1b2970e41ed
 SIZE (xlockmore-5.58.tar.xz) = 1878452
-SHA256 (xlockmore.README) = 53d8827a2b1f256e1fc23da90936b25ee5f9c5f90228c15f383ef0f8f1dbec2b
-SIZE (xlockmore.README) = 178001



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909052145.x85LjxaS081009>