Add a pkg-config file.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 3 Feb 2013 12:35:18 +0000 (13:35 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 3 Feb 2013 12:35:18 +0000 (13:35 +0100)
.gitignore
Makefile.in
configure.ac
movit.pc.in [new file with mode: 0644]

index 6197aa6..489d4a7 100644 (file)
@@ -40,3 +40,4 @@ config.log
 config.status
 configure
 Makefile
+movit.pc
index ce216f5..e745ca1 100644 (file)
@@ -133,5 +133,7 @@ install: libmovit.a
        $(INSTALL) -m 0644 $(HDRS) $(includedir)/movit/
        $(MKDIR) -p $(datadir)/movit/
        $(INSTALL) -m 0644 $(SHADERS) $(datadir)/movit/
+       $(MKDIR) -p $(libdir)/pkgconfig/
+       $(INSTALL) -m 644 movit.pc $(libdir)/pkgconfig/
 
 .PHONY: coverage clean check all install
index 5a8afa7..f6b2e1d 100644 (file)
@@ -11,5 +11,5 @@ PKG_CHECK_MODULES([SDL], [sdl])
 PKG_CHECK_MODULES([SDL_image], [SDL_image])
 PKG_CHECK_MODULES([libpng], [libpng12])
 
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile movit.pc])
 AC_OUTPUT
diff --git a/movit.pc.in b/movit.pc.in
new file mode 100644 (file)
index 0000000..b847cad
--- /dev/null
@@ -0,0 +1,14 @@
+# Movit pkg-config source file.
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: movit
+Description: Movit is a library for high-quality, high-performance video filters.
+Version: git
+Requires:
+Conflicts:
+Libs: -lmovit -lGLEW
+Cflags: -I${includedir}/movit @Eigen3_CFLAGS@ @GLEW_CFLAGS@