mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
Port some changes from 0.6.0/0.6.1 back to HEAD (.pc files moved to pkg-config/, .m4 file moved from plugins to core)
Original commit message from CVS: Port some changes from 0.6.0/0.6.1 back to HEAD (.pc files moved to pkg-config/, .m4 file moved from plugins to core)
This commit is contained in:
parent
f2f86939c3
commit
13cf1785d8
11 changed files with 100 additions and 56 deletions
41
Makefile.am
41
Makefile.am
|
@ -16,34 +16,23 @@ else
|
||||||
EXAMPLES_DIR=
|
EXAMPLES_DIR=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all-local: gstreamer-libs-@GST_MAJORMINOR@.pc gstreamer-play-@GST_MAJORMINOR@.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc gst-element-check-@GST_MAJORMINOR@.m4
|
SUBDIRS=gst-libs \
|
||||||
|
gst sys $(EXT_DIR) \
|
||||||
|
$(EXAMPLES_DIR) \
|
||||||
|
tools \
|
||||||
|
$(GCONF_DIR) \
|
||||||
|
testsuite \
|
||||||
|
pkgconfig
|
||||||
|
|
||||||
gstreamer-libs-@GST_MAJORMINOR@.pc: gstreamer-libs.pc gstreamer-libs.pc.in
|
DIST_SUBDIRS=gst-libs \
|
||||||
cp gstreamer-libs.pc gstreamer-libs-@GST_MAJORMINOR@.pc
|
gst sys ext \
|
||||||
gstreamer-play-@GST_MAJORMINOR@.pc: gstreamer-play.pc gstreamer-play.pc.in
|
examples \
|
||||||
cp gstreamer-play.pc gstreamer-play-@GST_MAJORMINOR@.pc
|
tools \
|
||||||
gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-libs-uninstalled.pc gstreamer-libs-uninstalled.pc.in
|
gconf \
|
||||||
cp gstreamer-libs-uninstalled.pc gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc
|
testsuite \
|
||||||
gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc: gstreamer-play-uninstalled.pc gstreamer-play-uninstalled.pc.in
|
pkgconfig
|
||||||
cp gstreamer-play-uninstalled.pc gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
|
|
||||||
gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
|
|
||||||
cp $(srcdir)/gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
|
|
||||||
|
|
||||||
pkgconfigdir = $(libdir)/pkgconfig
|
EXTRA_DIST=gst-plugins.spec depcomp \
|
||||||
pkgconfig_DATA = \
|
|
||||||
gstreamer-libs-@GST_MAJORMINOR@.pc \
|
|
||||||
gstreamer-play-@GST_MAJORMINOR@.pc
|
|
||||||
|
|
||||||
aclocaldir = $(datadir)/aclocal
|
|
||||||
aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4
|
|
||||||
|
|
||||||
SUBDIRS=gst-libs gst sys $(EXT_DIR) $(EXAMPLES_DIR) tools $(GCONF_DIR) testsuite
|
|
||||||
|
|
||||||
DIST_SUBDIRS=gst-libs gst sys ext examples tools gconf testsuite
|
|
||||||
|
|
||||||
EXTRA_DIST=gst-plugins.spec depcomp gst-element-check.m4 \
|
|
||||||
gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
|
|
||||||
gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in \
|
|
||||||
AUTHORS COPYING README RELEASE REQUIREMENTS \
|
AUTHORS COPYING README RELEASE REQUIREMENTS \
|
||||||
ChangeLog autogen.sh common m4
|
ChangeLog autogen.sh common m4
|
||||||
|
|
||||||
|
|
22
configure.ac
22
configure.ac
|
@ -157,10 +157,17 @@ if test -z $GST_TOOLS_DIR; then
|
||||||
fi
|
fi
|
||||||
AC_SUBST(GST_TOOLS_DIR)
|
AC_SUBST(GST_TOOLS_DIR)
|
||||||
|
|
||||||
dnl additional gstcontrol libs
|
dnl check for gstreamer-control; uninstalled is selected preferentially
|
||||||
GST_CONTROL_LIBS=`pkg-config --variable=gstcontrol_libs gstreamer-$GST_MAJORMINOR`
|
PKG_CHECK_MODULES(GST_CONTROL, gstreamer-control-$GST_MAJORMINOR >= $GST_PLUGINS_VERSION_MAJOR.$GST_PLUGINS_VERSION_MINOR.$GST_PLUGINS_VERSION_MICRO,
|
||||||
|
HAVE_GST_CONTROL="yes", HAVE_GST_CONTROL="no")
|
||||||
|
|
||||||
|
if test "x$HAVE_GST_CONTROL" = "xno"; then
|
||||||
|
AC_MSG_ERROR(no GStreamer Control Libs found)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_SUBST(GST_CONTROL_LIBS)
|
AC_SUBST(GST_CONTROL_LIBS)
|
||||||
|
|
||||||
|
|
||||||
dnl Set up conditionals for (target) architecture:
|
dnl Set up conditionals for (target) architecture:
|
||||||
dnl ==============================================
|
dnl ==============================================
|
||||||
|
|
||||||
|
@ -1015,10 +1022,12 @@ dnl #########################
|
||||||
|
|
||||||
AC_CONFIG_FILES(
|
AC_CONFIG_FILES(
|
||||||
Makefile
|
Makefile
|
||||||
gstreamer-libs.pc
|
pkgconfig/gstreamer-libs.pc
|
||||||
gstreamer-libs-uninstalled.pc
|
pkgconfig/gstreamer-libs-uninstalled.pc
|
||||||
gstreamer-play.pc
|
pkgconfig/gstreamer-play.pc
|
||||||
gstreamer-play-uninstalled.pc
|
pkgconfig/gstreamer-play-uninstalled.pc
|
||||||
|
gst-libs/gst/gconf/gstreamer-gconf.pc
|
||||||
|
gst-libs/gst/gconf/gstreamer-gconf-uninstalled.pc
|
||||||
gst-plugins.spec
|
gst-plugins.spec
|
||||||
gst/Makefile
|
gst/Makefile
|
||||||
gst/ac3parse/Makefile
|
gst/ac3parse/Makefile
|
||||||
|
@ -1159,6 +1168,7 @@ testsuite/alsa/Makefile
|
||||||
testsuite/Makefile
|
testsuite/Makefile
|
||||||
tools/Makefile
|
tools/Makefile
|
||||||
gconf/Makefile
|
gconf/Makefile
|
||||||
|
pkgconfig/Makefile
|
||||||
)
|
)
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
dnl Perform a check for a GStreamer element using gst-inspect
|
|
||||||
dnl Thomas Vander Stichele <thomas at apestaart dot org>
|
|
||||||
dnl Last modification: 23/10/2002
|
|
||||||
|
|
||||||
dnl AM_GST_ELEMENT_CHECK(ELEMENT-NAME, ACTION-IF-FOUND, ACTION-IF-NOT-FOUND)
|
|
||||||
|
|
||||||
AC_DEFUN(AM_GST_ELEMENT_CHECK,
|
|
||||||
[
|
|
||||||
AC_CHECK_PROG(GST_INSPECT, gst-inspect, gst-inspect, [])
|
|
||||||
if test "x$GST_INSPECT" != "x"; then
|
|
||||||
AC_MSG_CHECKING(GStreamer element $1)
|
|
||||||
if [ $GST_INSPECT $1 > /dev/null 2> /dev/null ]; then
|
|
||||||
AC_MSG_RESULT(found.)
|
|
||||||
$2
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(not found.)
|
|
||||||
$3
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
])
|
|
|
@ -15,3 +15,5 @@ test_gconf_LDADD = $(GST_LIBS) $(GCONF_LIBS) libgstgconf-@GST_MAJORMINOR@.la
|
||||||
libgstgconf_@GST_MAJORMINOR@_la_LIBADD = $(GCONF_LIBS) $(GST_LIBS)
|
libgstgconf_@GST_MAJORMINOR@_la_LIBADD = $(GCONF_LIBS) $(GST_LIBS)
|
||||||
libgstgconf_@GST_MAJORMINOR@_la_CFLAGS = $(GST_CFLAGS) $(GCONF_CFLAGS)
|
libgstgconf_@GST_MAJORMINOR@_la_CFLAGS = $(GST_CFLAGS) $(GCONF_CFLAGS)
|
||||||
libgstgconf_@GST_MAJORMINOR@_la_LDFLAGS = @GST_PLUGINS_LT_LDFLAGS@ -version-info @GST_PLUGINS_LIBVERSION@
|
libgstgconf_@GST_MAJORMINOR@_la_LDFLAGS = @GST_PLUGINS_LT_LDFLAGS@ -version-info @GST_PLUGINS_LIBVERSION@
|
||||||
|
|
||||||
|
EXTRA_DIST = gstreamer-gconf.pc.in gstreamer-gconf-uninstalled.pc.in
|
||||||
|
|
42
pkgconfig/Makefile.am
Normal file
42
pkgconfig/Makefile.am
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
if USE_GCONF
|
||||||
|
GCONF_PC=gstreamer-gconf-@GST_MAJORMINOR@.pc
|
||||||
|
GCONF_PC_UNINSTALLED=gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc
|
||||||
|
else
|
||||||
|
GCONF_PC=
|
||||||
|
GCONF_PC_UNINSTALLED=
|
||||||
|
endif
|
||||||
|
|
||||||
|
### all of the standard pc files we need to generate
|
||||||
|
pcfiles = \
|
||||||
|
gstreamer-libs-@GST_MAJORMINOR@.pc \
|
||||||
|
gstreamer-play-@GST_MAJORMINOR@.pc
|
||||||
|
pcfiles_uninstalled = \
|
||||||
|
gstreamer-libs-@GST_MAJORMINOR@-uninstalled.pc \
|
||||||
|
gstreamer-play-@GST_MAJORMINOR@-uninstalled.pc
|
||||||
|
|
||||||
|
all-local: $(pcfiles) $(pcfiles_uninstalled) \
|
||||||
|
$(GCONF_PC) \
|
||||||
|
$(GCONF_PC_UNINSTALLED)
|
||||||
|
|
||||||
|
### how to generate pc files
|
||||||
|
$(pcfiles): %-@GST_MAJORMINOR@.pc: %.pc
|
||||||
|
cp $< $@
|
||||||
|
$(pcfiles_uninstalled): %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
gstreamer-gconf-@GST_MAJORMINOR@.pc: \
|
||||||
|
$(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf.pc
|
||||||
|
cp $< $@
|
||||||
|
gstreamer-gconf-@GST_MAJORMINOR@-uninstalled.pc: \
|
||||||
|
$(srcdir)/../gst-libs/gst/gconf/gstreamer-gconf-uninstalled.pc
|
||||||
|
cp $< $@
|
||||||
|
|
||||||
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
|
pkgconfig_DATA = \
|
||||||
|
$(GCONF_PC) \
|
||||||
|
gstreamer-libs-@GST_MAJORMINOR@.pc \
|
||||||
|
gstreamer-play-@GST_MAJORMINOR@.pc
|
||||||
|
|
||||||
|
EXTRA_DIST= \
|
||||||
|
gstreamer-libs.pc.in gstreamer-libs-uninstalled.pc.in \
|
||||||
|
gstreamer-play.pc.in gstreamer-play-uninstalled.pc.in
|
13
pkgconfig/gstreamer-gconf-uninstalled.pc.in
Normal file
13
pkgconfig/gstreamer-gconf-uninstalled.pc.in
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# the standard variables don't make sense for an uninstalled copy
|
||||||
|
prefix=
|
||||||
|
exec_prefix=
|
||||||
|
libdir=${pcfiledir}
|
||||||
|
includedir=${pcfiledir}
|
||||||
|
|
||||||
|
Name: GStreamer GConf Library, uninstalled
|
||||||
|
Description: Streaming media framework, GConf support library, not installed
|
||||||
|
Requires: gstreamer >= @VERSION@
|
||||||
|
Version: @VERSION@
|
||||||
|
|
||||||
|
Libs: ${pcfiledir}/gst-libs/gst/gconf/libgstgconf-@GST_MAJORMINOR@.la
|
||||||
|
Cflags: -I${pcfiledir}/gst-libs
|
12
pkgconfig/gstreamer-gconf.pc.in
Normal file
12
pkgconfig/gstreamer-gconf.pc.in
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
libdir=@libdir@
|
||||||
|
includedir=@includedir@/gstreamer-@GST_MAJORMINOR@
|
||||||
|
|
||||||
|
Name: GStreamer GConf Library
|
||||||
|
Description: Streaming media framework, GConf support library
|
||||||
|
Requires: gstreamer-@GST_MAJORMINOR@
|
||||||
|
Version: @VERSION@
|
||||||
|
|
||||||
|
Libs: -L${libdir} -lgstgconf-@GST_MAJORMINOR@
|
||||||
|
Cflags: -I${includedir}
|
|
@ -2,8 +2,4 @@ Name: GStreamer Uninstalled Media-Specific Libraries
|
||||||
Description: Streaming-media framework media-specific libraries, not installed
|
Description: Streaming-media framework media-specific libraries, not installed
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Requires: gstreamer = @VERSION@
|
Requires: gstreamer = @VERSION@
|
||||||
Libs: -L${pcfiledir}/gst-libs/gst/gconf \
|
|
||||||
-L${pcfiledir}/gst-libs/gst/audio \
|
|
||||||
-L${pcfiledir}/gst-libs/gst/video \
|
|
||||||
-L${pcfiledir}/gst-libs/gst/play
|
|
||||||
Cflags: -I${pcfiledir}/gst-libs
|
Cflags: -I${pcfiledir}/gst-libs
|
Loading…
Reference in a new issue