Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 May 2016 16:58:56 +0000 (UTC)
From:      Olivier Duchateau <olivierd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r415394 - head/news/pan
Message-ID:  <201605171658.u4HGwuba009456@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olivierd
Date: Tue May 17 16:58:55 2016
New Revision: 415394
URL: https://svnweb.freebsd.org/changeset/ports/415394

Log:
  - Fix build on 9.x (extract of build error, below)
  - Replace CPPFLAGS and LDFLAGS by USES= localbase
  
  checking for ZLIB... no
  configure: error: Package requirements (zlib >= 1.2.0) were not met:
  
  Package zlib was not found in the pkg-config search path.
  Perhaps you should add the directory containing `zlib.pc'
  to the PKG_CONFIG_PATH environment variable
  Package 'zlib', required by 'world', not found
  
  Consider adjusting the PKG_CONFIG_PATH environment variable if you
  installed software in a non-standard prefix.
  
  Alternatively, you may set the environment variables ZLIB_CFLAGS
  and ZLIB_LIBS to avoid the need to call pkg-config.

Modified:
  head/news/pan/Makefile

Modified: head/news/pan/Makefile
==============================================================================
--- head/news/pan/Makefile	Tue May 17 16:31:05 2016	(r415393)
+++ head/news/pan/Makefile	Tue May 17 16:58:55 2016	(r415394)
@@ -16,12 +16,13 @@ LICENSE=	GPLv2
 LIB_DEPENDS=	libpcre.so:devel/pcre \
 		libgmime-2.6.so:mail/gmime26
 
-USES=		gmake iconv pathfix pkgconfig tar:bzip2
+USES=		gmake iconv localbase pathfix pkgconfig tar:bzip2
 USE_GNOME=	intlhack
 USE_GCC=	any
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -lgnuregex ${ICONV_LIB}
+LDFLAGS+=	-lgnuregex ${ICONV_LIB}
+CONFIGURE_ENV+=	ZLIB_CFLAGS="-I/usr/include" \
+		ZLIB_LIBS="-L/usr/lib -lz"
 
 OPTIONS_DEFINE=	GTKSPELL GNUTLS NLS
 OPTIONS_RADIO=	GTK



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