Ticket #13006: glib2-inline.patch
File glib2-inline.patch, 1.4 KB (added by afb@…, 17 years ago) |
---|
-
devel/glib2/files/patch-gutils.h
1 --- glib/gutils.h.orig 2007-10-16 07:44:49.000000000 +0200 2 +++ glib/gutils.h 2007-10-31 12:05:46.000000000 +0100 3 @@ -96,6 +96,8 @@ G_BEGIN_DECLS 4 #ifdef G_IMPLEMENT_INLINES 5 # define G_INLINE_FUNC 6 # undef G_CAN_INLINE 7 +#elif defined (__APPLE__) && !defined(GLIB_COMPILATION) && !defined(GOBJECT_COMPILATION) 8 +# define G_INLINE_FUNC inline 9 #elif defined (__GNUC__) 10 # define G_INLINE_FUNC extern inline 11 #elif defined (G_CAN_INLINE) -
devel/glib2/Portfile
5 5 name glib2 6 6 set my_name glib 7 7 version 2.14.2 8 revision 1 8 9 set branch [join [lrange [split ${version} .] 0 1] .] 9 10 categories devel 10 11 maintainers ryandesign … … 73 74 } 74 75 } 75 76 77 platform darwin 9 { 78 patchfiles-append patch-gutils.h 79 configure.cflags-append -finline-functions 80 } 81 76 82 livecheck.check regex 77 83 livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D 78 84 livecheck.regex ${my_name}-(\[0-9.\]+)\\.tar