From 889fc82f8a2c788223c15c26a95064e1a9984c80 Mon Sep 17 00:00:00 2001
From: Feng Yu <fengyu@dhcp5-240.iucf.indiana.edu>
Date: Sun, 17 May 2009 03:59:49 -0400
Subject: [PATCH] pkgconfig integration
---
libyaml/Makefile.am | 4 ++++
libyaml/configure.ac | 6 +++++-
libyaml/libyaml-1.0.pc.in | 13 +++++++++++++
3 files changed, 22 insertions(+), 1 deletions(-)
create mode 100644 libyaml/libyaml-1.0.pc.in
diff --git a/libyaml/Makefile.am b/libyaml/Makefile.am
index 7835b61..827ab5a 100644
|
a
|
b
|
maintainer-clean-local: |
| 9 | 9 | -rm -f aclocal.m4 config.h.in configure config/* |
| 10 | 10 | -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' |
| 11 | 11 | |
| | 12 | pkgconfigdir=$(libdir)/pkgconfig |
| | 13 | pkgconfig_DATA= libyaml-1.0.pc |
| | 14 | |
| 12 | 15 | .PHONY: bootstrap |
| 13 | 16 | bootstrap: maintainer-clean |
| 14 | 17 | ./bootstrap |
| 15 | 18 | |
| | 19 | DISTCLEANFILES = libyaml-1.0.pc |
diff --git a/libyaml/configure.ac b/libyaml/configure.ac
index 32bc8dd..417125c 100644
|
a
|
b
|
AC_C_CONST |
| 67 | 67 | AC_TYPE_SIZE_T |
| 68 | 68 | |
| 69 | 69 | # Define Makefiles. |
| 70 | | AC_CONFIG_FILES([include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile]) |
| | 70 | AC_CONFIG_FILES([include/Makefile \ |
| | 71 | src/Makefile Makefile |
| | 72 | tests/Makefile |
| | 73 | win32/Makefile |
| | 74 | libyaml-1.0.pc]) |
| 71 | 75 | |
| 72 | 76 | # Generate the "configure" script. |
| 73 | 77 | AC_OUTPUT |
diff --git a/libyaml/libyaml-1.0.pc.in b/libyaml/libyaml-1.0.pc.in
new file mode 100644
index 0000000..a29a13a
|
-
|
+
|
|
| | 1 | prefix=@prefix@ |
| | 2 | exec_prefix=@exec_prefix@ |
| | 3 | libdir=@libdir@ |
| | 4 | bindir=@bindir@ |
| | 5 | includedir=@includedir@ |
| | 6 | datadir=@datadir@ |
| | 7 | |
| | 8 | Name: libyaml |
| | 9 | Description: a C library for parsing and emitting YAML |
| | 10 | Version: @VERSION@ |
| | 11 | Requires: |
| | 12 | Libs: -L${libdir} -lyaml |
| | 13 | Cflags: |