source: trunk/dports/devel/gnet2/Portfile @ 38077

Last change on this file since 38077 was 38077, checked in by ryandesign@…, 11 years ago

In all openmaintainer and nomaintainer ports and my ports, depend on glib2 via a path in ${prefix} so that either glib2 or glib2-devel can satisfy the dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 905 bytes
Line 
1# $Id: Portfile 38077 2008-07-05 21:37:56Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            gnet2
5version         2.0.7
6revision        1
7categories      devel
8maintainers     nomaintainer
9description     Simple network library
10homepage        http://www.gnetlibrary.org/
11platforms       darwin
12
13long_description GNet is a simple network library written in C.  It is \
14                 object-oriented, and built upon GLib.
15
16master_sites    http://www.gnetlibrary.org/src/
17
18distname        gnet-${version}
19checksums       sha1 01c41bd492c6fd33d31800d0c5146a09315f7f6d
20
21depends_lib     path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 port:gettext port:libiconv
22
23post-configure  { reinplace "s|-pthread|-lpthread|g" \
24                    ${workpath}/${distname}/src/Makefile
25                  reinplace "s|-pthread|-lpthread|g" \
26                    ${workpath}/${distname}/examples/Makefile
27                  reinplace "s|-pthread|-lpthread|g" \
28                    ${workpath}/${distname}/tests/Makefile }
29
30post-destroot   { system "ln -fs libgnet-2.0.0.0.4.dylib \
31                    ${destroot}${prefix}/lib/libgnet.2.dylib" }
Note: See TracBrowser for help on using the repository browser.