summaryrefslogtreecommitdiff
path: root/recipes/taglib.recipe
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-10-03 13:32:23 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-10-03 13:32:23 +0200
commit809436263450056d1704ee3b022d0bde1bda2a98 (patch)
tree7fcb115ffdccee84faa020380739b2ac71444fd8 /recipes/taglib.recipe
parent83c5cd7135165456b933063bfd5a059225a25832 (diff)
taglib: enable static libraries and create libtool file
Diffstat (limited to 'recipes/taglib.recipe')
-rw-r--r--recipes/taglib.recipe10
1 files changed, 9 insertions, 1 deletions
diff --git a/recipes/taglib.recipe b/recipes/taglib.recipe
index 4a00abd4..6abb0bc3 100644
--- a/recipes/taglib.recipe
+++ b/recipes/taglib.recipe
@@ -1,12 +1,13 @@
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
+from cerbero.tools.libtool import LibtoolLibrary
class Recipe(recipe.Recipe):
name = 'taglib'
version = '1.7.2'
# either LGPLv2.1 or MPLv1.1
licenses = [License.LGPLv2_1]
- configure_options = '-DWITH_MP4=ON -DWITH_ASF=ON'
+ configure_options = '-DWITH_MP4=ON -DWITH_ASF=ON -DENABLE_STATIC=1'
btype = BuildType.CMAKE
platform_deps = {Platform.ANDROID: ['stlport']}
@@ -19,3 +20,10 @@ class Recipe(recipe.Recipe):
if self.config.target_platform == Platform.ANDROID:
# configure for android
self.configure_options += ' -DANDROID_NDK=1 '
+
+ def post_install(self):
+ deps = ['z']
+ if self.config.target_platform == Platform.ANDROID:
+ deps.append('stlport')
+ libtool_la = LibtoolLibrary('tag', 1, 7, None, self.config.libdir, deps)
+ libtool_la.save()