pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/glib2 Make FAM optional.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b311109f08e3
branches: trunk
changeset: 542822:b311109f08e3
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed May 28 21:20:48 2008 +0000
description:
Make FAM optional.
diffstat:
devel/glib2/Makefile | 30 +++++++++++-------------------
devel/glib2/options.mk | 27 +++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 19 deletions(-)
diffs (90 lines):
diff -r 1b7679eceac8 -r b311109f08e3 devel/glib2/Makefile
--- a/devel/glib2/Makefile Wed May 28 21:13:20 2008 +0000
+++ b/devel/glib2/Makefile Wed May 28 21:20:48 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.138 2008/05/20 21:07:57 tnn Exp $
+# $NetBSD: Makefile,v 1.139 2008/05/28 21:20:48 joerg Exp $
# When updating glib2, please apply patch-ak to configure.in
# Then run a matching version of autoconf to regen patch-aa.
@@ -81,16 +81,6 @@
CONFIGURE_ENV+= gt_cv_c_wchar_t=no
.endif
-.if ${OPSYS} == "IRIX"
-SUBST_CLASSES+= fam-linkage
-SUBST_STAGE.fam-linkage= pre-configure
-SUBST_MESSAGE.fam-linkage= Fixing fam linkage
-SUBST_FILES.fam-linkage= gio/fam/Makefile.in
-SUBST_SED.fam-linkage= -e 's,^FAM_LIBS =.*$$,FAM_LIBS = -lfam -lC,g'
-
-BUILDLINK_TRANSFORM+= l:fam:fam:C
-.endif
-
.if ${OPSYS} == "HPUX"
CONFIGURE_ENV+= ac_cv_func_mmap_fixed_mapped=yes
.endif
@@ -100,22 +90,24 @@
{ print "@unexec $${RMDIR} %D/" $$2 \
" 2>/dev/null || $${TRUE}"; next; }
+PLIST_VARS+= fam
+
+# Overriden in options.mk.
+CONFIGURE_ARGS+= --disable-fam
+
+.if ${OPSYS} != "HPUX" && ${OPSYS} != "OSF1"
+.include "options.mk"
+.endif
+
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
+
.if !empty(MACHINE_PLATFORM:MIRIX-5*)
CONFIGURE_ARGS+= --disable-threads
.else
.include "../../mk/pthread.buildlink3.mk"
.endif
.include "../../devel/pcre/buildlink3.mk"
-PLIST_VARS+= fam
-.if ${OPSYS} == "HPUX" || ${OPSYS} == "OSF1"
-CONFIGURE_ARGS+= --disable-fam
-.else
-PLIST.fam= yes
-FAM_ACCEPTED= fam
-. include "../../mk/fam.buildlink3.mk"
-.endif
.include "../../mk/bsd.pkg.mk"
diff -r 1b7679eceac8 -r b311109f08e3 devel/glib2/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/glib2/options.mk Wed May 28 21:20:48 2008 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.3 2008/05/28 21:20:48 joerg Exp $
+#
+# This file is *not* included for HPUX and OSF1, as they don't have
+# a working FAM implementation.
+
+PKG_OPTIONS_VAR = PKG_OPTIONS.glib2
+
+PKG_SUGGESTED_OPTIONS= fam
+PKG_SUPPORTED_OPTIONS= fam
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mfam)
+PLIST.fam= yes
+FAM_ACCEPTED= fam
+. include "../../mk/fam.buildlink3.mk"
+CONFIGURE_ARGS+= --enable-fam
+
+. if ${OPSYS} == "IRIX"
+SUBST_CLASSES+= fam-linkage
+SUBST_STAGE.fam-linkage= pre-configure
+SUBST_MESSAGE.fam-linkage= Fixing fam linkage
+SUBST_FILES.fam-linkage= gio/fam/Makefile.in
+SUBST_SED.fam-linkage= -e 's,^FAM_LIBS =.*$$,FAM_LIBS = -lfam -lC,g'
+
+BUILDLINK_TRANSFORM+= l:fam:fam:C
+. endif
+.endif
Home |
Main Index |
Thread Index |
Old Index