summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Le <r0bertz@gentoo.org>2007-08-15 20:48:41 +0800
committerZhang Le <r0bertz@gentoo.org>2007-08-15 20:48:41 +0800
commite6167c4b5edddd96796295973ded965a8ed7e922 (patch)
tree7bcee56030bd4c0e7d2054d76cfe768c4a3382c6 /dev-libs
parentremove mplayer (diff)
downloadloongson-e6167c4b5edddd96796295973ded965a8ed7e922.tar.gz
loongson-e6167c4b5edddd96796295973ded965a8ed7e922.tar.bz2
loongson-e6167c4b5edddd96796295973ded965a8ed7e922.zip
add pulseaudio and avahi support
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libatomic_ops/ChangeLog39
-rw-r--r--dev-libs/libatomic_ops/Manifest24
-rw-r--r--dev-libs/libatomic_ops/files/digest-libatomic_ops-1.23
-rw-r--r--dev-libs/libatomic_ops/files/libatomic_ops-1.2-mips.patch85
-rw-r--r--dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch46
-rw-r--r--dev-libs/libatomic_ops/libatomic_ops-1.2.ebuild28
-rw-r--r--dev-libs/libatomic_ops/metadata.xml5
7 files changed, 230 insertions, 0 deletions
diff --git a/dev-libs/libatomic_ops/ChangeLog b/dev-libs/libatomic_ops/ChangeLog
new file mode 100644
index 0000000..48c2649
--- /dev/null
+++ b/dev-libs/libatomic_ops/ChangeLog
@@ -0,0 +1,39 @@
+# ChangeLog for dev-libs/libatomic_ops
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatomic_ops/ChangeLog,v 1.8 2007/06/08 23:23:07 lu_zero Exp $
+
+ 08 Jun 2007; Luca Barbato <lu_zero@gentoo.org>
+ files/libatomic_ops-1.2-ppc64-load_acquire.patch:
+ Minor fix
+
+ 08 Jun 2007; Luca Barbato <lu_zero@gentoo.org>
+ +files/libatomic_ops-1.2-ppc64-load_acquire.patch,
+ libatomic_ops-1.2.ebuild:
+ Marked ~ppc ~ppc64
+
+ 02 Jun 2007; Raúl Porcel <armin76@gentoo.org> libatomic_ops-1.2.ebuild:
+ Add ~alpha/~ia64 wrt #180117
+
+ 31 May 2007; Jeroen Roovers <jer@gentoo.org> libatomic_ops-1.2.ebuild:
+ Marked ~hppa (bug #180117).
+
+ 29 May 2007; Andrej Kacian <ticho@gentoo.org> libatomic_ops-1.2.ebuild:
+ Added ~x86, bug #180117.
+
+ 29 May 2007; Gustavo Zacarias <gustavoz@gentoo.org>
+ libatomic_ops-1.2.ebuild:
+ Keyworded ~sparc wrt #180117
+
+*libatomic_ops-1.2 (28 May 2007)
+
+ 28 May 2007; Diego Pettenò <flameeyes@gentoo.org>
+ libatomic_ops-1.1.ebuild, +libatomic_ops-1.2.ebuild:
+ Bump libatomic_ops to version 1.2, and mark -x86 -x86-fbsd the 1.1 version
+ that *will* miscompile on x86-based systems.
+
+*libatomic_ops-1.1 (02 Sep 2006)
+
+ 02 Sep 2006; Diego Pettenò <flameeyes@gentoo.org> +metadata.xml,
+ +libatomic_ops-1.1.ebuild:
+ Initial import, dependency of the current SVN PulseAudio.
+
diff --git a/dev-libs/libatomic_ops/Manifest b/dev-libs/libatomic_ops/Manifest
new file mode 100644
index 0000000..400ce3b
--- /dev/null
+++ b/dev-libs/libatomic_ops/Manifest
@@ -0,0 +1,24 @@
+AUX libatomic_ops-1.2-mips.patch 2593 RMD160 12f8a8a3300739cbcba7ddbaae676819db2e85f8 SHA1 7c239f6eb8b411c33dcc64e9600cc0776c44bcd2 SHA256 f1ad7a1acd57e20aad81efb04c79652a0b263fe53557dfe85ba83dc8a5073fe8
+MD5 d8a8956632e37d55f68dccb439137922 files/libatomic_ops-1.2-mips.patch 2593
+RMD160 12f8a8a3300739cbcba7ddbaae676819db2e85f8 files/libatomic_ops-1.2-mips.patch 2593
+SHA256 f1ad7a1acd57e20aad81efb04c79652a0b263fe53557dfe85ba83dc8a5073fe8 files/libatomic_ops-1.2-mips.patch 2593
+AUX libatomic_ops-1.2-ppc64-load_acquire.patch 1383 RMD160 d3d368915d613b8a8f4af4806ede9e9f53d3eadc SHA1 6ca477928f48f7cc1f2515eb3d8f99af7d118807 SHA256 f061cdf1e70448a193abe316d9c4b4f6b924132a99abcea9753b1440274304f1
+MD5 e6121a4fa6de7c5e265ddbb4fd76e005 files/libatomic_ops-1.2-ppc64-load_acquire.patch 1383
+RMD160 d3d368915d613b8a8f4af4806ede9e9f53d3eadc files/libatomic_ops-1.2-ppc64-load_acquire.patch 1383
+SHA256 f061cdf1e70448a193abe316d9c4b4f6b924132a99abcea9753b1440274304f1 files/libatomic_ops-1.2-ppc64-load_acquire.patch 1383
+DIST libatomic_ops-1.2.tar.gz 183780 RMD160 8c548b32033c954a61e740f9a0e76ca8f005c4f6 SHA1 8bf4134d614acb1a6234b3102e67a847ae9369b0 SHA256 a3d8768aa8fd2f6ae79be2d756b3a6b48816b3889ae906be3d5ffb2de5a5c781
+EBUILD libatomic_ops-1.2.ebuild 823 RMD160 2e8149d5d226c3e4428a0e61949740747d5857f9 SHA1 7a011f53409ea3a7489f609cea185be1d4969d83 SHA256 1a4af670623e745ae564f92a43257503ebae790b3cc113a762af9bcc68c77080
+MD5 aa2c0f25d85812892eced707505138c4 libatomic_ops-1.2.ebuild 823
+RMD160 2e8149d5d226c3e4428a0e61949740747d5857f9 libatomic_ops-1.2.ebuild 823
+SHA256 1a4af670623e745ae564f92a43257503ebae790b3cc113a762af9bcc68c77080 libatomic_ops-1.2.ebuild 823
+MISC ChangeLog 1370 RMD160 e3eea2515bc19d11561fb204251963e2d69fb86f SHA1 45234a2d813e2c5a62cc89ec652e92dcca652ede SHA256 de51c4491fdb01ec01b85136380dd2156ccaa28579bf1b81869a50186662659f
+MD5 ae1a9a7242e7edc6d537c333e02d12ea ChangeLog 1370
+RMD160 e3eea2515bc19d11561fb204251963e2d69fb86f ChangeLog 1370
+SHA256 de51c4491fdb01ec01b85136380dd2156ccaa28579bf1b81869a50186662659f ChangeLog 1370
+MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
+MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
+RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
+SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b metadata.xml 158
+MD5 faaea89b811f750df83a5075c86e32eb files/digest-libatomic_ops-1.2 253
+RMD160 77c985ce3474c71bdd7987cc2b68ce56671adbeb files/digest-libatomic_ops-1.2 253
+SHA256 068e799786816e7e71300a769c7f88cd76975abca02cbe1d01aaebdf603c98ab files/digest-libatomic_ops-1.2 253
diff --git a/dev-libs/libatomic_ops/files/digest-libatomic_ops-1.2 b/dev-libs/libatomic_ops/files/digest-libatomic_ops-1.2
new file mode 100644
index 0000000..b86924a
--- /dev/null
+++ b/dev-libs/libatomic_ops/files/digest-libatomic_ops-1.2
@@ -0,0 +1,3 @@
+MD5 1b65e48271c81e3fa2d7a9a69bab7504 libatomic_ops-1.2.tar.gz 183780
+RMD160 8c548b32033c954a61e740f9a0e76ca8f005c4f6 libatomic_ops-1.2.tar.gz 183780
+SHA256 a3d8768aa8fd2f6ae79be2d756b3a6b48816b3889ae906be3d5ffb2de5a5c781 libatomic_ops-1.2.tar.gz 183780
diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-mips.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-mips.patch
new file mode 100644
index 0000000..e18c366
--- /dev/null
+++ b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-mips.patch
@@ -0,0 +1,85 @@
+diff --git a/src/atomic_ops.h b/src/atomic_ops.h
+index c23f30b..791b360 100755
+--- a/src/atomic_ops.h
++++ b/src/atomic_ops.h
+@@ -220,6 +220,9 @@
+ # if defined(__cris__) || defined(CRIS)
+ # include "atomic_ops/sysdeps/gcc/cris.h"
+ # endif
++# if defined(__mips__)
++# include "atomic_ops/sysdeps/gcc/mips.h"
++# endif
+ #endif /* __GNUC__ && !AO_USE_PTHREAD_DEFS */
+
+ #if defined(__INTEL_COMPILER) && !defined(AO_USE_PTHREAD_DEFS)
+diff --git a/src/atomic_ops/sysdeps/gcc/mips.h b/src/atomic_ops/sysdeps/gcc/mips.h
+new file mode 100644
+index 0000000..2525a7a
+--- /dev/null
++++ b/src/atomic_ops/sysdeps/gcc/mips.h
+@@ -0,0 +1,65 @@
++/*
++ * Copyright (c) 2005 Thiemo Seufer <ths@networkno.de>
++ *
++ * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
++ * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
++ *
++ * Permission is hereby granted to use or copy this program
++ * for any purpose, provided the above notices are retained on all copies.
++ * Permission to modify the code and to distribute modified code is granted,
++ * provided the above notices are retained, and a notice that the code was
++ * modified is included with the above copyright notice.
++ */
++
++#include "../all_aligned_atomic_load_store.h"
++#include "../test_and_set_t_is_ao_t.h"
++
++/* Data dependence does not imply read ordering. */
++#define AO_NO_DD_ORDERING
++
++AO_INLINE void
++AO_nop_full()
++{
++ __asm__ __volatile__(
++ " .set push \n"
++ " .set mips2 \n"
++ " .set noreorder \n"
++ " .set nomacro \n"
++ " sync \n"
++ " .set pop "
++ : : : "memory");
++}
++
++#define AO_HAVE_nop_full
++
++AO_INLINE int
++AO_compare_and_swap(volatile AO_t *addr, AO_t old, AO_t new_val)
++{
++ register int was_equal = 0;
++ register int temp;
++
++ __asm__ __volatile__(
++ " .set push \n"
++ " .set mips2 \n"
++ " .set noreorder \n"
++ " .set nomacro \n"
++ "1: ll %0, %1 \n"
++ " bne %0, %4, 2f \n"
++ " move %0, %3 \n"
++ " sc %0, %1 \n"
++ " .set pop \n"
++ " beqz %0, 1b \n"
++ " li %2, 1 \n"
++ "2: "
++ : "=&r" (temp), "+R" (*addr), "+r" (was_equal)
++ : "r" (new_val), "r" (old)
++ : "memory");
++ return was_equal;
++}
++
++#define AO_HAVE_compare_and_swap
++
++/*
++ * FIXME: We should also implement fetch_and_add and or primitives
++ * directly.
++ */
diff --git a/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch
new file mode 100644
index 0000000..9b6baa1
--- /dev/null
+++ b/dev-libs/libatomic_ops/files/libatomic_ops-1.2-ppc64-load_acquire.patch
@@ -0,0 +1,46 @@
+--- src/atomic_ops/sysdeps/gcc/powerpc.h.orig 2006-03-28 22:49:14.000000000 +0000
++++ src/atomic_ops/sysdeps/gcc/powerpc.h 2007-06-08 23:10:07.000000000 +0000
+@@ -63,6 +63,8 @@
+ /* seems to be that a data dependent branch followed by an isync is */
+ /* cheaper. And the documentation is fairly explicit that this also */
+ /* has acquire semantics. */
++/* ppc64 uses ld not lwz */
++#if defined(__powerpc64__) || defined(__ppc64__) || defined(__64BIT__)
+ AO_INLINE AO_t
+ AO_load_acquire(volatile AO_t *addr)
+ {
+@@ -72,7 +74,7 @@
+ /* registers. I always got "impossible constraint" when I */
+ /* tried the "y" constraint. */
+ __asm__ __volatile__ (
+- "lwz %0,%1\n"
++ "ld %0,%1\n"
+ "cmpw cr7,%0,%0\n"
+ "bne- cr7,1f\n"
+ "1: isync\n"
+@@ -80,7 +82,25 @@
+ : "m"(*addr) : "memory", "cc");
+ return result;
+ }
++#else
++AO_INLINE AO_t
++AO_load_acquire(volatile AO_t *addr)
++{
++ AO_t result;
+
++ /* FIXME: We should get gcc to allocate one of the condition */
++ /* registers. I always got "impossible constraint" when I */
++ /* tried the "y" constraint. */
++ __asm__ __volatile__ (
++ "lwz %0,%1\n"
++ "cmpw cr7,%0,%0\n"
++ "bne- cr7,1f\n"
++ "1: isync\n"
++ : "=r" (result)
++ : "m"(*addr) : "memory", "cc");
++ return result;
++}
++#endif
+ #define AO_HAVE_load_acquire
+
+ /* We explicitly specify store_release, since it relies */
diff --git a/dev-libs/libatomic_ops/libatomic_ops-1.2.ebuild b/dev-libs/libatomic_ops/libatomic_ops-1.2.ebuild
new file mode 100644
index 0000000..047a43b
--- /dev/null
+++ b/dev-libs/libatomic_ops/libatomic_ops-1.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatomic_ops/libatomic_ops-1.2.ebuild,v 1.7 2007/06/24 23:39:57 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="Implementation for atomic memory update operations"
+HOMEPAGE="http://www.hpl.hp.com/research/linux/atomic_ops/"
+SRC_URI="http://www.hpl.hp.com/research/linux/atomic_ops/download/${P}.tar.gz"
+
+LICENSE="GPL-2 MIT as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack(){
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-ppc64-load_acquire.patch
+ epatch "${FILESDIR}"/${P}-mips.patch
+}
+
+src_install() {
+ emake pkgdatadir="/usr/share/doc/${PF}" DESTDIR="${D}" install || die
+}
diff --git a/dev-libs/libatomic_ops/metadata.xml b/dev-libs/libatomic_ops/metadata.xml
new file mode 100644
index 0000000..e1774e3
--- /dev/null
+++ b/dev-libs/libatomic_ops/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>