svn commit: r415394 - head/news/pan

Olivier Duchateau olivierd at FreeBSD.org
Tue May 17 16:58:57 UTC 2016


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


More information about the svn-ports-head mailing list