Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2020 17:37:40 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529818 - head/sysutils/nut-devel
Message-ID:  <202003291737.02THbeZZ087769@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sun Mar 29 17:37:39 2020
New Revision: 529818
URL: https://svnweb.freebsd.org/changeset/ports/529818

Log:
  Fix build issues:
  
  - python is invoked directly by various scripts within WRKSRC.
  - build man pages and documentation.
  
  Reported by:	dutchman01 at quicknet.nl

Modified:
  head/sysutils/nut-devel/Makefile   (contents, props changed)

Modified: head/sysutils/nut-devel/Makefile
==============================================================================
--- head/sysutils/nut-devel/Makefile	Sun Mar 29 17:30:57 2020	(r529817)
+++ head/sysutils/nut-devel/Makefile	Sun Mar 29 17:37:39 2020	(r529818)
@@ -68,6 +68,8 @@ CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/nut \
 		--with-group=${NUT_GROUP} \
 		--with-dev
 
+BUILD_DEPENDS=	asciidoc:textproc/asciidoc
+
 .if ${PORT_OPTIONS:MCGI}
 LIB_DEPENDS+=	libgd.so:graphics/gd
 CGIDIR?=	${PREFIX}/www/cgi-bin/${PORTNAME}
@@ -173,6 +175,10 @@ CONFIGURE_ARGS+=	--with-nss
 .else
 CONFIGURE_ARGS+=	--without-openssl --without-ssl
 .endif
+
+post-patch:
+	@${REINPLACE_CMD} -i '' -e 's|python|${PYTHON_CMD}|' ${WRKSRC}/autogen.sh
+	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -i '' -e 's|/usr/bin/env python|${PYTHON_CMD}|'
 
 pre-configure:
 	cd ${WRKSRC} && ./autogen.sh



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