[proaudio] ebuild for libclthreads-2.2.1

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Hello

Attached is an ebuild for libclthreads-2.2.1. Note that the author has now moved to a new domain (I have updated the homepage and contact details), and some of the 'old' versions appear to be missing.

HTH
R

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE=""

inherit eutils multilib toolchain-funcs

MY_P="clthreads-${PV}"
MY_A="${MY_P}"

S="${WORKDIR}/${MY_P}"

RESTRICT="nomirror"
DESCRIPTION="An audio library by Fons Adriaensen <fons@xxxxxxxxxxxxxxx>"
HOMEPAGE="http://www.kokkinizita.net/linuxaudio";
SRC_URI="http://www.kokkinizita.net/linuxaudio/downloads/${MY_A}.tar.bz2";

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${FILESDIR}/${P}-makefile.patch"
}

src_compile() {
	tc-export CC CXX
	emake || die "emake failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
}
--- Makefile	2006-11-23 18:01:20.000000000 +0000
+++ /root/libclthreads-2.2.1-makefile	2006-12-16 12:21:15.000000000 +0000
@@ -46,12 +46,11 @@
 
 
 install:	$(CLTHREADS_MIN)
-	/usr/bin/install -d $(PREFIX)/$(LIBDIR)
-	/usr/bin/install -m 644 $(CLTHREADS_H) $(PREFIX)/include
-	/usr/bin/install -m 755 $(CLTHREADS_MIN) $(PREFIX)/$(LIBDIR)
-	/sbin/ldconfig -n $(PREFIX)/$(LIBDIR)
-	ln -sf $(CLTHREADS_MIN) $(PREFIX)/$(LIBDIR)/$(CLTHREADS_SO)
-
+	install -d $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	install -m 644 $(CLTHREADS_H) $(DESTDIR)$(PREFIX)/include
+	install -m 755 $(CLTHREADS_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	/sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR)
+	ln -sf $(CLTHREADS_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(CLTHREADS_SO)
 
 clean:
 	/bin/rm -f *~ *.o *.a *.d *.so.*


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/