summaryrefslogtreecommitdiff
path: root/recipes/bzip2.recipe
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-08-25 14:06:21 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-08-25 14:06:21 +0300
commit420637a01eeb99c38af47865553ccbd22bca4050 (patch)
treee0694a6b56a13819ce98a762f31a97589f6e372e /recipes/bzip2.recipe
parent8585dcde12bdcf395a0f1717cc60574681013b3a (diff)
Revert "LibtoolLibrary: Auto-detect libraries and versions"
This reverts commit 40779ea8eb0ead12ad8de19021adc94d272f3d7a. It only works on Linux right now and was not meant to be merged yet.
Diffstat (limited to 'recipes/bzip2.recipe')
-rw-r--r--recipes/bzip2.recipe11
1 files changed, 5 insertions, 6 deletions
diff --git a/recipes/bzip2.recipe b/recipes/bzip2.recipe
index bdc8f758..02d47eea 100644
--- a/recipes/bzip2.recipe
+++ b/recipes/bzip2.recipe
@@ -29,14 +29,17 @@ class Recipe(recipe.Recipe):
(shared_makefile, self.config.prefix, extension, self.config.prefix)
def post_install(self):
+ libtool_la = LibtoolLibrary('bz2', 1, 0, 6, self.config.libdir,
+ self.config.target_platform)
+ libtool_la.save()
src = None
dst = None
libdir = os.path.join(self.config.prefix, 'lib')
if self.config.target_platform in [Platform.LINUX, Platform.ANDROID]:
- src = 'libbz2.so.{}'.format(self.version)
+ src = 'libbz2.so.1.0.6'
dst = 'libbz2.so'
elif self.config.target_platform == Platform.DARWIN:
- src = 'libbz2.{}.dylib'.format(self.version)
+ src = 'libbz2.1.0.6.dylib'
dst = 'libbz2.dylib'
elif self.config.target_platform == Platform.IOS:
src = 'libbz2.dylib'
@@ -46,7 +49,3 @@ class Recipe(recipe.Recipe):
if os.path.exists(p) or os.path.islink(p):
os.remove(p)
shell.call('ln -s %s %s' % (src, dst), libdir)
-
- libtool_la = LibtoolLibrary('bz2', self.config.libdir,
- self.config.target_platform)
- libtool_la.save()