Ticket #127: 0001-pkgconfig-integration.patch

File 0001-pkgconfig-integration.patch, 1.8 KB (added by rainwoodman@…, 5 years ago)
  • libyaml/Makefile.am

    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: 
    99        -rm -f aclocal.m4 config.h.in configure config/* 
    1010        -find ${builddir} -name Makefile.in -exec rm -f '{}' ';' 
    1111 
     12pkgconfigdir=$(libdir)/pkgconfig 
     13pkgconfig_DATA= libyaml-1.0.pc 
     14 
    1215.PHONY: bootstrap 
    1316bootstrap: maintainer-clean 
    1417        ./bootstrap 
    1518 
     19DISTCLEANFILES = libyaml-1.0.pc 
  • libyaml/configure.ac

    diff --git a/libyaml/configure.ac b/libyaml/configure.ac
    index 32bc8dd..417125c 100644
    a b AC_C_CONST 
    6767AC_TYPE_SIZE_T 
    6868 
    6969# Define Makefiles. 
    70 AC_CONFIG_FILES([include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile]) 
     70AC_CONFIG_FILES([include/Makefile \ 
     71                 src/Makefile Makefile 
     72                 tests/Makefile 
     73                 win32/Makefile 
     74                 libyaml-1.0.pc]) 
    7175 
    7276# Generate the "configure" script. 
    7377AC_OUTPUT 
  • new file libyaml/libyaml-1.0.pc.in

    diff --git a/libyaml/libyaml-1.0.pc.in b/libyaml/libyaml-1.0.pc.in
    new file mode 100644
    index 0000000..a29a13a
    - +  
     1prefix=@prefix@ 
     2exec_prefix=@exec_prefix@ 
     3libdir=@libdir@ 
     4bindir=@bindir@ 
     5includedir=@includedir@ 
     6datadir=@datadir@ 
     7 
     8Name: libyaml 
     9Description: a C library for parsing and emitting YAML 
     10Version: @VERSION@ 
     11Requires:  
     12Libs: -L${libdir} -lyaml 
     13Cflags: