svn commit: r527240 - head/cad/libredwg

Alexey Dokuchaev danfe at FreeBSD.org
Thu Feb 27 09:05:44 UTC 2020


Author: danfe
Date: Thu Feb 27 09:05:43 2020
New Revision: 527240
URL: https://svnweb.freebsd.org/changeset/ports/527240

Log:
  Provide an option to build `dwggrep' utility with regex support and make
  it enabled by default since `devel/pcre2' is rather common dependency.
  
  Because previously built packages could link to PCRE2 libraries without
  this dependency being recorded, bump port revision.

Modified:
  head/cad/libredwg/Makefile

Modified: head/cad/libredwg/Makefile
==============================================================================
--- head/cad/libredwg/Makefile	Thu Feb 27 08:50:42 2020	(r527239)
+++ head/cad/libredwg/Makefile	Thu Feb 27 09:05:43 2020	(r527240)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libredwg
 PORTVERSION=	0.10.1
+PORTREVISION=	1
 CATEGORIES=	cad devel
 MASTER_SITES=	GNU
 
@@ -20,14 +21,18 @@ TEST_TARGET=	check
 INFO=		LibreDWG
 PORTDOCS=	AUTHORS ChangeLog NEWS README TODO
 
-OPTIONS_DEFINE=	DOCS PSLIB PYTHON
-OPTIONS_DEFAULT=	PSLIB
+OPTIONS_DEFINE=	DOCS PCRE PSLIB PYTHON
+OPTIONS_DEFAULT=	PCRE PSLIB
+PCRE_DESC=	Regular expressions support in dwggrep
 PSLIB_DESC=	PostScript export support (dwg2ps)
 
+PCRE_LIB_DEPENDS=	libpcre2-8.so:devel/pcre2
+PCRE_USES=		localbase
+PCRE_CONFIGURE_ENV_OFF=	ac_cv_lib_pcre2_8_pcre2_config_8=no
+
 PSLIB_LIB_DEPENDS=	libps.so:print/pslib
-# XXX: shall `localbase' be put on global USES, it would require explicit
-# PSLIB_CONFIGURE_ENV_OFF=	ac_cv_lib_ps_PS_open_file=no
 PSLIB_USES=		localbase
+PSLIB_CONFIGURE_ENV_OFF=	ac_cv_lib_ps_PS_open_file=no
 PSLIB_PLIST_FILES=	bin/dwg2ps man/man1/dwg2ps.1.gz
 
 PYTHON_CONFIGURE_OFF=	--disable-python


More information about the svn-ports-all mailing list