blob: 4777eed2fdf6277be6d776da8a9a5024ec38a533 [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
Alexander Afanasyevaa5f4002013-04-18 12:49:54 -07007
Alexander Afanasyev9291faa2012-08-27 15:00:11 -07008# github.setup should be performed before name directive, otherwise port name becomes incorrect
Alexander Afanasyevaa5f4002013-04-18 12:49:54 -07009github.setup named-data PyCCN 86514defb2862231020750bc447dc0377a407592
10checksums rmd160 eb78fb0a5985ec6260e28cf03cb0747b9b04804b \
11 sha256 4bfa2734e2b0dcaa886083c65292c014daca87ca631a9363184da59ff9c429dd
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
Alexander Afanasyevaa5f4002013-04-18 12:49:54 -070017revision 1
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 Afanasyevaa5f4002013-04-18 12:49:54 -070052build.target
Alexander Afanasyevc08ab172012-08-24 18:11:18 -070053
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