Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2014 09:37:46 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273961 - head/lib/libarchive
Message-ID:  <201411020937.sA29bkKF001441@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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