[Forensics-changes] [yara] 328/407: Add support for pkg-config

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit 334bd1a671ca7cc7b5efdb7b0a284d19b6ef7135
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Jan 8 13:12:18 2015 +0100

    Add support for pkg-config
---
 libyara/Makefile.am | 11 +++++++++++
 libyara/yara.pc.in  | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/libyara/Makefile.am b/libyara/Makefile.am
index 43fa515..a1a19cc 100644
--- a/libyara/Makefile.am
+++ b/libyara/Makefile.am
@@ -99,3 +99,14 @@ libyara_la_SOURCES = \
   strutils.c \
   strutils.h \
   utils.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+nodist_pkgconfig_DATA = yara.pc
+
+yara.pc: yara.pc.in
+		sed -e 's![@]prefix[@]!$(prefix)!g' \
+		    -e 's![@]exec_prefix[@]!$(exec_prefix)!g' \
+		    -e 's![@]includedir[@]!$(includedir)!g' \
+		    -e 's![@]libdir[@]!$(libdir)!g' \
+		    -e 's![@]PACKAGE_VERSION[@]!$(PACKAGE_VERSION)!g' \
+		    $(srcdir)/yara.pc.in > $@
diff --git a/libyara/yara.pc.in b/libyara/yara.pc.in
new file mode 100644
index 0000000..fb9783e
--- /dev/null
+++ b/libyara/yara.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: yara
+Description: YARA library
+URL: http://plusvic.github.io/yara/
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lyara

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list