diff options
author | markd <markd> | 2007-06-11 13:57:15 +0000 |
---|---|---|
committer | markd <markd> | 2007-06-11 13:57:15 +0000 |
commit | 84137c0eeab4786b9c06ca84f46eff8e28be9a52 (patch) | |
tree | ce559f87e1cf71d9c89268f38fc6f8678c333d69 /editors/emacs/options.mk | |
parent | d1e9d4ed770a07d78529d1ff3fc77586d79c024d (diff) | |
download | pkgsrc-84137c0eeab4786b9c06ca84f46eff8e28be9a52.tar.gz |
Update emacs{,-nox11} to 22.1.
update based in part on wip/emacs-current and wip/emacs22 packages.
Many many changes since 21.4a. Read NEWS file for details.
Diffstat (limited to 'editors/emacs/options.mk')
-rw-r--r-- | editors/emacs/options.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/editors/emacs/options.mk b/editors/emacs/options.mk new file mode 100644 index 00000000000..57dbf6b1580 --- /dev/null +++ b/editors/emacs/options.mk @@ -0,0 +1,48 @@ +# $NetBSD: options.mk,v 1.1 2007/06/11 13:57:16 markd Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.emacs +PKG_OPTIONS_REQUIRED_GROUPS= toolkit +PKG_OPTIONS_GROUP.toolkit= gtk motif xaw nox11 +PKG_SUGGESTED_OPTIONS= xaw + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mgtk) || !empty(PKG_OPTIONS:Mxaw) + +CONFIGURE_ARGS+= --with-x +CONFIGURE_ARGS+= --with-xpm +CONFIGURE_ARGS+= --with-jpeg +CONFIGURE_ARGS+= --with-tiff +CONFIGURE_ARGS+= --with-gif +CONFIGURE_ARGS+= --with-png + +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/tiff/buildlink3.mk" +.include "../../graphics/libungif/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../x11/libXpm/buildlink3.mk" + +.if !empty(PKG_OPTIONS:Mgtk) +.include "../../x11/gtk2/buildlink3.mk" +CONFIGURE_ARGS+= --with-x-toolkit=gtk +.elif !empty(PKG_OPTIONS:Mmotif) +.include "../../mk/motif.buildlink3.mk" +CONFIGURE_ARGS+= --with-x-toolkit=motif +USE_TOOLS+= pkg-config +.elif !empty(PKG_OPTIONS:Mxaw) +.include "../../mk/xaw.buildlink3.mk" +CONFIGURE_ARGS+= --with-x-toolkit=athena +.endif + +# need 4.1.0b1 or higher (a bug in 4.1.0 can crash Emacs) +BUILDLINK_API_DEPENDS.libungif+= libungif>=4.1.0.1 +.endif + +.if !empty(PKG_OPTIONS:Mnox11) +CONFIGURE_ARGS+= --without-x +CONFIGURE_ARGS+= --without-xpm +CONFIGURE_ARGS+= --without-jpeg +CONFIGURE_ARGS+= --without-tiff +CONFIGURE_ARGS+= --without-gif +CONFIGURE_ARGS+= --without-png +.endif |