Bug 6997 - cairo-uninstalled.pc.in
Summary: cairo-uninstalled.pc.in
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.1.7
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-22 19:40 UTC by Masatake YAMATO
Modified: 2008-09-15 15:44 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Uinstalled.pc.in for cairo (1.06 KB, patch)
2006-05-22 19:43 UTC, Masatake YAMATO
Details | Splinter Review
Here at Sun we also need this uninstalled.pc file. I think our patch is a bit cleaner, though. (624 bytes, patch)
2007-01-23 23:14 UTC, Brian Cameron
Details | Splinter Review

Description Masatake YAMATO 2006-05-22 19:40:47 UTC
I would like to try the cutting edge version of cairo in git tree.
Howerver, I don't like to install it to my system.
I use the system for my daily work, so I would like to keep it clean.

If cairo-uninstalled.pc is avaiable with cairo itself, I can try cairo
in git tree without installing it.

Masatake YAMATO

diff --git a/Makefile.am b/Makefile.am
index 6ff72e7..e9b2a87 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,7 +10,8 @@ EXTRA_DIST = \
 	COPYING \
 	COPYING-LGPL-2.1 \
 	COPYING-MPL-1.1 \
-	cairo.pc.in
+	cairo.pc.in \
+	cairo-uninstalled.pc.in
 MAINTAINERCLEANFILES = \
 	$(srcdir)/INSTALL \
 	$(srcdir)/aclocal.m4 \
diff --git a/cairo-uninstalled.pc b/cairo-uninstalled.pc
new file mode 100644
index 0000000..865b5a3
--- /dev/null
+++ b/cairo-uninstalled.pc
@@ -0,0 +1,9 @@
+Name: cairo
+Description: Multi-platform 2D graphics library, Not Installed
+Version: 1.1.7
+
+Requires.private: freetype2 >= 8.0.2 fontconfig xrender libpng12 
+Libs:  ${pc_top_builddir}/${pcfiledir}/src/libcairo.la
+Cflags:  -I${pc_top_builddir}/${pcfiledir}/./src
-I${pc_top_builddir}/${pcfiledir}/. -I${pc_top_builddir}/${pcfiledir}
+
+
diff --git a/configure.in b/configure.in
index 1335e4c..63c491a 100644
--- a/configure.in
+++ b/configure.in
@@ -723,6 +723,7 @@ dnl ====================================
 
 AC_OUTPUT([
 cairo.pc
+cairo-uninstalled.pc
 Makefile
 pixman/Makefile
 pixman/src/Makefile
Comment 1 Masatake YAMATO 2006-05-22 19:43:38 UTC
Created attachment 5713 [details] [review]
Uinstalled.pc.in for cairo
Comment 2 Behdad Esfahbod 2006-06-14 09:31:07 UTC
An static cairo-uninstalled.pc hardcoding dependencies is not good.  It should
be generated from a .pc.in file.
Comment 3 Brian Cameron 2007-01-23 23:14:35 UTC
Created attachment 8491 [details] [review]
Here at Sun we also need this uninstalled.pc file.  I think our patch is a bit cleaner, though.
Comment 4 Masatake YAMATO 2007-01-24 02:07:17 UTC
(In reply to comment #3)
> Created an attachment (id=8491) [details]
> Here at Sun we also need this uninstalled.pc file.  I think our patch is a bit
> cleaner, though.
> 

Much better than mine.
Isn't Requires.private needed?
Comment 5 Chris Wilson 2008-09-15 15:44:04 UTC
Behdad has just add cairo*-uninstalled.pc to the build system with
commit bdb6f609d8a40e03fa9ceef65bc522d025732e7b
Author: Behdad Esfahbod <behdad@behdad.org>
Date:   Mon Sep 15 18:03:50 2008 -0400

    [configure.ac] Build -uninstalled.pc files



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.