Support for pkgconfig

Mike Hearn mike at theoretic.com
Fri Apr 4 14:00:17 CST 2003


Hi,

pkgconfig as you may know is a replacement for the various foo-config
programs that are usually used to retrieve compiler flags etc for
packages. Here's a patch to add a .pc file to wine, this will hopefully
help the Mono guys (they said it'd be nice to have)

ChangeLog:
Add a pkgconfig file

thanks -mike
-------------- next part --------------
Index: Makefile.in
===================================================================
RCS file: /home/wine/wine/Makefile.in,v
retrieving revision 1.143
diff -u -r1.143 Makefile.in
--- Makefile.in	23 Mar 2003 20:00:04 -0000	1.143
+++ Makefile.in	4 Apr 2003 20:47:08 -0000
@@ -81,7 +81,11 @@
 
 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) $(INSTALLBOTHSUBDIRS:%=%/__install-dev__) install-aclocal
 
-install:: install-lib install-dev install-aclocal
+install-pkgconfig: dummy
+	$(MKINSTALLDIRS) $(libdir)/pkgconfig
+	$(INSTALL_DATA) $(SRCDIR)/wine.pc $(libdir)/pkgconfig/wine.pc
+
+install:: install-lib install-dev install-aclocal install-pkgconfig
 	-$(LDCONFIG)
 	@if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`";	\
 	then								\
@@ -97,7 +101,9 @@
 
 uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
 	$(RM) $(datadir)/aclocal/wine.m4
+	$(RM) $(libdir)/pkgconfig/wine.pc
 	-rmdir $(datadir)/aclocal
+	-rmdir $(libdir)/pkgconfig
 
 .PHONY: install-aclocal
 
--- /dev/null	Sat Mar 23 19:46:34 2002
+++ wine.pc.in	Thu Apr  3 10:59:00 2003
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Wine
+Description: Windows emulation services
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -L${libdir}/wine -lwine
+Cflags: -I${includedir} 
Index: configure.ac
===================================================================
RCS file: /home/wine/wine/configure.ac,v
retrieving revision 1.145
diff -u -r1.145 configure.ac
--- configure.ac	3 Apr 2003 02:54:54 -0000	1.145
+++ configure.ac	4 Apr 2003 20:59:35 -0000
@@ -1346,6 +1346,7 @@
 AC_SUBST_FILE(MAKE_PROG_RULES)
 
 AC_CONFIG_FILES([
+wine.pc
 Make.rules
 dlls/Makedll.rules
 dlls/Maketest.rules


More information about the wine-patches mailing list