Ticket #3017: Portfile.2

File Portfile.2, 3.2 KB (added by andre@…, 19 years ago)

Revised Portfile

Line 
1# $Id$
2
3#
4# One of the tricky things about this port is that the default
5# boost.build system on darwinports does not install a "jam"
6# version of the executable.  Without being able to invoke the
7# binary with that name, the build of netxx won't work.
8#
9
10PortSystem           1.0
11name                 netxx
12version              0.4.2
13categories           devel
14maintainers          andre@splunk.com
15description          A C++ network programming library designed to take the pain out of programming network communications applications.
16long_description     Netxx is a C++ network programming library. It is designed to take \
17                     the pain out of programming network communications applications.  It \
18                     does this by providing an easy to use and cross-platform interface. \
19                     As a side effect, you get the safety of automatic resource management \
20                     and smaller, simpler code.
21homepage             http://pmade.org/software/netxx/
22master_sites         http://pmade.org/software/netxx/download/
23checksums            netxx-0.4.2.tar.gz md5 684b9841beda776551d2ab720faeb9b1
24
25depends_build        bin:bjam:boost-jam
26
27patch.pre_args       -p2
28patchfiles           patch-osutil.h.diff patch-netbuf.h.diff
29
30build {
31        cd ${worksrcpath}
32        file copy "${prefix}/bin/bjam" "${worksrcpath}/jam"
33        system ${worksrcpath}/jam
34        file delete "${worksrcpath}/jam"
35}
36
37destroot {
38        file mkdir "${destroot}${prefix}/lib"
39        file copy "${worksrcpath}/src/debug/libnetxx.a" "${destroot}${prefix}/lib/libnetxx.a"
40
41        file mkdir "${destroot}${prefix}/include/netxx"
42        file copy "${worksrcpath}/include/netxx/netxx.h" "${destroot}${prefix}/include/netxx/"
43        file copy "${worksrcpath}/include/netxx/timeout.h" "${destroot}${prefix}/include/netxx/"
44        file copy "${worksrcpath}/include/netxx/streambase.h" "${destroot}${prefix}/include/netxx/"
45        file copy "${worksrcpath}/include/netxx/datagramserver.h" "${destroot}${prefix}/include/netxx/"
46        file copy "${worksrcpath}/include/netxx/netbuf.h" "${destroot}${prefix}/include/netxx/"
47        file copy "${worksrcpath}/include/netxx/streamserver.h" "${destroot}${prefix}/include/netxx/"
48        file copy "${worksrcpath}/include/netxx/datagram.h" "${destroot}${prefix}/include/netxx/"
49        file copy "${worksrcpath}/include/netxx/address.h" "${destroot}${prefix}/include/netxx/"
50        file copy "${worksrcpath}/include/netxx/probe.h" "${destroot}${prefix}/include/netxx/"
51        file copy "${worksrcpath}/include/netxx/types.h" "${destroot}${prefix}/include/netxx/"
52        file copy "${worksrcpath}/include/netxx/stream.h" "${destroot}${prefix}/include/netxx/"
53        file copy "${worksrcpath}/include/netxx/probeinfo.h" "${destroot}${prefix}/include/netxx/"
54        file copy "${worksrcpath}/include/netxx/peer.h" "${destroot}${prefix}/include/netxx/"
55        file copy "${worksrcpath}/include/netxx/sockopt.h" "${destroot}${prefix}/include/netxx/"
56
57        file mkdir "${destroot}${prefix}/include/netxx/tls"
58        file copy "${worksrcpath}/include/netxx/tls/netxx.h" "${destroot}${prefix}/include/netxx/tls/"
59        file copy "${worksrcpath}/include/netxx/tls/context.h" "${destroot}${prefix}/include/netxx/tls/"
60        file copy "${worksrcpath}/include/netxx/tls/certificate.h" "${destroot}${prefix}/include/netxx/tls/"
61        file copy "${worksrcpath}/include/netxx/tls/stream.h" "${destroot}${prefix}/include/netxx/tls/"
62}