blob: c2d7ff707d73614787a9f3fbcb3f9879cdb1c393 [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
2# $Id: Portfile 78158 2011-04-26 13:15:48Z jmr@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7use_configure yes
8use_autoreconf yes
9name py-ccn
10version 0.2
11python.versions 27
12python.default_version 27
13revision 1
14description PyCCN - CCN bindings for Python
15long_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.
21maintainers ucla.edu:alexander.afanasyev
22categories net python
23platforms darwin
24homepage https://github.com/remap/PyCCN
25
26fetch.type git
27git.url https://github.com/remap/PyCCN.git
28git.branch fc486a1f253e937fb7de40c2a8fc900ca23c166d
29
30depends_build \
31 port:autoconf \
32 port:libtool \
33 port:pkgconfig
34depends_lib-append \
35 port:openssl \
36 port:ccnx
37
38pre-configure {
39 file mkdir "${worksrcpath}/build-aux"
40}
41
42configure.args-append --with-ccn=${prefix}
43configure.env-append OPENSSL_INCLUDES=-I${prefix}/include
44configure.env-append OPENSSL_LDFLAGS=-L${prefix}/lib
45configure.env-append OPENSSL_LIBS="-lssl -lcrypto"
46configure.env-append PYTHON_SITE_PKG=${python.pkgd}
47configure.env-append PYTHON=${python.bin}
48
49build.cmd make
50build.target
51
52destroot.cmd make
53destroot.target install
54destroot.destdir "DESTDIR=${destroot}"
55