svn commit: r411165 - head/net-mgmt/bandwidthd

Jan Beich jbeich at FreeBSD.org
Tue Mar 15 15:52:49 UTC 2016


Olli Hauer <ohauer at FreeBSD.org> writes:

> Author: ohauer
> Date: Tue Mar 15 14:33:04 2016
> New Revision: 411165
> URL: https://svnweb.freebsd.org/changeset/ports/411165
>
> Log:
>   - port links against libpng, so add png as dependency
>   
>   PR:		208014
>   Submitted by:	Franco Fichtner
[...]
> -LIB_DEPENDS+=	libgd.so:${PORTSDIR}/graphics/gd
> +LIB_DEPENDS+=	libgd.so:${PORTSDIR}/graphics/gd \
> +		libpng16.so:${PORTSDIR}/graphics/png

Please, only depend on versioned libs if vendor says so to avoid churn
on graphics/png updates or, in this case, just drop dependency noise.

  $ fgrep -lr png_ .
  ./configure
  ./configure.in

Index: net-mgmt/bandwidthd/Makefile
===================================================================
--- net-mgmt/bandwidthd/Makefile	(revision 411171)
+++ net-mgmt/bandwidthd/Makefile	(working copy)
@@ -21,9 +21,15 @@ USE_CSTD=	gnu89
 
 GNU_CONFIGURE=	YES
 CONFIGURE_ARGS=	ac_cv_lib_iconv_libiconv_open=no \
+		ac_cv_lib_m_pow=no \
+		ac_cv_lib_png_png_read_info=no \
 		ac_cv_lib_pq_PQconnectdb=no
 USES=		gmake tar:tgz
 
+post-patch:
+	${REINPLACE_CMD} -e '/requires.*libpng/,/exit/d' \
+		${WRKSRC}/configure
+
 post-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/bandwidthd \
 	    ${STAGEDIR}${PREFIX}/etc/rc.d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 602 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20160315/03f34671/attachment.sig>


More information about the svn-ports-all mailing list