Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2014 20:44:54 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r267376 - head/lib/libz
Message-ID:  <201406112044.s5BKis7t089014@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Jun 11 20:44:54 2014
New Revision: 267376
URL: http://svnweb.freebsd.org/changeset/base/267376

Log:
  Add a zlib pkg-config file (more and more ports requires it)
  
  Approved by:	delphij
  MFC after:	1 week

Added:
  head/lib/libz/zlib.pc   (contents, props changed)
Modified:
  head/lib/libz/Makefile

Modified: head/lib/libz/Makefile
==============================================================================
--- head/lib/libz/Makefile	Wed Jun 11 20:44:02 2014	(r267375)
+++ head/lib/libz/Makefile	Wed Jun 11 20:44:54 2014	(r267376)
@@ -66,6 +66,10 @@ test: example minigzip
 	(export LD_LIBRARY_PATH=. ; \
 		echo hello world | ./minigzip | ./minigzip -d )
 
+beforeinstall:
+	${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+		${.CURDIR}/zlib.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
+
 .include <bsd.lib.mk>
 
 ## XXX: clang integrated-as doesn't grok .intel_syntax directives yet

Added: head/lib/libz/zlib.pc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/lib/libz/zlib.pc	Wed Jun 11 20:44:54 2014	(r267376)
@@ -0,0 +1,14 @@
+# $FreeBSD$
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+sharedlibdir=${libdir}
+includedir=${prefix}/include
+
+Name: zlib
+Description: zlib compression library
+Version: 1.2.8
+
+Requires:
+Libs: -L${libdir} -L${sharedlibdir} -lz
+Cflags: -I${includedir}



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