[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / graphics / dia

File: [cvs.NetBSD.org] / pkgsrc / graphics / dia / options.mk (download)

Revision 1.6, Sat Apr 12 22:43:01 2008 UTC (10 years, 11 months ago) by jlam
Branch: MAIN
CVS Tags: pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.5: +5 -5 lines

Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.

# $NetBSD: options.mk,v 1.6 2008/04/12 22:43:01 jlam Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.dia
#PKG_SUPPORTED_OPTIONS=	gnome cairo
PKG_SUPPORTED_OPTIONS=	gnome
PKG_SUGGESTED_OPTIONS=	gnome

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		cairo gnome

.if !empty(PKG_OPTIONS:Mgnome)
USE_DIRS+=		gnome2-1.5
CONFIGURE_ARGS+=	--enable-gnome
.  include "../../devel/libgnome/buildlink3.mk"
.  include "../../devel/libgnomeui/buildlink3.mk"
PLIST.gnome=		yes
PLIST_SUBST+=		DIA_HELPDIR=share/gnome/help/dia
.else
CONFIGURE_ARGS+=	--disable-gnome
PLIST_SUBST+=		DIA_HELPDIR=share/dia/help
.endif

# Disabled, freedesktop is down.
.if !empty(PKG_OPTIONS:Mcairo)
CONFIGURE_ARGS+=	--with-cairo
.  include "../../graphics/cairo/buildlink3.mk"
PLIST.cairo=		yes
.else
CONFIGURE_ARGS+=	--without-cairo
.endif