Ticket #3017: Portfile

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

This is the 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                     lib:XXX:boost-build
27
28build.cmd            jam
29
30patch.pre_args       -p2
31patchfiles           patch-osutil.h.diff patch-netbuf.h.diff
32
33destroot {
34        file mkdir "${destroot}${prefix}/lib"
35        file copy "${worksrcpath}/src/debug/libnetxx.a" "${destroot}${prefix}/lib/libnetxx.a"
36
37        file mkdir "${destroot}${prefix}/include/netxx"
38        file copy "${worksrcpath}/include/netxx/netxx.h" "${destroot}${prefix}/include/netxx/"
39        file copy "${worksrcpath}/include/netxx/timeout.h" "${destroot}${prefix}/include/netxx/"
40        file copy "${worksrcpath}/include/netxx/streambase.h" "${destroot}${prefix}/include/netxx/"
41        file copy "${worksrcpath}/include/netxx/datagramserver.h" "${destroot}${prefix}/include/netxx/"
42        file copy "${worksrcpath}/include/netxx/netbuf.h" "${destroot}${prefix}/include/netxx/"
43        file copy "${worksrcpath}/include/netxx/streamserver.h" "${destroot}${prefix}/include/netxx/"
44        file copy "${worksrcpath}/include/netxx/datagram.h" "${destroot}${prefix}/include/netxx/"
45        file copy "${worksrcpath}/include/netxx/address.h" "${destroot}${prefix}/include/netxx/"
46        file copy "${worksrcpath}/include/netxx/probe.h" "${destroot}${prefix}/include/netxx/"
47        file copy "${worksrcpath}/include/netxx/types.h" "${destroot}${prefix}/include/netxx/"
48        file copy "${worksrcpath}/include/netxx/stream.h" "${destroot}${prefix}/include/netxx/"
49        file copy "${worksrcpath}/include/netxx/probeinfo.h" "${destroot}${prefix}/include/netxx/"
50        file copy "${worksrcpath}/include/netxx/peer.h" "${destroot}${prefix}/include/netxx/"
51        file copy "${worksrcpath}/include/netxx/sockopt.h" "${destroot}${prefix}/include/netxx/"
52
53        file mkdir "${destroot}${prefix}/include/netxx/tls"
54        file copy "${worksrcpath}/include/netxx/tls/netxx.h" "${destroot}${prefix}/include/netxx/tls/"
55        file copy "${worksrcpath}/include/netxx/tls/context.h" "${destroot}${prefix}/include/netxx/tls/"
56        file copy "${worksrcpath}/include/netxx/tls/certificate.h" "${destroot}${prefix}/include/netxx/tls/"
57        file copy "${worksrcpath}/include/netxx/tls/stream.h" "${destroot}${prefix}/include/netxx/tls/"
58}