source: trunk/dports/net/netwib/Portfile

Last change on this file was 125984, checked in by mf2k@…, 3 years ago

add aop ctris cyrus-imapd cyrus-sasl2 fbg FreeSOLID gift GTorrentViewer latex2rtf logsurfer lurker mapm netwag netwib netwox rtf2latex rtf2latex2e tcl-tls toppler xmfract: Ports abandoned by jmpp. (#44809)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 125984 2014-10-01 14:38:59Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name       netwib
6version    5.30.0
7set        NetWVers 530
8categories          net
9license         GPL-2
10platforms           darwin
11maintainers         nomaintainer
12
13description         A network library oriented towards developers.
14long_description      Netwib is a network library providing network features \
15                      such as address conversion, udp/tcp clients/servers, packet \
16                      encoding/decoding/displaying, spoofing, sniffing, etc., and \
17                      general features such as data conversion, linked list and \
18                      hash, portable threads, etc. Using all these functions, a \
19                      network program can be quickly created.
20
21homepage        http://www.laurentconstantin.com/
22master_sites    ${homepage}common/netw/${name}/download/v5/ \
23                http://www.mirrors.wiretapped.net/security/packet-construction/${name}
24extract.suffix  .tgz
25distfiles       ${distname}-src${extract.suffix} \
26                ${distname}-doc_html${extract.suffix}
27checksums       ${distname}-src${extract.suffix} md5 dcd41f26fc8a0ea381c48940c072ef61 \
28                ${distname}-doc_html${extract.suffix} md5 cb56b8844c3a2322e365e265e30d37fd
29
30depends_lib     port:libpcap \
31                port:libnet11
32
33worksrcdir      ${distname}-src/src
34
35pre-configure   {
36                reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/config.dat
37                reinplace "s|\\(NETWIBDEF_PROGCC_INC=\\)\"\"|\\1-I${prefix}/include|g" ${worksrcpath}/config.dat
38                reinplace "s|\\(NETWIBDEF_PROGCC_LIB=\\)\"\"|\\1-L${prefix}/lib|g" ${worksrcpath}/config.dat
39                reinplace "s|/man|/share/man|g" ${worksrcpath}/config.dat
40                reinplace "s|/share/man3|/man3|g" ${worksrcpath}/config.dat
41                reinplace "s|/usr/include/pcap/|${prefix}/include/pcap|g" ${worksrcpath}/genemake
42}
43
44configure.pre_args      {}
45configure.cmd           ./genemake
46
47post-destroot   {
48                xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
49                file copy ${workpath}/${distname}-doc_html ${destroot}${prefix}/share/doc/${name}/html
50                xinstall -m 644 -v -W ${worksrcpath}/../doc/ changelog.txt credits.txt \
51                guidestyle.txt todo.txt ${destroot}${prefix}/share/doc/${name}/
52}
53
54post-activate   {
55                ui_msg "\nFull html documentation is installed as part of the port at:\n
56                ${prefix}/share/doc/${name}/html/\n"
57}
Note: See TracBrowser for help on using the repository browser.