source: trunk/dports/devel/glib2/Portfile @ 23764

Last change on this file since 23764 was 23764, checked in by mij@…, 14 years ago

Drop maintainership on my ports. This is mainly because a) I no longer
use most of these, and b) I don't really have the time to maintain them
anymore.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 23764 2007-04-09 04:51:25Z mij@macports.org $
2
3PortSystem 1.0
4name            glib2
5version         2.12.11
6categories      devel
7maintainers     nomaintainer@macports.org
8description     Library with data structure functions and other constructs
9homepage        http://www.gtk.org/
10platforms       darwin
11
12long_description Glib is a library which includes support routines for \
13                 C, such as lists, trees, hashes, memory allocation, and \
14                 many other things.
15
16master_sites    ftp://ftp.gtk.org/pub/glib/2.12 \
17                gnome:sources/glib/2.12
18
19distname        glib-${version}
20
21checksums       md5 077a9917b673a9a0bc63f351786dde24 \
22                sha1 02d344295ddaeafeec6bc6824b71e12bbf1b0394 \
23                rmd160 8680d27e630643e6653d88537907d06e3ba6e91a
24               
25use_bzip2       yes
26
27patchfiles      patch-glib-2.0.pc.in patch-glib__gutils.c
28
29depends_build   port:pkgconfig
30depends_lib     port:gettext
31
32configure.env   LDFLAGS="-L${prefix}/lib -bind_at_load" \
33                CPPFLAGS="-I${prefix}/include" \
34                CFLAGS="-O3 -funroll-loops -fstrict-aliasing"
35
36configure.args   --mandir=${prefix}/share/man
37
38variant puredarwin { depends_run bin:perl:perl5.8 }
39
40post-patch {
41             reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
42             reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
43}
44
45post-destroot { file delete ${destroot}${prefix}/lib/charset.alias }
46
47platform darwin 6 {
48        depends_lib-append lib:libdl:dlcompat
49        post-configure {
50                reinplace "s|#define HAVE_WCHAR_T 1|#undef HAVE_WCHAR_T|" \
51                        ${worksrcpath}/config.h
52        }
53}
Note: See TracBrowser for help on using the repository browser.