- Fix build with python-2.7
PR: ports/157300 Submitted by: David Naylor <naylor.b.david@gmail.com> (maintainer)
This commit is contained in:
parent
2c324cbe38
commit
ffecfabdf4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275218
2 changed files with 11 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
PORTNAME= liblzma
|
||||
PORTVERSION= 0.5.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= archivers python
|
||||
MASTER_SITES= ${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
|
|
@ -9,7 +9,16 @@
|
|||
|
||||
descr = "Python bindings for liblzma"
|
||||
long_descr = """PylibLZMA provides a python interface for the liblzma library
|
||||
@@ -74,7 +74,6 @@
|
||||
@@ -54,6 +54,8 @@
|
||||
pc_libs = subprocess.Popen("pkg-config --libs liblzma", shell=True, stdout=subprocess.PIPE, close_fds=True).stdout.readline().strip()
|
||||
if(pc_libs):
|
||||
link_args.extend(pc_libs.split(' '))
|
||||
+link_args.append('-L%s/lib' % os.environ["LOCALBASE"])
|
||||
+link_args.append('-lpython%i.%i' % sys.version_info[:2])
|
||||
|
||||
extens=[Extension('lzma', c_files, extra_compile_args=compile_args, extra_link_args=link_args, define_macros=version_define)]
|
||||
|
||||
@@ -74,7 +76,6 @@
|
||||
],
|
||||
py_modules = modules,
|
||||
ext_modules = extens,
|
||||
|
|
Loading…
Reference in a new issue