blob: ca0a59d040fdaa2369548e0fa77d8f61a2d7df33 [file] [log] [blame]
Alexander Afanasyevc08ab172012-08-24 18:11:18 -07001# -*- 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
Alexander Afanasyev4c590132012-08-24 22:19:03 -07002# $Id$
Alexander Afanasyevc08ab172012-08-24 18:11:18 -07003
Alexander Afanasyev9291faa2012-08-27 15:00:11 -07004PortSystem 1.0
5PortGroup python 1.0
6PortGroup github 1.0
7
8# github.setup should be performed before name directive, otherwise port name becomes incorrect
9github.setup remap PyCCN fc486a1f253e937fb7de40c2a8fc900ca23c166d
10checksums rmd160 18ac8a27c1f683ee28849f84a3212dc40c1e97de \
11 sha256 7b1a8f61e0379290c9c3043bfe0072a3fcb8aa9f70f9e53fafe612ba571ddb2d
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070012
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070013name py-pyccn
14homepage https://github.com/remap/PyCCN
15license BSD
16version 0.2
17revision 0
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070018
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070019python.versions 27
20python.default_version 27
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070021
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070022categories net ccnx python
23platforms darwin
24maintainers ucla.edu:alexander.afanasyev
25
26description PyCCN - CCN bindings for Python
27
28long_description A "thin" implementation, which supports Python \
29 objects corresponding to the major CCNx entities - Interest, ContentObject, and \
30 so on, as well as some support objects. The C code is mostly just responsible \
31 for marshaling data back and forth between the formats, though there are some \
32 useful functions for key generation/access included.
33
34depends_lib-append port:ccnx
35
36use_autoreconf yes
37use_configure yes
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070038
39pre-configure {
40 file mkdir "${worksrcpath}/build-aux"
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070041
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070042 configure.env-append PYTHON_SITE_PKG=${python.pkgd}
43 configure.python ${python.bin}
Alexander Afanasyev4c590132012-08-24 22:19:03 -070044}
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070045
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070046configure.args-append --with-ccn=${prefix}
47configure.env-append OPENSSL_INCLUDES=-I${prefix}/include \
48 OPENSSL_LDFLAGS=-L${prefix}/lib \
49 OPENSSL_LIBS="-lssl -lcrypto"
50
51build.cmd make
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070052build.target
53
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070054destroot.cmd make
55destroot.target install
56destroot.destdir "DESTDIR=${destroot}"
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070057