Alexander Afanasyev | c08ab17 | 2012-08-24 18:11:18 -0700 | [diff] [blame^] | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
| 2 | # $Id: Portfile 78158 2011-04-26 13:15:48Z jmr@macports.org $ |
| 3 | |
| 4 | PortSystem 1.0 |
| 5 | PortGroup python 1.0 |
| 6 | |
| 7 | use_configure yes |
| 8 | use_autoreconf yes |
| 9 | name py-ccn |
| 10 | version 0.2 |
| 11 | python.versions 27 |
| 12 | python.default_version 27 |
| 13 | revision 1 |
| 14 | description PyCCN - CCN bindings for Python |
| 15 | long_description \ |
| 16 | A "thin" implementation, which supports Python \ |
| 17 | objects corresponding to the major CCNx entities - Interest, ContentObject, and \ |
| 18 | so on, as well as some support objects. The C code is mostly just responsible \ |
| 19 | for marshaling data back and forth between the formats, though there are some \ |
| 20 | useful functions for key generation/access included. |
| 21 | maintainers ucla.edu:alexander.afanasyev |
| 22 | categories net python |
| 23 | platforms darwin |
| 24 | homepage https://github.com/remap/PyCCN |
| 25 | |
| 26 | fetch.type git |
| 27 | git.url https://github.com/remap/PyCCN.git |
| 28 | git.branch fc486a1f253e937fb7de40c2a8fc900ca23c166d |
| 29 | |
| 30 | depends_build \ |
| 31 | port:autoconf \ |
| 32 | port:libtool \ |
| 33 | port:pkgconfig |
| 34 | depends_lib-append \ |
| 35 | port:openssl \ |
| 36 | port:ccnx |
| 37 | |
| 38 | pre-configure { |
| 39 | file mkdir "${worksrcpath}/build-aux" |
| 40 | } |
| 41 | |
| 42 | configure.args-append --with-ccn=${prefix} |
| 43 | configure.env-append OPENSSL_INCLUDES=-I${prefix}/include |
| 44 | configure.env-append OPENSSL_LDFLAGS=-L${prefix}/lib |
| 45 | configure.env-append OPENSSL_LIBS="-lssl -lcrypto" |
| 46 | configure.env-append PYTHON_SITE_PKG=${python.pkgd} |
| 47 | configure.env-append PYTHON=${python.bin} |
| 48 | |
| 49 | build.cmd make |
| 50 | build.target |
| 51 | |
| 52 | destroot.cmd make |
| 53 | destroot.target install |
| 54 | destroot.destdir "DESTDIR=${destroot}" |
| 55 | |