pkgsrc/devel/glib2/Makefile
jmmv 12a671dbf1 Add support for kqueue by using the patches written by Dmitry Matveev during
the Google Summer of Code 2011 program.  Congratulations, Dmitry!  :-)

This comes in the form of a new 'kqueue' build-time option.  This should NOT
be an option, but it is for two reasons:
- I consider this still experimental for it to be enabled on everyone's
  machines, and the code is not "official".
- The patch requires us to run automake/autoconf during the pre-configure
  stage, and I don't want to add these dependencies on the default package
  build.
When these patches get integrated upstream, we can get rid of the option
altogether.

Also note that I had to backport some of our custom changes to Makefile.in
files and some to configure to the original Makefile.am files and
configure.ac.  This is to prevent our custom patches from being lost during
the automake/autoconf invocations we now do when 'kqueue' is enabled.

Bump PKGREVISION to 1.
2011-10-09 19:40:02 +00:00

53 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.187 2011/10/09 19:40:02 jmmv Exp $
.include "Makefile.common"
.include "options.mk"
PKGREVISION= 1
CATEGORIES= devel
COMMENT= Some useful routines for C programming (glib2)
USE_TOOLS+= msgfmt perl:run
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
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
PKGCONFIG_OVERRIDE+= gio-2.0.pc.in
PKGCONFIG_OVERRIDE+= gio-unix-2.0.pc.in
FILES_SUBST+= GIO_MODULES_DIR=${PREFIX}/lib/gio/modules
FILES_SUBST+= GIO_QUERYMODULES=${PREFIX}/bin/gio-querymodules
FILES_SUBST+= GLIB_COMPILE_SCHEMAS=${PREFIX}/bin/glib-compile-schemas
FILES_SUBST+= GLIB_SCHEMAS_DIR=${PREFIX}/share/glib-2.0/schemas
# gtester is the glib unit testing and reporting framework
# agc doesn't want glib2 to depend on python so we install it
# in a broken and useless state.
CHECK_INTERPRETER_SKIP+= bin/gtester-report
# need pcre utf8 + unicode-properties
BUILDLINK_API_DEPENDS.pcre+= pcre>=8.11
# to avoid pkg-config dependency, explicitly specify pcre location
CONFIGURE_ARGS+= PCRE_CFLAGS=-I${BUILDLINK_PREFIX.pcre}/include
CONFIGURE_ARGS+= PCRE_LIBS="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib -L${BUILDLINK_PREFIX.pcre}/lib -lpcre"
# needs gz_header structure
BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.2.1
LIBS.SunOS+= -lnsl -lsocket
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"