summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz>2005-05-31 22:26:10 +0000
committerwiz <wiz>2005-05-31 22:26:10 +0000
commit6e1e0846e6f3296bcbffb7736ad317996d8cf407 (patch)
treef88782c5033ea5c43741010e366745da21dc4f34 /graphics
parentb2923ca76292d2b651db96ac7d896c3a6e43d65c (diff)
downloadpkgsrc-6e1e0846e6f3296bcbffb7736ad317996d8cf407.tar.gz
Convert to options framework.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gimp1-base/Makefile18
-rw-r--r--graphics/gimp1-base/options.mk19
2 files changed, 21 insertions, 16 deletions
diff --git a/graphics/gimp1-base/Makefile b/graphics/gimp1-base/Makefile
index 86e195a3d62..54904d50eda 100644
--- a/graphics/gimp1-base/Makefile
+++ b/graphics/gimp1-base/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2005/05/22 20:08:05 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2005/05/31 22:26:10 wiz Exp $
#
DISTNAME= gimp-1.2.5
@@ -24,8 +24,6 @@ USE_X11= YES
USE_TOOLS+= gmake
USE_LIBTOOL= YES
-.include "../../mk/bsd.prefs.mk"
-
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --disable-perl
@@ -47,7 +45,7 @@ LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
MAKE_ENV+= X11BASE=${X11BASE}
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
-BUILD_DEFS+= GIMP_WITH_HELPBROWSER
+.include "options.mk"
# Configuration files
PKG_SYSCONFSUBDIR= gimp/1.2
@@ -71,16 +69,4 @@ post-install:
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../multimedia/mpeg-lib/buildlink3.mk"
-.if defined(GIMP_WITH_HELPBROWSER) && ${GIMP_WITH_HELPBROWSER} != "no"
-PLIST_SUBST+= HELPBROWSER=""
-.include "../../x11/gnome-libs/buildlink3.mk"
-.else
-PLIST_SUBST+= HELPBROWSER="@comment "
-.include "../../graphics/jpeg/buildlink3.mk"
-.include "../../graphics/png/buildlink3.mk"
-.include "../../graphics/tiff/buildlink3.mk"
-.include "../../graphics/xpm/buildlink3.mk"
-.include "../../x11/gtk/buildlink3.mk"
-.endif
-
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/gimp1-base/options.mk b/graphics/gimp1-base/options.mk
new file mode 100644
index 00000000000..5982eec1334
--- /dev/null
+++ b/graphics/gimp1-base/options.mk
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 22:26:10 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.gimp-base
+PKG_SUPPORTED_OPTIONS= gimp1-helpbrowser
+PKG_OPTIONS_LEGACY_VARS+= GIMP_WITH_HELPBROWSER:gimp1-helpbrowser
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgimp1-helpbrowser)
+PLIST_SUBST+= HELPBROWSER=""
+.include "../../x11/gnome-libs/buildlink3.mk"
+.else
+PLIST_SUBST+= HELPBROWSER="@comment "
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../graphics/xpm/buildlink3.mk"
+.include "../../x11/gtk/buildlink3.mk"
+.endif