Reason: drop a build time option. While here, split the Makefile in two parts to allow the addition of the upcoming dia-python package, which will provide the missing bits.
30 lines
781 B
Makefile
30 lines
781 B
Makefile
# $NetBSD: options.mk,v 1.2 2005/01/20 18:49:33 jmmv Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dia
|
|
#PKG_SUPPORTED_OPTIONS= gnome cairo
|
|
PKG_SUPPORTED_OPTIONS= gnome
|
|
PKG_DEFAULT_OPTIONS= gnome
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.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_SUBST+= GNOME_OPTION=
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-gnome
|
|
PLIST_SUBST+= GNOME_OPTION='@comment '
|
|
.endif
|
|
|
|
# Disabled, freedesktop is down.
|
|
.if !empty(PKG_OPTIONS:Mcairo)
|
|
CONFIGURE_ARGS+= --with-cairo
|
|
. include "../../graphics/cairo/buildlink3.mk"
|
|
PLIST_SUBST+= CAIRO_OPTION=
|
|
.else
|
|
CONFIGURE_ARGS+= --without-cairo
|
|
PLIST_SUBST+= CAIRO_OPTION='@comment '
|
|
.endif
|
|
|