Install libraries plus headers and add pkg-config files.
authorKristian Høgsberg <krh@redhat.com>
Wed, 10 Dec 2008 18:44:23 +0000 (13:44 -0500)
committerKristian Høgsberg <krh@redhat.com>
Wed, 10 Dec 2008 18:49:28 +0000 (13:49 -0500)
.gitignore
Makefile.in
configure.ac
wayland-server.pc.in [new file with mode: 0644]
wayland.pc.in [new file with mode: 0644]

index 576f560..db2a1fd 100644 (file)
@@ -1,5 +1,6 @@
 *.o
 *.so
+*.pc
 glx-compositor
 egl-compositor
 gears
index 82894df..06936a3 100644 (file)
@@ -1,5 +1,8 @@
 CFLAGS = @GCC_CFLAGS@
 
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+
 libs = libwayland-server.so libwayland.so
 clients = flower gears screenshot terminal
 compositors = egl-compositor glx-compositor
@@ -48,6 +51,12 @@ terminal : LDLIBS += -lutil
 $(clients) : CFLAGS += @CLIENT_CFLAGS@
 $(clients) : LDLIBS += @CLIENT_LIBS@ -L. -lwayland -lrt
 
+install : $(libs)
+       install -d @libdir@ @libdir@/pkgconfig
+       install $(libs) @libdir@
+       install wayland-server.pc wayland.pc @libdir@/pkgconfig
+       install wayland-client.h @includedir@
+
 clean :
        rm -f $(clients) $(compositors) *.o *.so
 
index 58b4429..5a08af5 100644 (file)
@@ -14,5 +14,5 @@ if test $CC = gcc; then
 fi
 AC_SUBST(GCC_CFLAGS)
 
-AC_CONFIG_FILES([Makefile])
-AC_OUTPUT
\ No newline at end of file
+AC_CONFIG_FILES([Makefile wayland-server.pc wayland.pc])
+AC_OUTPUT
diff --git a/wayland-server.pc.in b/wayland-server.pc.in
new file mode 100644 (file)
index 0000000..b317461
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+Name: Wayland Server
+Description: Server side implementation of the Wayland protocol
+Version: 0.1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lwayland-server
diff --git a/wayland.pc.in b/wayland.pc.in
new file mode 100644 (file)
index 0000000..63f638a
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+Name: Wayland Client
+Description: Wayland client side library
+Version: 0.1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lwayland