pkgsrc/devel/glib2/Makefile

79 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.65 2005/02/04 11:21:11 jmmv Exp $
DISTNAME= glib-2.6.2
PKGNAME= ${DISTNAME:S/glib/glib2/}
CATEGORIES= devel
Update to 2.6.0: Overview of Changes from GLib 2.4.x to GLib 2.6.0 ================================================= * Major new APIs - GOption, a commandline option parser - GKeyFile, a parser/editor for the .ini like files - Functions to support the XDG basedir specification - Wrappers for common POSIX pathname functions to handle filename encodings consistently. On Windows, these use UTF-8. * Miscellaneous new functions - g_filename_display_name() converts filenames in displayable UTF-8 strings - g_uri_list_extract_uris() splits uri lists - g_date_get_iso8601_week_of_year() gets ISO 8601 week numbers - g_log_set_default_handler() installs an alternate default log handler - g_get_language_names() obtains a list of applicable locale names - g_strv_length() calculates the length of NULL-terminated string arrays - g_win32_get_windows_version() determines the Windows version - G_GNUC_INTERNAL marks functions as non-exported - glib_check_version() checks the GLib version at runtime - g_debug() completes the family of logging functions * Performance improvements - Optimize g_utf8_validate() - Optimize g_markup_parse_context_parse() - Reduce signal connection complexity from O(n) to O(1) - Get rid of many PLT entries for internally used exported symbols - Reduce code size by removing literal strings from g_return_if_fail() * Other changes - On Windows, GLib functions that take file name arguments now require those to be in UTF-8. Functions that return file names return UTF-8. - Use higher precision for mathematical constants - Don't convert to/from UTF-8 in g_filename_to_uri/g_filename_from_uri - Support ll as printf format modifier for long long on all platforms - Clean up the ABI and enforce the list of exported symbols - Add a .pc file for using gmodule in libraries - Require ngettext
2004-12-24 11:03:27 +01:00
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v2.6/ \
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v2.6/ \
${MASTER_SITE_GNOME:=sources/glib/2.6/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jmmv@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
BUILD_USES_MSGFMT= yes
2004-02-11 18:14:13 +01:00
2004-02-10 02:56:42 +01:00
USE_BUILDLINK3= yes
USE_PKGLOCALEDIR= yes
USE_GNU_TOOLS+= make
2002-09-11 13:31:40 +02:00
USE_PERL5= yes
USE_LIBTOOL= yes
TEST_TARGET= check
PKGCONFIG_OVERRIDE= glib-2.0.pc.in
PKGCONFIG_OVERRIDE+= gmodule-2.0.pc.in
PKGCONFIG_OVERRIDE+= gobject-2.0.pc.in
PKGCONFIG_OVERRIDE+= gthread-2.0.pc.in
2002-09-11 13:31:40 +02:00
2002-11-30 15:28:07 +01:00
GNU_CONFIGURE= # defined
CONFIGURE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR}
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}
CONFIGURE_ENV+= PERL=${PERL5}
CONFIGURE_ENV+= PERL_PATH=${PERL5}
CPPFLAGS+= -DPREFIX=\"\\\"${PREFIX}\\\"\"
CPPFLAGS+= -DPKGLOCALEDIR=\"\\\"${PKGLOCALEDIR}\\\"\"
CPPFLAGS+= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
.include "../../mk/bsd.prefs.mk"
# FreeBSD fix for libgthread:
# Be sure libgthread is linked to the threaded library (libc_r), otherwise
# -pthread is added and this won't work with libraries, only executable
# binaries.
.if ${OPSYS} == "FreeBSD"
SUBST_CLASSES= thr
SUBST_STAGE.thr= post-patch
SUBST_FILES.thr= gthread/Makefile.in
SUBST_SED.thr= -e "s|@G_THREAD_LIBS_FOR_GTHREAD@|-Wc,-lc_r|g"
SUBST_MESSAGE.thr= "Fixing libgthread."
.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"
.include "../../devel/pkgconfig/buildlink3.mk"
2004-12-20 14:05:08 +01:00
.include "../../mk/dlopen.buildlink3.mk"
2004-02-10 02:56:42 +01:00
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"