pkgsrc/editors/emacs21/options.mk
wiz c26f5ca940 libungif is not relevant any longer since the GIF relevant patents
expired (about 10 years ago).

Unconditionally switch to libgif.

As discussed on tech-pkg without dissent.

Bump PKGREVISION.
2014-05-31 15:56:26 +00:00

77 lines
1.8 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2014/05/31 15:56:26 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.emacs
PKG_SUPPORTED_OPTIONS= x11
PKG_OPTIONS_OPTIONAL_GROUPS= toolkit
PKG_OPTIONS_GROUP.toolkit= emacs-xaw3d motif xaw
PKG_SUGGESTED_OPTIONS= x11
.include "../../mk/bsd.options.mk"
###
### Treat "emacs-xaw3d" as a special case of "xaw".
###
.if !empty(PKG_OPTIONS:Memacs-xaw3d)
XAW_TYPE= 3d
PKG_OPTIONS:= ${PKG_OPTIONS:Nemacs-xaw3d}
PKG_OPTIONS+= xaw
.endif
###
### Any of the "toolkit" options implies "x11".
###
.if !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mxaw)
. if empty(PKG_OPTIONS:Mx11)
PKG_OPTIONS+= x11
. endif
.endif
###
### Default to using the Xaw X11 toolkit if none is specified.
###
.if !empty(PKG_OPTIONS:Mx11)
. if empty(PKG_OPTIONS:Mmotif) && empty(PKG_OPTIONS:Mxaw)
PKG_OPTIONS+= xaw
. endif
.endif
###
### Support drawing pretty X11 widgets.
###
.if !empty(PKG_OPTIONS:Mx11)
. include "../../mk/jpeg.buildlink3.mk"
. include "../../graphics/tiff/buildlink3.mk"
. include "../../graphics/png/buildlink3.mk"
. include "../../x11/libXpm/buildlink3.mk"
. include "../../graphics/giflib/buildlink3.mk"
CONFIGURE_ARGS+= --with-gif
CONFIGURE_ARGS+= --with-jpeg
CONFIGURE_ARGS+= --with-png
CONFIGURE_ARGS+= --with-tiff
CONFIGURE_ARGS+= --with-x
CONFIGURE_ARGS+= --with-xpm
.else
CONFIGURE_ARGS+= --without-gif
CONFIGURE_ARGS+= --without-jpeg
CONFIGURE_ARGS+= --without-png
CONFIGURE_ARGS+= --without-tiff
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --without-xpm
.endif
###
### Support using Motif X11 widgets.
###
.if !empty(PKG_OPTIONS:Mmotif)
. include "../../mk/motif.buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=motif
.endif
###
### Support using Xaw (Lucid) X11 widgets.
###
.if !empty(PKG_OPTIONS:Mxaw)
. include "../../mk/xaw.buildlink3.mk"
CONFIGURE_ARGS+= --with-x-toolkit=athena
.endif