summaryrefslogtreecommitdiff
path: root/sysutils/mc
diff options
context:
space:
mode:
authorrillig <rillig>2005-08-04 10:32:01 +0000
committerrillig <rillig>2005-08-04 10:32:01 +0000
commitff9561df6d9f5dca7de068abf8ffc0dfe5e13080 (patch)
treea4cebdc45fb4a8315c2851eb4a341531cc2de1c4 /sysutils/mc
parent848f0618d7eac74d1723ccb1cd193389683019e0 (diff)
downloadpkgsrc-ff9561df6d9f5dca7de068abf8ffc0dfe5e13080.tar.gz
Re-added the glib12 PKG_OPTION. Currently I need it for a SuSE 9.1 system.
Diffstat (limited to 'sysutils/mc')
-rw-r--r--sysutils/mc/Makefile7
-rw-r--r--sysutils/mc/options.mk11
2 files changed, 13 insertions, 5 deletions
diff --git a/sysutils/mc/Makefile b/sysutils/mc/Makefile
index 04486a65c4a..0197dbc3738 100644
--- a/sysutils/mc/Makefile
+++ b/sysutils/mc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2005/08/04 10:17:13 rillig Exp $
+# $NetBSD: Makefile,v 1.61 2005/08/04 10:32:01 rillig Exp $
DISTNAME= mc-4.6.1
CATEGORIES= sysutils
@@ -14,8 +14,8 @@ USE_PKGLOCALEDIR= YES
# see options.mk for an explanation of these options
PKG_OPTIONS_VAR= PKG_OPTIONS.mc
-PKG_SUPPORTED_OPTIONS= charset edit ncurses samba slang subshell vfs x11
-PKG_SUGGESTED_OPTIONS= charset edit slang subshell vfs
+PKG_SUPPORTED_OPTIONS= charset edit glib12 ncurses samba slang subshell vfs x11
+PKG_SUGGESTED_OPTIONS= charset edit glib12 slang subshell vfs
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
@@ -38,7 +38,6 @@ PLIST_SRC+= ${PKGDIR}/PLIST
PLIST_SRC+= ${PKGDIR}/PLIST.end
-.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/pkg-config/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/mc/options.mk b/sysutils/mc/options.mk
index b7caeb9c704..910e048b711 100644
--- a/sysutils/mc/options.mk
+++ b/sysutils/mc/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.4 2005/08/04 10:17:13 rillig Exp $
+# $NetBSD: options.mk,v 1.5 2005/08/04 10:32:01 rillig Exp $
#
### The charset option enables input/display support for various 8-bit
@@ -19,6 +19,15 @@ PLIST_SRC+= ${PKGDIR}/PLIST.mcedit
CONFIGURE_ARGS+= --without-edit
.endif
+### On some systems where glib-2.0 does not build, glib-1.2 can be used
+### instead.
+.if !empty(PKG_OPTIONS:Mglib12)
+CONFIGURE_ARGS+= --with-glib12
+.include "../../devel/glib/buildlink3.mk"
+.else
+.include "../../devel/glib2/buildlink3.mk"
+.endif
+
### Enable the Samba virtual file system. You can connect to Windows
### file servers or Samba servers in your network.
.if !empty(PKG_OPTIONS:Msamba)