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

Last change on this file since 3173 was 3173, checked in by jkh, 17 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

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