pkg-config for the plugin API
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Mar 2008 18:59:09 +0000 (20:59 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Mar 2008 18:59:09 +0000 (20:59 +0200)
(Don't expect this to work yet though)

src/Makefile.am
src/vlc-plugin.pc.in [new file with mode: 0644]

index e465c59..494aca4 100644 (file)
@@ -10,6 +10,8 @@ EXTRA_DIST = extras/COPYING modules/builtin.h.in libvlc.sym vlc-control.pc.in
 BUILT_SOURCES = modules/builtin.h misc/revision.c ../include/vlc_about.h
 CLEANFILES = $(BUILT_SOURCES)
 
+SUFFIXES = .pc.in .pc
+
 ###############################################################################
 # Headers
 ###############################################################################
@@ -134,13 +136,17 @@ modules/modules.c: modules/builtin.h
 ###############################################################################
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = vlc-control.pc
+pkgconfig_DATA = vlc-control.pc vlc-plugin.pc
 CLEANFILES += $(pkgconfig_DATA)
 
 vlc-control.pc: vlc-control.pc.in $(top_builddir)/config.status
        cd $(top_builddir) && \
        $(SHELL) ./config.status --file=src/vlc-control.pc
 
+.pc.in.pc: $(top_builddir)/config.status
+       cd "$(top_builddir)" && \
+       $(SHELL) ./config.status --file="src/$@"
+
 ###############################################################################
 # Building libvlc
 ###############################################################################
diff --git a/src/vlc-plugin.pc.in b/src/vlc-plugin.pc.in
new file mode 100644 (file)
index 0000000..6640bd9
--- /dev/null
@@ -0,0 +1,15 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: VLC plugin API
+Description: VLC media player plugin interface
+Version: @VERSION@
+Cflags: -I${includedir}/vlc/plugin \
+       -D_FILE_OFFSET_BITS=64 \
+       -D__USE_UNIX98 \
+       -D_LARGEFILE64_SOURCE \
+       -D_REENTRANT \
+       -D_THREAD_SAFE
+Libs: -L${libdir} -lvlc