pkgsrc-wip/glib2/hacks.mk
Jason Bacon 6d76a5190c Import glib2-2.34.3 as wip/glib2.
For testing patches aimed at Darwin.

GLib provides the core application building blocks for libraries
and applications written in C.  It provides the core object system
used in GNOME, the main loop implementation, and a large set of
utility functions for strings and common data structures.

This package contains GLib version 2.
2013-02-08 03:20:54 +00:00

33 lines
972 B
Makefile

# $NetBSD: hacks.mk,v 1.1 2013/02/08 03:20:54 outpaddling Exp $
.if !defined(GLIB2_HACKS_MK)
GLIB2_HACKS_MK= # defined
# Build without optimization. Avoids crash in libgobject on gtk2
# initialization. Bug is triggered regardless of whether we're using gcc or
# aCC.
.if !empty(MACHINE_PLATFORM:MHPUX-*-hppa)
PKG_HACKS+= hppa-codegen
CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g}
.endif
#.if ${OPSYS} == "Darwin"
#CHECK_BUILTIN.libiconv:= yes
#. include "../../converters/libiconv/builtin.mk"
#CHECK_BUILTIN.libiconv:= no
#PKG_HACKS+= darwin-iconv
#SUBST_CLASSES+= iconv
#SUBST_STAGE.iconv= pre-configure
#SUBST_MESSAGE.iconv= Changing libiconv_open to iconv_open.
#SUBST_FILES.iconv= configure
#SUBST_SED.iconv= -e 's,libiconv_open,iconv_open,g'
#.endif
# Work around unresolved symbol g_test_config_vars during build
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Msunpro)
PKG_HACKS+= sunpro-visibility
CONFIGURE_ARGS+= --disable-visibility
.endif
.endif