source: trunk/dports/devel/glib/Portfile @ 1796

Last change on this file since 1796 was 1796, checked in by mij, 18 years ago
  • Destrootify
  • Whitespace cleanup
  • Add depends_lib on gettext
  • Move dlcompat to depends_lib
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1PortSystem 1.0
2name            glib
3version         1.2.10
4categories      devel
5maintainers     eric@opendarwin.org
6description     Library with data structure functions and other constructs
7homepage        http://www.gtk.org/
8platforms       darwin freebsd
9
10long_description General-purpose library from the GTK+ team, includes \
11                 support routines for C such as lists, trees, hashes, \
12                 memory allocation, and many other things.
13
14master_sites    ftp://ftp.gtk.org/pub/gtk/v1.2/ \
15                http://www.opendarwin.org/projects/darwinports/distfiles/:lt
16
17set filename    ${portname}-${portversion}${extract.sufx}
18distfiles       ${filename} ltconfig13:lt ltmain13:lt
19checksums       ${filename} md5 6fe30dad87c77b91b632def29dd69ef9 \
20                ltconfig13 md5 ea53f42a550c9f9e653758a8ed91574e \
21                ltmain13 md5 e094ae92724c4015dbab97de151c2525
22extract.only    ${filename}
23
24depends_lib     lib:libdl.1:dlcompat lib:libintl.1:gettext
25depends_build   bin:pkg-config:pkgconfig
26
27pre-patch       { system "cp ${distpath}/ltconfig13 ${worksrcpath}/ltconfig"
28                  system "cp ${distpath}/ltmain13 ${worksrcpath}/ltmain.sh" }
29
30patchfiles      patch-configure patch-config.guess patch-config.sub
31
32configure.env   LDFLAGS="-L${prefix}/lib" CFLAGS="-I${prefix}/include"
33configure.args  --disable-static
34
35post-install    { system "ln -sf libglib-1.2.0.0.10.dylib \
36                    ${destroot}${prefix}/lib/libglib.1.dylib"
37                  system "ln -sf libgmodule-1.2.0.0.10.dylib \
38                    ${destroot}${prefix}/lib/libgmodule.1.dylib"
39                  system "ln -sf libgthread-1.2.0.0.10.dylib \
40                    ${destroot}${prefix}/lib/libgthread.1.dylib" }
Note: See TracBrowser for help on using the repository browser.