diff options
author | Andrew Savchenko <bircoph@gmail.com> | 2013-10-13 17:38:52 +0400 |
---|---|---|
committer | Andrew Savchenko <bircoph@gmail.com> | 2013-10-13 17:38:52 +0400 |
commit | 8ee808fff835f9ad6df8eb42783d723c6a36f110 (patch) | |
tree | 95c5429f307537fb478223c3d31b295666b9becb /media-libs/silk | |
parent | mediastreamer: improve bindist USE flag description (diff) | |
download | voip-8ee808fff835f9ad6df8eb42783d723c6a36f110.tar.gz voip-8ee808fff835f9ad6df8eb42783d723c6a36f110.tar.bz2 voip-8ee808fff835f9ad6df8eb42783d723c6a36f110.zip |
silk: add package
Diffstat (limited to 'media-libs/silk')
-rw-r--r-- | media-libs/silk/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/silk/Manifest | 5 | ||||
-rw-r--r-- | media-libs/silk/files/silk-1.0.9-makefile.patch | 28 | ||||
-rw-r--r-- | media-libs/silk/metadata.xml | 10 | ||||
-rw-r--r-- | media-libs/silk/silk-1.0.9.ebuild | 55 |
5 files changed, 108 insertions, 0 deletions
diff --git a/media-libs/silk/ChangeLog b/media-libs/silk/ChangeLog new file mode 100644 index 0000000..86d1ff7 --- /dev/null +++ b/media-libs/silk/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for media-libs/silk +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*silk-1.0.9 (13 Oct 2013) + + 13 Oct 2013; Andrew Savchenko <bircoph@gmail.com> +silk-1.0.9.ebuild, + +files/silk-1.0.9-makefile.patch, +metadata.xml: + Initial standalone SILK package. + diff --git a/media-libs/silk/Manifest b/media-libs/silk/Manifest new file mode 100644 index 0000000..5ae90a0 --- /dev/null +++ b/media-libs/silk/Manifest @@ -0,0 +1,5 @@ +AUX silk-1.0.9-makefile.patch 836 SHA256 d5591e7a5be60f670274d70c37e8442fca81e6d300369278e732de7249d9032b SHA512 caacc5871840cd35f360613fe8b1dd73b8774128e1bd341882c146e20bf342ad40f1f47dd5c935a388f8eed69cc36c267da673466b2c86808f3af0ea1d8e70c8 WHIRLPOOL a30b6302aabc230502730fb016c046e72bd4c09fcbbfa10e825d6e43970303dec033fbaad5696ae988b3b036cd453d14a9b86b75c32304f3ef683a5ea124aa86 +DIST SILK_SDK_SRC_v1.0.9.zip 65997390 SHA256 a060e71470680ff44a53b33d62c15787419c57fa0b4ccee68da76df2b4718582 SHA512 032e0a1ff1d3ab2e36e80b080f8d03d5732814bf68239f73f977b716e02510b98ecdedf75be19ed60f99363e6ddfcf8a3ecbd766a1cc8f82413ac1966e26bd69 WHIRLPOOL daee991fbe97184eed44a38f6c686a9350fcc4b7c2e04e4fe1411c31da013ef4329a615a38a2fbf75626012e7d3c15d1f2d6a6d5013d1a6303dc29c2c5502012 +EBUILD silk-1.0.9.ebuild 1222 SHA256 74aa49b4ffa043975f45e700c0c8a2dbce6649aebe1160952248e0e7146ca39d SHA512 c5f4d5882738599505cd9bd31aa7b02c6fdda7e965a168087173396ac7a6ba8bac218898843360c5ba1652312c37ec27221697ba0ad9fd96477e8c47aa7d3aff WHIRLPOOL dcba55d42fbe054c228677aa13543b9d68f95ce90de7f129fd5ab2356deac5c1e4c1f538a551fd9656117078c48f98ab194938260365644e2b23a9f4f5fa77b9 +MISC ChangeLog 302 SHA256 2d0050677a6ee8a259630824a4d145f982e609d828445bd6eea711cd258787f0 SHA512 f2805d2b663b72d685ff326001a79ac6d2dd9e600399d43fd4fb180603cbce07ffbe1c251a477d0b67d0ea291b14263a18712c4f3b67b7b2ecb0976cb89abc83 WHIRLPOOL 3154a646f1fd3250d862a8364efe6ae66987c4a143a411f088259d29688653a740141d5ada959562775ccd120095916a002d680fda32dd03d83aafa91d03d81e +MISC metadata.xml 382 SHA256 2e0353628ae34ebb0bc94e805ce980436688ad7c63eb2d3ae8601476d0f00238 SHA512 a495cd57765ca56b01c770548f4ce05bd9518ad15d6f1320213e4a902ccb7621024fb48a46b76f2d6d21bb330ce6b60ecabe4f8736b0b3825bf260e900d92a55 WHIRLPOOL 72ddebb481494aa38e301fdff98537eae986733b3dca47f270adaf05325dc5b7ca434da74631238074d9a369047707c369d8bf02311b468cc28cbbc7e9302f68 diff --git a/media-libs/silk/files/silk-1.0.9-makefile.patch b/media-libs/silk/files/silk-1.0.9-makefile.patch new file mode 100644 index 0000000..6a21e76 --- /dev/null +++ b/media-libs/silk/files/silk-1.0.9-makefile.patch @@ -0,0 +1,28 @@ +--- Makefile.orig 2013-10-13 15:28:29.000000000 +0400 ++++ Makefile 2013-10-13 15:30:05.153752805 +0400 +@@ -25,7 +25,7 @@ + ldflags-from-ldlibdirs = $(addprefix -L,$(1))
+ ldlibs-from-libs = $(addprefix -l,$(1))
+
+-CFLAGS += -Wall -enable-threads -O3
++CFLAGS += -Wall -enable-threads
+
+ CFLAGS += $(call cflags-from-defines,$(CDEFINES))
+ CFLAGS += $(call cflags-from-defines,$(ADDED_DEFINES))
+@@ -82,13 +82,13 @@ + $(TARGET): $(OBJS)
+ $(ARCHIVE.cmdline)
+
+-encoder$(EXESUFFIX): $(ENCODER_OBJS)
++encoder$(EXESUFFIX): $(ENCODER_OBJS) $(TARGET)
+ $(LINK.o.cmdline)
+
+-decoder$(EXESUFFIX): $(DECODER_OBJS)
++decoder$(EXESUFFIX): $(DECODER_OBJS) $(TARGET)
+ $(LINK.o.cmdline)
+
+-signalcompare$(EXESUFFIX): $(SIGNALCMP_OBJS)
++signalcompare$(EXESUFFIX): $(SIGNALCMP_OBJS) $(TARGET)
+ $(LINK.o.cmdline)
+
+ clean:
diff --git a/media-libs/silk/metadata.xml b/media-libs/silk/metadata.xml new file mode 100644 index 0000000..eb1f003 --- /dev/null +++ b/media-libs/silk/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>voip</herd> + <use> + <flag name="bindist">SILK license doesn't allow redistribution</flag> + <flag name="pic">Force generation of PIC code</flag> + <flag name="utils">Install encoder, decoder and signalcompare utilities</flag> + </use> + </pkgmetadata> diff --git a/media-libs/silk/silk-1.0.9.ebuild b/media-libs/silk/silk-1.0.9.ebuild new file mode 100644 index 0000000..43038d5 --- /dev/null +++ b/media-libs/silk/silk-1.0.9.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/mediastreamer-silk/mediastreamer-silk-0.0.1.ebuild,v 1.9 2013/06/29 19:23:39 ago Exp $ + +EAPI=5 + +inherit eutils flag-o-matic + +MY_PN="SILK_SDK_SRC" + +DESCRIPTION="SILK (skype codec) library" +HOMEPAGE="http://www.linphone.org" +SRC_URI="http://developer.skype.com/silk/${MY_PN}_v${PV}.zip" + +LICENSE="SILK-patent-license" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="bindist doc pic utils" + +DEPEND="" +RDEPEND="" + +S="${WORKDIR}/${MY_PN}_FIX_v${PV}" + +RESTRICT="mirror" # silk license forbids distribution + +pkg_setup() { + use bindist && die "This package can't be redistributable due to SILK license." +} + +src_prepare() { + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_configure() { + use pic && append-cflags -fPIC +} + +src_compile() { + use utils && emake || emake lib +} + +src_install() { + # there is no make install + dolib.a libSKP_SILK_SDK.a + if use utils; then + newbin decoder silk-decoder + newbin encoder silk-encoder + newbin signalcompare silk-signalcompare + fi + dodoc readme.txt + use doc && dodoc doc/*.pdf + insinto "/usr/include" + doins interface/SKP_Silk_*.h +} |