/
Portfile
42 lines (31 loc) · 1.32 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: Portfile,v 1.10 2003/04/05 18:06:20 mij Exp $
PortSystem 1.0
name glib2
version 2.0.7
categories devel
maintainers mij@opendarwin.org
description Library with data structure functions and other constructs
homepage http://www.gtk.org/
platforms darwin
long_description Glib is a library which includes support routines for \
C, such as lists, trees, hashes, memory allocation, and \
many other things.
master_sites ftp://ftp.gnome.org/pub/gnome/sources/glib/2.0/
distname glib-${portversion}
checksums md5 5882b1e729f57cb18af653a2f504197b
use_bzip2 yes
depends_lib lib:libdl.1:dlcompat lib:libintl.1:gettext
depends_build bin:pkg-config:pkgconfig
patchfiles patch-Makefile.in patch-configure patch-ltmain.sh \
patch-glib-libcharset-Makefile.in \
patch-glib-libcharset-charset.alias
configure.env LDFLAGS="-L${prefix}/lib" CPPFLAGS="-I${prefix}/include \
-no-cpp-precomp" CFLAGS="-O3 -funroll-loops -fstrict-aliasing"
configure.args --disable-static --with-libiconv=gnu
variant puredarwin { depends_run bin:perl:perl5.8 }
post-install { system "ln -fs libglib-2.0.0.0.7.dylib \
${destroot}${prefix}/lib/libglib.2.dylib"
system "ln -fs libgmodule-2.0.0.0.7.dylib \
${destroot}${prefix}/lib/libgmodule.2.dylib"
system "ln -fs libgthread-2.0.0.0.7.dylib \
${destroot}${prefix}/lib/libgthread.2.dylib" }