Ticket #13006: glib2-inline.patch

File glib2-inline.patch, 1.4 KB (added by afb@…, 17 years ago)

glib2-inline.patch

  • 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

     
    55name                glib2
    66set my_name         glib
    77version             2.14.2
     8revision            1
    89set branch          [join [lrange [split ${version} .] 0 1] .]
    910categories          devel
    1011maintainers         ryandesign
     
    7374        }
    7475}
    7576
     77platform darwin 9 {
     78        patchfiles-append patch-gutils.h
     79        configure.cflags-append -finline-functions
     80}
     81
    7682livecheck.check     regex
    7783livecheck.url       http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D
    7884livecheck.regex     ${my_name}-(\[0-9.\]+)\\.tar