# $Id: Portfile 78370 2011-05-05 07:40:57Z ryandesign@macports.org $ PortSystem 1.0 PortGroup python24 1.0 name py-ctypes version 1.0.2 revision 1 categories python platforms darwin maintainers nomaintainer license MIT description create and manipulate C data types in Python long_description ctypes is a Python package to create and manipulate C \ data types in Python, and to call functions in dynamic \ link libraries/shared dlls. It allows wrapping these \ libraries in pure Python. homepage http://starship.python.net/crew/theller/ctypes/ master_sites sourceforge:ctypes checksums md5 94ff7aa7f7f71b23bac8a98065d77743 \ sha1 7f77f2b507a50f292297831ee50e310037398e14 \ rmd160 f8b74c2f9b5646edc916565dd22c51d8819cd6b8 distname ctypes-${version} depends_build-append port:pkgconfig depends_lib-append port:libffi patchfiles patch-setup.py.diff build.env CC=${configure.cc} CPP=${configure.cpp} CFLAGS="-D_DARWIN_C_SOURCE" pre-build { build.env-append CPPFLAGS="[exec ${prefix}/bin/pkg-config libffi --cflags]" } test.run yes test.cmd ${build.cmd} test.target test post-destroot { xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.CVS \ README.txt ${destroot}${prefix}/share/doc/${name} }