Markus Rathgeb wrote:
> Here is a "test" patch attached as a text file.
> This package is necessary for "gst-plugins-good" to enable the soup
> plugin (then it is not broken)

The patch works, however attachments are not so nice to reply to...
It has some problems, please fix:

BTW: I promise to fix the newpacket templates real soon!

> Signed-off-by: Markus Rathgeb <[email protected]>
> ===============================================================================
> --- /usr/local/lib/ptxdist-1.99.svn/rules/libsoup.in  1970-01-01 
> 01:00:00.000000000 +0100
> +++ rules/libsoup.in  2009-08-03 17:29:55.000000000 +0200
> @@ -0,0 +1,7 @@
> +## SECTION=networking
> +
> +config       LIBSOUP
> +     tristate
> +     prompt "libsoup"
> +     select LIBXML2
> +     select GLIB
> --- /usr/local/lib/ptxdist-1.99.svn/rules/libsoup.make        1970-01-01 
> 01:00:00.000000000 +0100
> +++ rules/libsoup.make        2009-08-03 17:34:54.000000000 +0200
> @@ -0,0 +1,118 @@
> +# Copyright (C) 2009 by Markus Rathgeb <[email protected]>
> +
> +
> +PACKAGES-$(PTXCONF_LIBSOUP) += libsoup
> +
> +#
> +# Paths and names
> +#
> +LIBSOUP_NAME     := libsoup
> +LIBSOUP_VERSION  := 2.26.3
> +LIBSOUP          := $(LIBSOUP_NAME)-$(LIBSOUP_VERSION)
> +LIBSOUP_SUFFIX   := tar.bz2
> +LIBSOUP_URL      := 
> http://mirrors.kernel.org/gentoo/distfiles/$(LIBSOUP).$(LIBSOUP_SUFFIX)
> +LIBSOUP_SOURCE   := $(SRCDIR)/$(LIBSOUP).$(LIBSOUP_SUFFIX)
> +LIBSOUP_DIR      := $(BUILDDIR)/$(LIBSOUP)
> +
> +
> +# 
> ----------------------------------------------------------------------------
> +# Get
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_get: $(STATEDIR)/libsoup.get
obsolete, please remove

> +
> +$(STATEDIR)/libsoup.get: $(libsoup_get_deps_default)
> +     @$(call targetinfo, $@)
> +     @$(call touch, $@)
obsolete, please remove the whole .get stage

> +
> +$(LIBSOUP_SOURCE):
> +     @$(call targetinfo, $@)
                          ^^^^
obsolete, please remove
> +     @$(call get, LIBSOUP)
> +
> +# 
> ----------------------------------------------------------------------------
> +# Extract
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_extract: $(STATEDIR)/libsoup.extract
obsolete, please remove

> +$(STATEDIR)/libsoup.extract: $(libsoup_extract_deps_default)
> +     @$(call targetinfo, $@)
> +     @$(call clean, $(LIBSOUP_DIR))
> +     @$(call extract, LIBSOUP)
> +     @$(call patchin, LIBSOUP)
> +     @$(call touch, $@)
obsolete, please remove the whole .extract stage


> +
> +# 
> ----------------------------------------------------------------------------
> +# Prepare
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_prepare: $(STATEDIR)/libsoup.prepare
obsolete, please remove the whole

> +
> +LIBSOUP_PATH     := PATH=$(CROSS_PATH)
> +LIBSOUP_ENV      := $(CROSS_ENV)
> +
> +#
> +# autoconf
> +#
> +LIBSOUP_AUTOCONF := $(CROSS_AUTOCONF_USR) \
> +  --disable-dependency-tracking \
> +  --enable-shared \
> +  --enable-static \
> +  --disable-glibtest \
> +  --disable-ssl \
> +  --without-gnome
> +
> +$(STATEDIR)/libsoup.prepare: $(libsoup_prepare_deps_default)
> +     @$(call targetinfo, $@)
> +     @$(call clean, $(LIBSOUP_DIR)/config.cache)
> +     cd $(LIBSOUP_DIR) && \
> +             $(LIBSOUP_PATH) $(LIBSOUP_ENV) \
> +             CC="$(CROSS_CC)" \
                ^^^^^^^^^^^^^^^^

why is this needed? CROSS_ENV should cover this.

> +             ./configure $(LIBSOUP_AUTOCONF)
> +     @$(call touch, $@)
please remove the while .prepare stage if the CC is not needed

> +
> +# 
> ----------------------------------------------------------------------------
> +# Compile
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_compile: $(STATEDIR)/libsoup.compile
obsolete, please remove

> +
> +$(STATEDIR)/libsoup.compile: $(libsoup_compile_deps_default)
> +     @$(call targetinfo, $@)
> +     cd $(LIBSOUP_DIR) && $(LIBSOUP_ENV) $(LIBSOUP_PATH) make
> +     @$(call touch, $@)
obsolete, please remove the whole .compile stage

> +
> +# 
> ----------------------------------------------------------------------------
> +# Target-Install
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_targetinstall: $(STATEDIR)/libsoup.targetinstall
obsolete, please remove

> +
> +$(STATEDIR)/libsoup.targetinstall: $(libsoup_targetinstall_deps_default)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> +     @$(call targetinfo, $@)
                            ^^
obsolete, please remove

> +
> +     @$(call install_init, libsoup)
> +     @$(call install_fixup, libsoup,PACKAGE,libsoup)
> +     @$(call install_fixup, libsoup,PRIORITY,optional)
> +     @$(call install_fixup, libsoup,VERSION,$(LIBSOUP_VERSION))
> +     @$(call install_fixup, libsoup,SECTION,base)
> +     @$(call install_fixup, libsoup,AUTHOR,"Markus Rathgeb 
> <[email protected]>")
                                                                             ^
obsolete, please remove

> +     @$(call install_fixup, libsoup,DEPENDS,)
> +     @$(call install_fixup, libsoup,DESCRIPTION,missing)
> +
> +     @$(call install_copy, libsoup, 0, 0, 0755, 
> $(LIBSOUP_DIR)/libsoup/.libs/libsoup-2.4.so.1.2.0, 
> /usr/lib/libsoup-2.4.so.1.2.0)
                                             ^^^^  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

please install libs 644 and use "-" as src.
> +     @$(call install_link, libsoup, libsoup-2.4.so.1.2.0, 
> /usr/lib/libsoup-2.4.so.1)
> +     @$(call install_link, libsoup, libsoup-2.4.so.1.2.0, 
> /usr/lib/libsoup-2.4.so)
> +
> +     @$(call install_finish, libsoup)
> +
> +     @$(call touch, $@)
                       ^^^
obsolete, please remove
> +
> +# 
> ----------------------------------------------------------------------------
> +# Clean
> +# 
> ----------------------------------------------------------------------------
> +
> +libsoup_clean:
> +     rm -rf $(STATEDIR)/libsoup.*
> +     rm -rf $(PKGDIR)/libsoup_*
> +     rm -rf $(LIBSOUP_DIR)

cheers, Marc
-- 
Pengutronix e.K.                         | Marc Kleine-Budde           |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924     |
Vertretung West/Dortmund                 | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686         | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature

--
ptxdist mailing list
[email protected]

Reply via email to