mirror of
https://git.freebsd.org/ports.git
synced 2025-06-22 13:10:31 -04:00
27 lines
1.2 KiB
Python
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
|
|
}
|