mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
- Add gmp dependency on FreeBSD 5.x PR: ports/72172 Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
20 lines
983 B
Python
20 lines
983 B
Python
--- setup.py.orig Sat Aug 14 01:44:47 2004
|
|
+++ setup.py Fri Oct 1 21:21:45 2004
|
|
@@ -116,13 +116,14 @@
|
|
build_ext.build_extensions(self)
|
|
|
|
def detect_modules (self):
|
|
- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
|
|
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
|
|
+ lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib', '%%LOCALBASE%%/lib']
|
|
+ inc_dirs = self.compiler.include_dirs + ['/usr/include', '%%LOCALBASE%%/include']
|
|
exts = []
|
|
if (self.compiler.find_library_file(lib_dirs, 'gmp')):
|
|
exts.append(Extension("Crypto.PublicKey._fastmath",
|
|
- include_dirs=['src/'],
|
|
+ include_dirs=['src/', '%%LOCALBASE%%/include'],
|
|
libraries=['gmp'],
|
|
+ library_dirs=['%%LOCALBASE%%/lib'],
|
|
sources=["src/_fastmath.c"]))
|
|
self.extensions += exts
|
|
|