diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-03-20 21:27:25 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-03-20 21:27:25 +0000 |
commit | 24fd75aa1754a634b77b002228b47c97259e0ab8 (patch) | |
tree | a96f5205ce170d76ea7fa6f8c9439dc388340420 /media-libs | |
parent | Display a warning if kernel option USB_SERIAL_CYBERJACK is missing. (diff) | |
download | gentoo-2-24fd75aa1754a634b77b002228b47c97259e0ab8.tar.gz gentoo-2-24fd75aa1754a634b77b002228b47c97259e0ab8.tar.bz2 gentoo-2-24fd75aa1754a634b77b002228b47c97259e0ab8.zip |
Initial import. Ebuild by me.
(Portage version: 2.2.0_alpha92/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/fidlib/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/fidlib/Manifest | 5 | ||||
-rw-r--r-- | media-libs/fidlib/fidlib-0.9.10.ebuild | 50 | ||||
-rw-r--r-- | media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch | 21 | ||||
-rw-r--r-- | media-libs/fidlib/metadata.xml | 5 |
5 files changed, 91 insertions, 0 deletions
diff --git a/media-libs/fidlib/ChangeLog b/media-libs/fidlib/ChangeLog new file mode 100644 index 000000000000..83cbc3cf2410 --- /dev/null +++ b/media-libs/fidlib/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-libs/fidlib +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/fidlib/ChangeLog,v 1.1 2012/03/20 21:27:25 radhermit Exp $ + +*fidlib-0.9.10 (20 Mar 2012) + + 20 Mar 2012; Tim Harder <radhermit@gentoo.org> +fidlib-0.9.10.ebuild, + +files/fidlib-0.9.10-cpp-extern.patch, +metadata.xml: + Initial import. Ebuild by me. + diff --git a/media-libs/fidlib/Manifest b/media-libs/fidlib/Manifest new file mode 100644 index 000000000000..df8006a852d1 --- /dev/null +++ b/media-libs/fidlib/Manifest @@ -0,0 +1,5 @@ +AUX fidlib-0.9.10-cpp-extern.patch 456 RMD160 6c3d0a742efc808767a85045f128e4603a45b279 SHA1 c502a7a88effef3a6c9dbf1257054790b80a6c1e SHA256 8ea12c6f88b7106571c6ad77b9c186d1084eee7bb095e3ad34bc0368cf5405fc +DIST fidlib-0.9.10.tgz 87082 RMD160 8770843e76dcb31581a7d826ca8208105f2142e8 SHA1 6508b60ab1cfec9aa11edcd2e9b1e05caa0a8675 SHA256 14ab5d50798d6b24f6421a21813de533f7b62b78c46978bbd0f499f33c21733e +EBUILD fidlib-0.9.10.ebuild 1125 RMD160 fdcafb0bb67f8b94b6448a6d5d2ae19afe52aa66 SHA1 f041deea069cc30cf8d103d0fd48ef1c4da4c9ef SHA256 b682d19a71851bad2b75f3e7fac13a09ab7304e13bff55cef1f2a6bf96f4ba32 +MISC ChangeLog 309 RMD160 70c9ec63670647254c4c50f99c7f91d7f4767da2 SHA1 235c967c8741d9b0511dcd51a34059925a50e051 SHA256 e99d8accd02d85ec947f7d4b2ea416a83765673802317f2a8367dc19b9dc27a4 +MISC metadata.xml 163 RMD160 c2b208c0913f8c5bd1148627b5c3c9e37b53060a SHA1 4195ac5ca8352b0f52be6ed92640e4365be5bf0d SHA256 39a67c65d2e7583b6ee9e20fcab1fd821e28c51134eb2f76a7fe0598a2c2b4cb diff --git a/media-libs/fidlib/fidlib-0.9.10.ebuild b/media-libs/fidlib/fidlib-0.9.10.ebuild new file mode 100644 index 000000000000..0d895793f814 --- /dev/null +++ b/media-libs/fidlib/fidlib-0.9.10.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/fidlib/fidlib-0.9.10.ebuild,v 1.1 2012/03/20 21:27:25 radhermit Exp $ + +EAPI=4 + +inherit toolchain-funcs flag-o-matic eutils multilib + +DESCRIPTION="Run-time filter design and execution library" +HOMEPAGE="http://uazu.net/fidlib/" +SRC_URI="http://uazu.net/fidlib/${P}.tgz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +doecho() { + echo "$@" + "$@" || die +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-cpp-extern.patch + + # Avoid ICE under gcc-4.6, fixed in 4.6.3 + if [[ $(gcc-version) == "4.6" && $(gcc-micro-version) -le 2 ]] ; then + replace-flags -O? -O0 + fi +} + +src_compile() { + # build library + doecho $(tc-getCC) ${CFLAGS} -DT_LINUX ${LDFLAGS} -Wl,-soname,libfidlib.so.${PV:0:1} \ + -fPIC -shared fidlib.c -lm -o libfidlib.so.${PV:0:1} + + # build command-line tool + doecho $(tc-getCC) ${CFLAGS} ${LDFLAGS} -L. firun.c -lm -lfidlib -o firun +} + +src_install() { + dobin firun + dolib.so libfidlib.so.${PV:0:1} + dosym libfidlib.so.${PV:0:1} /usr/$(get_libdir)/libfidlib.so + + insinto /usr/include/fidlib + doins fidlib.h + + dodoc NEWS README fidlib.txt firun.txt +} diff --git a/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch b/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch new file mode 100644 index 000000000000..221ec825f174 --- /dev/null +++ b/media-libs/fidlib/files/fidlib-0.9.10-cpp-extern.patch @@ -0,0 +1,21 @@ +--- fidlib-0.9.10/fidlib.h ++++ fidlib-0.9.10/fidlib.h +@@ -2,6 +2,10 @@ + // fidlib include file + // + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + typedef struct FidFilter FidFilter; + struct FidFilter { + short typ; // Type of filter element 'I' IIR, 'F' FIR, or 0 for end of list +@@ -66,3 +70,7 @@ + extern void fid_run_zapbuf(void *buf); + extern void fid_run_freebuf(void *runbuf); + extern void fid_run_free(void *run); ++ ++#ifdef __cplusplus ++} ++#endif diff --git a/media-libs/fidlib/metadata.xml b/media-libs/fidlib/metadata.xml new file mode 100644 index 000000000000..af0275e2998a --- /dev/null +++ b/media-libs/fidlib/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>proaudio</herd> +</pkgmetadata> |