Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2018 08:52:48 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458398 - head/www/links
Message-ID:  <201801080852.w088qmee060179@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Mon Jan  8 08:52:48 2018
New Revision: 458398
URL: https://svnweb.freebsd.org/changeset/ports/458398

Log:
  www/links: Make SVG support optional
  
  Reduce links' dependency footprint and prevent pulling in many
  unnecessary dependencies like cairo -> mesa-libs -> llvm50.
  
  PR:		224950
  Reported by:	vvd@unislabs.com
  Approved by:	portmaster@BSDforge.com (maintainer)

Modified:
  head/www/links/Makefile

Modified: head/www/links/Makefile
==============================================================================
--- head/www/links/Makefile	Mon Jan  8 08:14:20 2018	(r458397)
+++ head/www/links/Makefile	Mon Jan  8 08:52:48 2018	(r458398)
@@ -3,6 +3,7 @@
 
 PORTNAME=	links
 DISTVERSION=	2.14
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	www ipv6
 MASTER_SITES=	http://links.twibright.com/download/
@@ -20,13 +21,13 @@ CONFIGURE_ARGS=	--with-ssl --without-pmshell --without
 		--without-gpm --without-fb --without-windows
 
 USES=		cpe localbase:ldflags ssl gettext-runtime
-USE_GNOME=	librsvg2 glib20 gdkpixbuf2 cairo
 
 CPE_VENDOR=	twibright
 
 PLIST_FILES=	bin/links man/man1/links.1.gz
 
-OPTIONS_DEFINE=	CIPHERSTRING DIRECTFB IPV6 NLS SVGALIB THREADS TRANS UTF8 X11
+OPTIONS_DEFINE=	CIPHERSTRING DIRECTFB IPV6 NLS SVG SVGALIB THREADS TRANS \
+		UTF8 X11
 OPTIONS_DEFAULT=	UTF8 X11
 
 CIPHERSTRING_DESC=	Select the OpenSSL ciphers used via CIPHERSTRING
@@ -41,6 +42,9 @@ IPV6_CONFIGURE_WITH=	ipv6
 NLS_USES=		gettext-runtime
 NLS_CONFIGURE_ENABLE=	gettext-runtime
 
+SVG_CONFIGURE_WITH=	librsvg
+SVG_USE=		gnome=librsvg2,glib20,gdkpixbuf2,cairo
+
 SVGALIB_LIB_DEPENDS=	libvga.so:graphics/svgalib
 SVGALIB_CONFIGURE_WITH=	svgalib
 
@@ -68,6 +72,9 @@ LIB_DEPENDS+=	libpng.so:graphics/png \
 USES+=		jpeg
 CONFIGURE_ARGS+=	--enable-graphics
 .else
+.if ${PORT_OPTIONS:MSVG}
+IGNORE=	option SVG requires one of DIRECTFB, SVGALIB, or X11
+.endif
 CONFIGURE_ARGS+=	--disable-graphics --without-libjpeg --without-libtiff
 .endif
 



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