svn commit: r267376 - head/lib/libz

Baptiste Daroussin bapt at FreeBSD.org
Wed Jun 11 20:44:54 UTC 2014


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}


More information about the svn-src-head mailing list