svn commit: r273961 - head/lib/libarchive
Martin Matuska
mm at FreeBSD.org
Sun Nov 2 09:37:46 UTC 2014
Author: mm
Date: Sun Nov 2 09:37:45 2014
New Revision: 273961
URL: https://svnweb.freebsd.org/changeset/base/273961
Log:
Add pkg-config file for libarchive
Requested by: bapt
MFC after: 1 week
Added:
head/lib/libarchive/libarchive.pc (contents, props changed)
Modified:
head/lib/libarchive/Makefile
Modified: head/lib/libarchive/Makefile
==============================================================================
--- head/lib/libarchive/Makefile Sun Nov 2 05:51:31 2014 (r273960)
+++ head/lib/libarchive/Makefile Sun Nov 2 09:37:45 2014 (r273961)
@@ -49,6 +49,12 @@ CFLAGS+= -DPPMD_32BIT
.endif
NO_WCAST_ALIGN.clang=
+.ifndef COMPAT_32BIT
+beforeinstall:
+ ${INSTALL} -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ ${.CURDIR}/libarchive.pc ${DESTDIR}${LIBDATADIR}/pkgconfig
+.endif
+
.PATH: ${LIBARCHIVEDIR}/libarchive
# Headers to be installed in /usr/include
Added: head/lib/libarchive/libarchive.pc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lib/libarchive/libarchive.pc Sun Nov 2 09:37:45 2014 (r273961)
@@ -0,0 +1,12 @@
+# $FreeBSD$
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: libarchive
+Description: library that can create and read several streaming archive formats
+Version: 3.1.2
+Cflags: -I${includedir}
+Libs: -L${libdir} -larchive
+Libs.private: -lz -lbz2 -llzma -lbsdxml -lcrypto
More information about the svn-src-all
mailing list