[proaudio] [1785] media-libs/zita-resampler import |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 1785
Author: gavlee
Date: 2010-10-28 00:38:04 +0200 (Thu, 28 Oct 2010)
Log Message:
-----------
media-libs/zita-resampler import
Added Paths:
-----------
trunk/overlays/proaudio/media-libs/zita-resampler/
trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog
trunk/overlays/proaudio/media-libs/zita-resampler/Manifest
trunk/overlays/proaudio/media-libs/zita-resampler/files/
trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-0.1.1-makefile.patch
trunk/overlays/proaudio/media-libs/zita-resampler/metadata.xml
trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-0.1.1.ebuild
Added: trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/ChangeLog 2010-10-27 22:38:04 UTC (rev 1785)
@@ -0,0 +1,11 @@
+# ChangeLog for media-libs/zita-resampler
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*zita-resampler-0.1.1 (27 Oct 2010)
+
+ 27 Oct 2010; Gavin Pryke <gavinlee303@xxxxxxxxxxxxxx>
+ +zita-resampler-0.1.1.ebuild, +files/zita-resampler-0.1.1-makefile.patch,
+ +metadata.xml:
+ Initial import.
+
Added: trunk/overlays/proaudio/media-libs/zita-resampler/Manifest
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/Manifest (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/Manifest 2010-10-27 22:38:04 UTC (rev 1785)
@@ -0,0 +1,5 @@
+AUX zita-resampler-0.1.1-makefile.patch 1833 RMD160 7ee1ac29fdb15092736dbfc3447dc37d83a6beb4 SHA1 bbd49b2fc02716d54090ccd8ee78e2801e7f54e9 SHA256 000f9dc3ee74dd9b19827287970cf1f1705f91d8315b8f5b2784acdb39107e38
+DIST zita-resampler-0.1.1.tar.bz2 34734 RMD160 3d42d2aebf47589d7e81de47f5b2ef1a9692b1be SHA1 8399756db6b90be8a89552f16b1dab3dd70dd511 SHA256 b86f8b4b2d69a63bcf343a3beb142e1bee26e200da5cb0167828701d682de848
+EBUILD zita-resampler-0.1.1.ebuild 836 RMD160 4fe8a0eb0c28527edd02565b9a70f3c6fb238d13 SHA1 c4d64c9d8d008fb5b232c87f687756e766b08a45 SHA256 febeb4b7c4d8159ed7115785870bb0a9dec07df7cc42fb3f837f36f0160c9354
+MISC ChangeLog 331 RMD160 4a09e70f8d772406eec2b1b669109995e3d56c5a SHA1 df79a1c551d5466f111ad07368ce7837024eeba7 SHA256 683e0504084e9b4b082fcf1d96782683868f8779392fddcb482ca9295e9a18a1
+MISC metadata.xml 268 RMD160 facc07bd885f20615a1f2555069329c642e1a566 SHA1 2456bdb8a218c9d477d2d6ee4bf158de070c7be4 SHA256 96629b266b743f566c29158d4498edeeb1cd6b1f0cd9629e42d4f10b4da82f89
Added: trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-0.1.1-makefile.patch
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-0.1.1-makefile.patch (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/files/zita-resampler-0.1.1-makefile.patch 2010-10-27 22:38:04 UTC (rev 1785)
@@ -0,0 +1,52 @@
+--- zita-resampler-0.1.1/libs/Makefile.old 2010-10-22 09:22:49.000000000 +0100
++++ zita-resampler-0.1.1/libs/Makefile 2010-10-22 10:32:08.000000000 +0100
+@@ -17,9 +17,10 @@
+
+ # Modify as required.
+ #
+-PREFIX = /usr/local
++CXX ?= g++
++PREFIX ?= /usr/local
+ SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
+-LIBDIR = lib$(SUFFIX)
++LIBDIR ?= lib$(SUFFIX)
+
+
+ MAJVERS = 0
+@@ -28,8 +29,9 @@
+ DISTDIR = zita-resampler-$(VERSION)
+
+
+-CPPFLAGS += -Wall -I. -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 -ffast-math
++#CPPFLAGS += -Wall -I. -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -O2 -ffast-math
+ #CPPFLAGS += -march=native
++CXXFLAGS += -Wall -I. -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -ffast-math
+ LDFLAGS +=
+ LDLIBS +=
+
+@@ -43,18 +45,18 @@
+
+
+ $(ZITA-RESAMPLER_MIN): $(ZITA-RESAMPLER_O)
+- g++ -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
++ $(CXX) -shared $(LDFLAGS) -Wl,-soname,$(ZITA-RESAMPLER_MAJ) -o $(ZITA-RESAMPLER_MIN) $(ZITA-RESAMPLER_O) $(ZITA-RESAMPLER_DEP)
+
+ $(ZITA-RESAMPLER_O): $(ZITA-RESAMPLER_H)
+
+
+ install: $(ZITA-RESAMPLER_MIN)
+- install -d $(PREFIX)/include
+- install -d $(PREFIX)/$(LIBDIR)
+- install -m 644 $(ZITA-RESAMPLER_H) $(PREFIX)/include
+- install -m 755 $(ZITA-RESAMPLER_MIN) $(PREFIX)/$(LIBDIR)
+- /sbin/ldconfig -n $(PREFIX)/$(LIBDIR)
+- ln -sf $(ZITA-RESAMPLER_MIN) $(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_SO)
++ install -d $(DESTDIR)$(PREFIX)/include
++ install -d $(DESTDIR)$(PREFIX)/$(LIBDIR)
++ install -m 644 $(ZITA-RESAMPLER_H) $(DESTDIR)$(PREFIX)/include
++ install -m 755 $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
++ /sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR)
++ ln -sf $(ZITA-RESAMPLER_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-RESAMPLER_SO)
+
+
+ clean:
Added: trunk/overlays/proaudio/media-libs/zita-resampler/metadata.xml
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/metadata.xml (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/metadata.xml 2010-10-27 22:38:04 UTC (rev 1785)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>proaudio@xxxxxxxxxxxxx</email>
+ <name>pro-audio overlay team</name>
+ </maintainer>
+</pkgmetadata>
Added: trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-0.1.1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-0.1.1.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-libs/zita-resampler/zita-resampler-0.1.1.ebuild 2010-10-27 22:38:04 UTC (rev 1785)
@@ -0,0 +1,46 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils toolchain-funcs multilib
+
+MY_P=${P/lib/}
+
+DESCRIPTION="C++ library for real-time resampling of audio signals"
+HOMEPAGE="http://www.kokkinizita.net/linuxaudio/"
+SRC_URI="http://www.kokkinizita.net/linuxaudio/downloads/${MY_P}.tar.bz2"
+
+RESTRICT="mirror"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}/libs"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+src_compile() {
+ tc-export CXX
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" PREFIX=/usr \
+ LIBDIR=$(get_libdir) install || die "make install failed"
+
+ dodoc ../AUTHORS
+
+ if use doc ; then
+ cd ../docs || die "cd ../docs failed"
+ dohtml -r *
+ fi
+}