17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=glib
31 VER=2.34.1
32 PKG=library/glib2
33 SUMMARY="$PROG - GNOME GLib utility library"
34 DESC="$SUMMARY"
35
36 DEPENDS_IPS="SUNWcs library/libffi@$FFIVERS library/zlib system/library
37 system/library/gcc-4-runtime runtime/perl"
38
39 CONFIGURE_OPTS="--disable-fam --disable-dtrace"
40
41 save_function configure32 configure32_orig
42 save_function configure64 configure64_orig
43 configure32() {
44 LIBFFI_CFLAGS=-I/usr/lib/libffi-$FFIVERS/include
45 export LIBFFI_CFLAGS
46 LIBFFI_LIBS=-lffi
47 export LIBFFI_LIBS
48 configure32_orig
49
50 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib -lc#g;' libtool ||
51 logerr "libtool patch failed"
52 # one file here requires c99 compilation and most others prohibit it
53 # it is a test, so no runtime issues will be present
54 pushd glib/tests > /dev/null
55 logmsg " one off strfuncs.o c99 compile"
56 logcmd make CFLAGS="-std=c99" strfuncs.o
57 popd > /dev/null
58 }
59 configure64() {
60 LIBFFI_CFLAGS=-I/usr/lib/amd64/libffi-$FFIVERS/include
|
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=glib
31 VER=2.34.1
32 PKG=library/glib2
33 SUMMARY="$PROG - GNOME GLib utility library"
34 DESC="$SUMMARY"
35
36 DEPENDS_IPS="SUNWcs library/libffi@$FFIVERS library/zlib system/library
37 system/library/gcc-5-runtime runtime/perl"
38
39 # Use old gcc4 standards level for this.
40 export CFLAGS="$CFLAGS -std=gnu89"
41
42 CONFIGURE_OPTS="--disable-fam --disable-dtrace --with-threads=posix"
43
44 save_function configure32 configure32_orig
45 save_function configure64 configure64_orig
46 configure32() {
47 LIBFFI_CFLAGS=-I/usr/lib/libffi-$FFIVERS/include
48 export LIBFFI_CFLAGS
49 LIBFFI_LIBS=-lffi
50 export LIBFFI_LIBS
51 configure32_orig
52
53 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib -lc#g;' libtool ||
54 logerr "libtool patch failed"
55 # one file here requires c99 compilation and most others prohibit it
56 # it is a test, so no runtime issues will be present
57 pushd glib/tests > /dev/null
58 logmsg " one off strfuncs.o c99 compile"
59 logcmd make CFLAGS="-std=c99" strfuncs.o
60 popd > /dev/null
61 }
62 configure64() {
63 LIBFFI_CFLAGS=-I/usr/lib/amd64/libffi-$FFIVERS/include
|