Ticket #35854: Portfile.2

File Portfile.2, 2.1 KB (added by raimue (Rainer Müller), 12 years ago)
Line 
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$
3
4PortSystem              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
12
13name                    py-pyccn
14homepage                https://github.com/remap/PyCCN
15license                 BSD
16version                 0.2
17revision                0
18
19python.versions         27
20python.default_version  27
21
22categories                  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
34if {${subport} != ${name}} {
35    depends_lib-append      port:ccnx
36
37    use_autoreconf          yes
38    use_configure           yes
39
40    pre-configure {
41        file mkdir "${worksrcpath}/build-aux"
42
43        configure.env-append    PYTHON_SITE_PKG=${python.pkgd}
44        configure.python        ${python.bin}
45    }
46
47    configure.args-append   --with-ccn=${prefix}
48    configure.env-append    OPENSSL_INCLUDES=-I${prefix}/include \
49                            OPENSSL_LDFLAGS=-L${prefix}/lib \
50                            OPENSSL_LIBS="-lssl -lcrypto"
51
52    build.cmd               make
53    build.target
54
55    destroot.cmd            make
56    destroot.target         install
57    destroot.destdir        "DESTDIR=${destroot}"
58}