ports/math/py-cryptominisat/files/patch-setup.py.in
Gleb Popov a2f89c90f5 math/cryptominisat and math/py-cryptominisat to 5.6.8.
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D19302
2019-02-23 16:31:47 +00:00

27 lines
1.2 KiB
Python

--- setup.py.in.orig 2019-02-19 20:49:20 UTC
+++ setup.py.in
@@ -118,12 +118,12 @@ else:
modules = dict(
name = "pycryptosat",
- sources = ["${CMAKE_CURRENT_BINARY_DIR}/src/pycryptosat.cpp"],
+ sources = ["src/pycryptosat.cpp"],
define_macros = [('LIBRARY_VERSION', '"' + __LIBRARY_VERSION__ + '"')],
- extra_compile_args = cconf + ['-I${PROJECT_SOURCE_DIR}', '-I${PROJECT_BINARY_DIR}/cmsat5-src'],
+ extra_compile_args = cconf + ['-I/usr/local/include', '-I../cmsat5-src', '-xc++'],
extra_link_args = extra_link_args,
language = "c++",
- library_dirs=['.', '${PROJECT_BINARY_DIR}/lib', '${PROJECT_BINARY_DIR}/lib/${CMAKE_BUILD_TYPE}'],
+ library_dirs=['.', '/usr/local/lib'],
runtime_library_dirs=['${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}'],
libraries = [libname]
)
@@ -152,7 +152,7 @@ setup(
description = "Bindings to CryptoMiniSat {} (a SAT solver)".\
format(__LIBRARY_VERSION__),
# py_modules = ['pycryptosat'],
- long_description = open('${CMAKE_CURRENT_SOURCE_DIR}/README.rst').read(),
+ long_description = open('README.rst').read(),
cmdclass={
'test': TestCommand
}