cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=6bac453dde684f458a293481fa9d39952e44e785

commit 6bac453dde684f458a293481fa9d39952e44e785
Author: Vincent Torri <[email protected]>
Date:   Thu Sep 4 18:39:56 2014 +0200

    create elementary.pc at make time to follow GNU coding standards
---
 Makefile.am  | 25 +++++++++++++++++++++++++
 configure.ac |  1 -
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index b03db14..9353394 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -72,6 +72,29 @@ m4/elm_check_backend.m4 \
 config.rpath \
 pkgbuild/PKGBUILD
 
+sed_process = \
+$(SED) \
+-e 's,@VERSION\@,$(VERSION),g' \
+-e 's,@VMAJ\@,$(VMAJ),g' \
+-e 's,@prefix\@,$(prefix),g' \
+-e 's,@exec_prefix\@,$(exec_prefix),g' \
+-e 's,@libdir\@,$(libdir),g' \
+-e 's,@includedir\@,$(includedir),g' \
+-e 's,@datarootdir\@,$(datarootdir),g' \
+-e 's,@datadir\@,$(datadir),g' \
+-e 's,@pkgdatadir\@,$(pkgdatadir),g' \
+-e 's,@requirement_elm_pc\@,$(requirement_elm_pc),g' \
+-e 's,@ELEMENTARY_LIBS\@,$(ELEMENTARY_LIBS),g' \
+< $< > $@ || rm $@
+
+pc_verbose = $(pc_verbose_@AM_V@)
+pc_verbose_ = $(pc_verbose_@AM_DEFAULT_V@)
+pc_verbose_0 = @echo "  PC      " $@;
+
+elementary.pc: $(top_srcdir)/elementary.pc.in Makefile
+       $(AM_V_at)rm -f $@
+       $(pc_verbose)$(sed_process)
+
 if HAVE_FREEBSD
 pkgconfigdir = $(libdir)data/pkgconfig
 else
@@ -80,6 +103,8 @@ endif
 
 pkgconfig_DATA = elementary.pc
 
+CLEANFILES = elementary.pc
+
 cmakeconfigdir = $(libdir)/cmake/Elementary
 cmakeconfig_DATA = \
 cmakeconfig/ElementaryConfig.cmake \
diff --git a/configure.ac b/configure.ac
index 8780879..06fd105 100644
--- a/configure.ac
+++ b/configure.ac
@@ -436,7 +436,6 @@ esac
 AC_CONFIG_FILES([
 Makefile
 elementary.spec
-elementary.pc
 doc/Makefile
 doc/Doxyfile
 doc/widgets/Makefile

-- 


Reply via email to