pkgsrc/devel/glib2/Makefile

96 lines
2.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.104 2006/08/17 22:35:10 wiz Exp $
DISTNAME= glib-2.12.2
PKGNAME= ${DISTNAME:S/glib/glib2/}
CATEGORIES= devel
Update to 2.12.0. Add a patch fixing PR 33908, provided by Martijn van Buul. Changes: Overview of Changes from GLib 2.11.4 to GLib 2.12 ================================================= * Bugs fixed: 344905 leap-year bug in g_time_val_from_iso8601 w/o HAVE_TIMEGM * Updated translations (cy,nb,nl) Overview of Changes from GLib 2.11.3 to GLib 2.11.4 =================================================== * GBookmarkFile: - g_bookmark_file_remove_item returns a boolean * g_mkstemp accepts the XXXXXX in the middle of the template * Bugs fixed: 344868 g_key_file_to_data should separate groups * Updated translations (de,es,fr,gu,hi,ko,th) Overview of Changes from GLib 2.11.2 to GLib 2.11.3 =================================================== * GBookmarkFile: - g_bookmark_file_move_item: Return TRUE in case of an empty target * Bugs fixed: 343919 gunicollate.c: strxfrm bug on VC8 * Updated translations (fi) Overview of Changes from GLib 2.11.1 to GLib 2.11.2 =================================================== * Add g_ascii_stroll to parse signed 64bit integers * GMarkup: add a flag to treat CDATA as text * GHashTable: add functions to remove all entries * GMainLoop: add functions to find the currently running source, and determine if it is destroyed * Bug fixes: 342563 g_atomic_thread_init() needs to be called before other _g_*_thread_init() functions 343548 Potential use after free in callers of g_string_free() 168538 Wish: Clearing contents of GHashTables 321886 GTK+ cannot be reliably used in multi-threaded applications 341826 goption.c: 'strtoll' is C99's function 343899 g_ascii_formatd dosn't work as expected for all format strings 317793 Make GEnumValue strings const 337129 Compile warnings in G_IMPLEMENT_INTERFACE 303622 What is G_TYPE_CHAR? * Updated translations (bg,dz,eu,gl,ja,ko,nl,th,vi) Overview of Changes from GLib 2.11.0 to GLib 2.11.1 =================================================== * GOption - Support 64-bit integers - Allow optional text before and after the options in help output * Bug fixes: 340538 gbase64-test writes OOB 340816 GKeyFile set_string_list invalid memory reads 339105 g_key_file_parse_value_as_double 340434 convert-test.c fails (function test_one_half) 311043 Memory leaks (and potential infinite loops) when using G_ERRORCHECK_MUTEXES 335198 Error checking mutexes are fubar 341237 Add a G_OPTION_ARG_INT64 341192 g_io_channel_set_flags not implemented on win32 336120 Allow adding description before/after GOption --help output body 341191 misplaced check in g_relation_delete 340530 mismatched calloc / g_free in win32 threads * Updated translation (es) Overview of Changes from GLib 2.10.x to GLib 2.11.0 =================================================== * GBookmarkFile: a parser for files containing bookmarks stored using the Desktop Bookmark specification. * Base64 encoding support * Unicode 5.0 support * GOption supports floating point numbers * GKeyFile supports floating point numbers * Bug fixes: 155884 gatomic.c should be based on new SDK 157877 update-desktop-database doesn't handle duplicate entries 164719 keyfile parser doesn't support floats 327662 Import BookmarkFile from libegg 329548 Add G_OPTION_ARG_DOUBLE 329789 option-test.c type confusion 332841 Segmentation Fault when %llu is passed to vasnprintf and HAVE_SNPRINTF is not defined 333879 gthread/gthread-win32.c: IsDebuggerPresent needs '#define _WIN32_WINDOWS 0x0401' 333916 g_timer_elapsed docs should mention that microseconds may be NULL 334440 dlerror() portability issue causes crash on (old) a.out NetBSD platform 334646 goption + error out params 334799 g_remove() must check return value of remove() 334943 make check FAIL: threadpool-test 335215 Some breakages with GThreadPool 336085 g_option_context_new parameter lacks better explanation 336677 Documentation for g_object_ref_sink() is incorrect 337027 gbookmarkfile.c: sys/time.h include error 337553 Wrong escaping of URIs 338572 Dereferencing NULL value in g_key_file_get_group_comment 338845 g_completion_complete_utf8 crashes when NULL is passed to it 339337 g_bookmark_file_set_description 339338 gbookmarkfile.c, function expand_exec_line 339340 gbookmarkfile.c, function bookmark_app_info_dump * Translation updates (bg,en_GB,et,gl,gu,he,hi,ka,nb,nl,nn, or,pt_BR,ro,tr,vi,zh_CN)
2006-07-03 23:01:53 +02:00
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.12/ \
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.12/ \
${MASTER_SITE_GNOME:=sources/glib/2.12/}
EXTRACT_SUFX= .tar.bz2
2006-03-10 08:35:12 +01:00
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.gtk.org/docs/glib_toc.html
COMMENT= Some useful routines for C programming (glib2)
2004-04-24 06:56:17 +02:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake msgfmt perl:run pkg-config
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
TEST_TARGET= check
PKGCONFIG_OVERRIDE= glib-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= glib-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-export-2.0.pc.in
Update to 2.8.2: Overview of Changes from GLib 2.8.1 to GLib 2.8.2 ================================================= * Win32 changes - the g_spawn* functions now take their arguments in UTF-8 [Tor Lillqvist] - Avoid extra console windows in some situations [Tor Lillqvist] * Bug fixes [Kjartan Maraas, Sebastian Wilhelmi, Mathias Hasselmann] * Documentation improvements [Matthias, Mark Drago, Matthew F. Barnes, Behdad Esfahbod] * Translation updates (bg,ca,cs,cy,da,de,el,en_CA,es,et, eu,fi,fr,gl,gu,hu,it,ja,nb,nl,no,pl,pt,pt_BR,ro,ru,sk, sq,sr,sr@Latn,sv,uk,vi,zh_TW) Overview of Changes from GLib 2.8.0 to GLib 2.8.1 ================================================= * Optimize single-character insertions in GString [Ross Burton] * Fix build problems on OS X * Fix build problems on Win32 [Tor Lillqvist, Hans Breuer] * Other bug fixes [Matthew F. Barnes, Stepan Kasal] * Documentation improvements [Tristan van Berkom, Behnam Esfahbod, Gustavo Carneiro, Stepan Kasal, Matthias] * New and updated translations (ca,cy,ko,ro,uk) Overview of Changes from GLib 2.7.7 to GLib 2.8.0 ================================================= * Make g_value_transform() handle enum values correctly on ppc64. [Michael Lorenz] (Third-party code accessing enumeration values in GValues should also be changed to access v_long, not v_int, in order to work on bigendian 64bit machines.) * Make g_flags_get_first_value() handle a value of 0 meaningfully. [Tim-Philipp Müller] Overview of Changes from GLib 2.7.6 to GLib 2.7.7 ================================================= * Make atomic operations on s390 work [Matthias] * Fix C++ guards in gstdio.h [Tor Lillqvist] Overview of Changes from GLib 2.7.5 to GLib 2.7.6 ================================================= * Add native implementations of atomic operations on s390 [Matthias] * Make atomic reference counting of closures work on s390 [Matthias] * Avoid an infinite loop in g_convert_with_iconv(). [Sebastian Bacher] * Documentation improvements [Ross Burton] Overview of Changes from GLib 2.7.4 to GLib 2.7.5 ================================================= * Thread-related changes - Fix build issues on HP-UX [Paul Cornett] - Threadsafe access to flags stored in datasets [Tim Janik] - Fix several issues with atomic refcounting for closures, objects and paramspecs [Tim] - Improve tests for atomic refcounting changes [Tim] * Fix handling of stateful encodings in g_convert_* [Matthias] * Fix translation of GOption help output [Dan Winship] * Catch format errors in translations. This may cause "make check" to fail when using older versions of gettext [Matthias] * Win32 bug fixes [Tor Lillqvist] * Documentation improvements [Ross Burton, Jochen Baier, Matthias, Tim] * New and updated translations (de,fi,gu,pl,pt,tr,zh_TW) Overview of Changes from GLib 2.7.3 to GLib 2.7.4 ================================================= * Fix g_atomic_pointer_compare_and_exchange on Sparc64 [Gert Doering] * Fix a hang in g_thread_pool_free. [Hong Jen Yee] * Win32 bug fixes [Tor Lillquist] * Other bug fixes [Benoit Dejean, Manish Singh] * Documentation improvements [Bryan Silverthorn, Callum McKenzie] * New and updated translations (de,lt,sq,zh_CN) Overview of Changes from GLib 2.7.2 to GLib 2.7.3 ================================================= * GOption - Allow callbacks with optional arguments [Pawel Sliwowski] - Allow to turn off the automatic long option name disambiguation [Adam McLaurin] - Only allow printable ASCII as short option names [Matthias] * Win32 - Build fixes [Tor Lillqvist] - Rewrite iochannel socket implementation [Tor] * GObject - Threadsafety improvements; in particular, refcounting of objects is done atomically now. [Wim Taymans, Tim Janik] * Bug fixes [Morten Welinder, Matthias, Wim Taymans] * Documentation improvements [Richard Laager, Matthias] * New and improved translations (bf,cs,hu,nb,nl,no) Overview of Changes from GLib 2.7.1 to GLib 2.7.2 ================================================= * Win32 build fixes [Hans Breuer] * Bug fixes [Mikael Magnusson] * Documentation improvements [Matthias Clasen] * New and updated translations (en_CA,es,et,ja,sr,sr@Latn,zh_TW) Overview of Changes from GLib 2.7.0 to GLib 2.7.1 ================================================= * GOption - Allow callback arguments without parameters [Dan Winship] * GMappedFile: an mmap wrapper [David Schleef, Behdad Esfahbod] * Misc new functions: - g_get_host_name [Tor Lillqvist] - g_mkdir_with_parents [Tor] - g_build_pathv, g_build_filenamev [Todd A. Fisher, Matthias Clasen] * Bug fixes [Roger Leigh, Masatake YAMATO, Kjartan Maraas, Manish Singh, Tor, Murray Cumming, Kian Duffy, Morten Welinder] * Documentation improvements [Hong Gang XU, Dan Winship, Matthias] * New and updated translations (bg,cs,da,en_CA,es,et,nb,nl,no, sk,th,zh_TW) Overview of Changes from GLib 2.6.x to GLib 2.7.0 ================================================= * GKeyFile - Add unit tests [Matthias Clasen, Suren A. Chilingaryan] - Accept \r\n as line end [Bastian Nocera] - Don't interpret leading zeros as octal numbers. [Matthias] - Make key and group removal work [David Hoover, Matthias Hasselmann] * GOption - Improve formatting of --help output [Matthias, Noah Levitt] - Accept -? [Matthias] - Warn about duplicate main groups [Jeff Franks] - Treat '-' as non-option argument [Tim Musson, Thomas Leonard] - Report missing arguments as errors [Björn Lindqvist] - Add a boxed type for GDate [Tim-Philipp Müller] * GTree - g_tree_remove() and g_tree_steal() return status information [Matthew F. Barnes] * Stdio wrappers - Work regardless of large file support [Manish Singh] - Add g_access(), g_chmod(), g_creat(), g_chdir [Tor Lillqvist] * GObject - Implement "toggle references" to help language bindings [Owen Taylor] - Allow to mark names, nicks and blurbs of pspecs as static [Ben Maurer, Matthias] - Make pspec lookup a bit faster [Morten Welinder] * Add g_listenv() to list all set environment variables [Hans Petter Jansson] * Add g_file_set_contents() to atomically write a file. [Søren Sandmann, Sven Neumann, Manish, Alexis S. L. Carvalho] * Add g_try_malloc(), g_try_new(), g_try_new0() and g_try_renew() [Stefan Kost] * Add g_utf8_collate_key_for_filename() to sort filenames taking extensions and numeric suffixes into account. [Ole Laursen, Alex Larsson] * Add G_GNUC_NULL_TERMINATED to mark varargs function with NULL-terminated argument lists. [Marc Meissner] * Win32 changes - Improved debugability [Ulf Lamping, Hans Breuer] - Make filename handling more robust [Tor, Billy Skaggs] - Improve g_get_system_data_dirs() [Tor] - Use more precise timers [Tor] - Build fixes [Kazuki Iwamoto, Hans, Tor, Robert Ögren] * Other bug fixes [Roger Leigh, Owen, Matthias, Morten, Kjartan Maraas, Pawel Sakowski, Tor, Simon Budig, Ed Avis, Manish, Nicolas Laurent, Bastien, Fabrício Barros Cabral, Michael Banck, Daniel Atallah, J. Ali Harlow, Tim Janik, Hazael Maldonado Torres, Sven, Jon-Kare Hellan, Dave Benson, Tommi Komulainen, Benjamin Otte, Brian Cameron, Changwoo Ryu, Christian Biere, Noah, Benoît Carpentier] * Documentation improvements [Vincent Untz, Matthias, Tim-Philipp Müller, Morten, Matthew, Federico Mena Quintero, Sebastian Bacher, Oliver Sessink, Stefan, Jared Lash, Tor, Owen, Daniel Vaillard, Mathieu Lacage] * New and updated translations (ca,cs,da,el,en_CA,en_GB,es,et,eu,fa,fr,gl, hu,id,it,lt,mn,ne,nl,pl,pt,pt_BR,ro,rw,sk,sq,sr,sr@Latn,tl,uk,xh,zh_CN)
2005-10-02 14:15:09 +02:00
PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= gmodule-no-export-2.0.pc.in
PKGCONFIG_OVERRIDE+= gobject-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in
PKGCONFIG_OVERRIDE+= gthread-2.0-uninstalled.pc.in
PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in
2002-09-11 13:31:40 +02:00
GNU_CONFIGURE= yes
CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q}
CONFIGURE_ARGS+= --enable-gtk-doc=no
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc
CONFIGURE_ARGS+= ${CONFIGURE_ARGS.${ICONV_TYPE}-iconv}
CONFIGURE_ARGS.gnu-iconv+= --with-libiconv=gnu
2004-03-22 23:09:17 +01:00
# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+= F77=${FALSE:Q}
2004-03-22 23:09:17 +01:00
CONFIGURE_ENV+= PERL_PATH=${PERL5:Q}
2005-11-25 22:30:17 +01:00
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\""
CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\""
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mmipspro*)
CFLAGS+= -c99
.endif
.if ${OPSYS} == "FreeBSD"
SUBST_CLASSES+= thr
SUBST_STAGE.thr= post-patch
SUBST_FILES.thr= gthread/Makefile.in
. if ${OS_VERSION:R} >= 5
SUBST_SED.thr= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-lpthread|g"
. else
SUBST_SED.thr= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
. endif
2006-02-25 14:33:43 +01:00
SUBST_MESSAGE.thr= Fixing libgthread.
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-[56].*-*)
CONFIGURE_ENV+= gt_cv_c_wchar_t=no
.endif
# Handle directories shared with devel/glib.
PRINT_PLIST_AWK+= /^@dirrm include\/glib$$/ \
{ print "@unexec $${RMDIR} %D/" $$2 \
" 2>/dev/null || $${TRUE}"; next; }
2004-02-10 02:56:42 +01:00
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
2004-12-20 14:05:08 +01:00
.include "../../mk/dlopen.buildlink3.mk"
.if !empty(LOWER_OPSYS:Mirix5*)
CONFIGURE_ARGS+= --disable-threads
.else
2004-02-10 02:56:42 +01:00
.include "../../mk/pthread.buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"