[PATCH libXaw3d 03/11] Add pkg-config file

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Wed Aug 24 04:11:55 PDT 2011


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
 Makefile.am  |    3 +++
 configure.ac |    3 ++-
 xaw3d.pc.in  |   12 ++++++++++++
 3 files changed, 17 insertions(+), 1 deletions(-)
 create mode 100644 xaw3d.pc.in

diff --git a/Makefile.am b/Makefile.am
index c74acb4..c23350b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,4 @@
 SUBDIRS = include src
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = xaw3d.pc
diff --git a/configure.ac b/configure.ac
index 3e1bead..46ce725 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,6 +54,7 @@ AC_SUBST(XAW3D_CFLAGS)
 
 AC_CONFIG_FILES([Makefile
 		include/Makefile
-		src/Makefile])
+		src/Makefile
+		xaw3d.pc])
 
 AC_OUTPUT
diff --git a/xaw3d.pc.in b/xaw3d.pc.in
new file mode 100644
index 0000000..b243c52
--- /dev/null
+++ b/xaw3d.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Xaw3d
+Description: X 3D Athena Widgets Library
+Version: @PACKAGE_VERSION@
+Requires: xproto xmu xt
+Requires.private: x11 xext
+Cflags: -I${includedir}
+Libs: -L${libdir} -lXaw3d
-- 
1.7.5.1



More information about the xorg-devel mailing list