source: trunk/dports/devel/gnet2/Portfile

Last change on this file was 114930, checked in by devans@…, 4 years ago

gnet, gnet2: update homepage.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 114930 2013-12-19 17:52:38Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    gnet2
7set gname               gnet
8version                 2.0.8
9set branch              [join [lrange [split ${version} .] 0 1] .]
10categories              devel
11license                 LGPL-2.1+
12platforms               darwin
13maintainers             nomaintainer
14
15description             Simple network library
16
17long_description        GNet is a simple network library written in C.  It is \
18                        object-oriented, and built upon GLib.
19
20homepage                https://wiki.gnome.org/Projects/GNetLibrary
21master_sites            gnome:sources/${gname}/${branch}/
22
23distname                ${gname}-${version}
24use_bzip2               yes
25checksums               md5     93327d2fca333d7e54ba2cf54e071165 \
26                        sha1    74a33dd25cc594b874e3a5171795efd99e567387
27
28depends_build           port:pkgconfig
29depends_lib             path:lib/pkgconfig/glib-2.0.pc:glib2 \
30                        port:gettext \
31                        port:libiconv
32
33# /usr/bin/ranlib: library member: libgnetxmlrpc.a(libgnet-2.0.la) is not an object file (not allowed in a library with multiple architectures)
34universal_variant       no
35
36post-configure {
37    reinplace "s|-pthread|-lpthread|g" \
38        ${workpath}/${distname}/src/Makefile
39    reinplace "s|-pthread|-lpthread|g" \
40        ${workpath}/${distname}/examples/Makefile
41    reinplace "s|-pthread|-lpthread|g" \
42        ${workpath}/${distname}/tests/Makefile
43}
44
45post-destroot {
46    system "ln -fs libgnet-2.0.0.8.0.dylib \
47        ${destroot}${prefix}/lib/libgnet.2.dylib"
48}
49
50livecheck.type          gnome
51livecheck.name          ${gname}
Note: See TracBrowser for help on using the repository browser.