Ticket #25148: py-ctypes.diff
File py-ctypes.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
files/patch-setup.py.diff
1 --- setup.py.orig 2007-05-15 12:53:16.000000000 -0500 2 +++ setup.py 2010-06-27 18:11:26.000000000 -0500 3 @@ -125,8 +125,6 @@ 4 5 # First configure a libffi library, then build the _ctypes extension. 6 def build_extensions(self): 7 - self.configure_libffi() 8 - 9 # Add .S (preprocessed assembly) to C compiler source extensions. 10 self.compiler.src_extensions.append('.S') 11 if sys.platform == "win32": -
Portfile
5 5 6 6 name py-ctypes 7 7 version 1.0.2 8 revision 1 8 9 categories python 9 10 platforms darwin 10 11 maintainers nomaintainer … … 23 24 24 25 distname ctypes-${version} 25 26 27 depends_build-append port:pkgconfig 28 26 29 depends_lib-append port:libffi 27 30 28 build.env CC=${configure.cc} CPP=${configure.cpp} 31 patchfiles patch-setup.py.diff 29 32 33 build.env CC=${configure.cc} CPP=${configure.cpp} CFLAGS="-D_DARWIN_C_SOURCE" 34 35 pre-build { 36 build.env-append CPPFLAGS="[exec ${prefix}/bin/pkg-config libffi --cflags]" 37 } 38 30 39 test.run yes 31 40 test.cmd ${build.cmd} 32 41 test.target test