[vlc-devel] [vlc-commits] contribs: add xz

Rémi Denis-Courmont remi at remlab.net
Thu Nov 3 21:19:17 CET 2011


Le jeudi 3 novembre 2011 22:14:24 Rafaël Carré, vous avez écrit :
> vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Nov  3
> 16:13:32 2011 -0400| [7c2dd25a398c64858b0d0b30ebecdc118c470951] |
> committer: Rafaël Carré
> 
> contribs: add xz
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c2dd25a398c64858b
> > 0d0b30ebecdc118c470951
> 
> ---
> 
>  contrib/src/xz/SHA512SUMS |    2 ++
>  contrib/src/xz/rules.mak  |   24 ++++++++++++++++++++++++
>  2 files changed, 26 insertions(+), 0 deletions(-)
> 
> diff --git a/contrib/src/xz/SHA512SUMS b/contrib/src/xz/SHA512SUMS
> new file mode 100644
> index 0000000..6768b7d
> --- /dev/null
> +++ b/contrib/src/xz/SHA512SUMS
> @@ -0,0 +1,2 @@
> +4afa838925983f8927f62c5499c61e0a4a7f2ed9e5b9074fddaf43b28317892d954e404a14
> 2e156c8a02f5896154376d7010a67cc8b6faf984caaffd3705499e  xz-5.0.3.tar.bz2 +
> diff --git a/contrib/src/xz/rules.mak b/contrib/src/xz/rules.mak
> new file mode 100644
> index 0000000..7b6dd14
> --- /dev/null
> +++ b/contrib/src/xz/rules.mak
> @@ -0,0 +1,24 @@
> +# xz
> +
> +XZ_VERSION := 5.0.3
> +
> +XZ_URL := http://tukaani.org/xz/xz-$(XZ_VERSION).tar.bz2
> +
> +PKGS += xz
> +ifeq ($(shell xz --version), )
> +PKGS_FOUND += xz
> +endif

This checks whether xz is available on the build system.

> +
> +$(TARBALLS)/xz-$(XZ_VERSION).tar.bz2:
> +	$(call download,$(XZ_URL))
> +
> +.sum-xz: xz-$(XZ_VERSION).tar.bz2
> +
> +xz: xz-$(XZ_VERSION).tar.bz2 .sum-xz
> +	$(UNPACK)
> +	$(MOVE)
> +
> +.xz: xz
> +	cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
> +	cd $< && $(MAKE) install
> +	touch $@

And this build xz on the host system.

This commit is non-sensical and thus I removed it.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list