pkgsrc/editors/xemacs-current/options.mk

96 lines
2.8 KiB
Makefile
Raw Normal View History

# $NetBSD: options.mk,v 1.18 2019/06/08 10:41:00 rillig Exp $
Restructure the following packages: editors/xemacs-current editors/xemacs-current-nox11 The latter is now just editors/xemacs-current built with a specific set of options. Changes include: + Rename the "xaw" option to "lucid" to match the option name used in xemacs/options.mk. Also comment out the "esound" option which isn't fully supported yet. Add some comments to the options.mk file to make it a little easier to understand. XXX Should probably add a pgsql option as this version of XEmacs has XXX some sort of PostgreSQL support. Also need to sort out native XXX sound support. + Remove Makefile.common and move all logic into xemacs-current/Makefile and xemacs-current/options.mk. + As of version 21.5, xemacs switched to using GNU autoconf, so set GNU_CONFIGURE=yes. + Include termcap.buildlink3.mk to properly deal with termcap/curses issues (xemacs needs termcap). Drop the --without-ncurses setting as the issue is handled by termcap.buildlink3.mk. + Be slightly more aware of ${X11_TYPE} == "modular" by not referring to ${X11BASE} in that case. + Include buildlink3.mk files for zlib and gettext, which are detected automatically if they're in the base system. Gettext is needed for MULE support. + In the Makefile and the PLIST, don't substitute for ${EMACSVER}. Instead substitute for ${DISTNAME} so the PLIST looks closer to xemacs/PLIST. + Add patch-al which handles a difference between bmake and gmake in using $< in a makefile target. + Support DESTDIR installation by adding INSTALL_MAKE_FLAGS to override where files are installed during the install phase. + Honor PKGMANDIR. + Bump the PKGREVISION for xemacs-current and xemacs-current-nox11 to 1. Both packages now track and use the same PKGREVISION number.
2008-04-24 23:32:47 +02:00
PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs
PKG_SUPPORTED_OPTIONS+= ldap canna debug
.include "../../mk/bsd.options.mk"
# Option "xft" implies "x11".
.if empty(PKG_OPTIONS:Mx11) && !empty(PKG_OPTIONS:Mxft)
2016-12-31 00:18:53 +01:00
PKG_OPTIONS+= x11
2006-08-14 16:22:23 +02:00
.endif
2016-12-31 00:18:53 +01:00
###
### Support drawing pretty X11 Lucid widgets
2016-12-31 00:18:53 +01:00
###
PLIST_VARS+= x11
2016-12-31 00:18:53 +01:00
.if !empty(PKG_OPTIONS:Mx11)
. include "../../mk/jpeg.buildlink3.mk"
. include "../../graphics/png/buildlink3.mk"
. include "../../graphics/tiff/buildlink3.mk"
. include "../../x11/libXpm/buildlink3.mk"
. include "../../mk/xaw.buildlink3.mk"
2016-12-31 00:18:53 +01:00
. include "../../x11/xbitmaps/buildlink3.mk"
PLIST.x11= yes
2016-12-31 00:18:53 +01:00
CONFIGURE_ARGS+= --with-x
CONFIGURE_ARGS+= --with-jpeg
CONFIGURE_ARGS+= --with-png
CONFIGURE_ARGS+= --with-tiff
CONFIGURE_ARGS+= --with-xpm
CONFIGURE_ARGS+= --with-site-includes=${PREFIX}/include:${X11BASE}/include
CONFIGURE_ARGS+= --with-site-libraries=${PREFIX}/lib:${X11BASE}/lib
2016-12-31 00:18:53 +01:00
CONFIGURE_ARGS+= --with-site-runtime-libraries=${PREFIX}/lib:${X11BASE}/lib
# Lucid widgets
CONFIGURE_ARGS+= --with-toolbars=yes
CONFIGURE_ARGS+= --with-menubars=lucid
CONFIGURE_ARGS+= --with-scrollbars=lucid
# Setting these to 'lucid' will sneak in Motif and Xft, so don't
CONFIGURE_ARGS+= --with-dialogs=athena
CONFIGURE_ARGS+= --with-widgets=athena
CONFIGURE_ARGS+= --with-athena=xaw
CONFIGURE_ARGS+= --with-xim=xlib
# Explicitly exclude other toolkits
CONFIGURE_ARGS+= --without-gtk
CONFIGURE_ARGS+= --without-gnome
2016-12-31 00:18:53 +01:00
.else
CONFIGURE_ARGS+= --without-x
CONFIGURE_ARGS+= --without-jpeg
CONFIGURE_ARGS+= --without-png
CONFIGURE_ARGS+= --without-tiff
CONFIGURE_ARGS+= --without-xpm
CONFIGURE_ARGS+= --with-site-includes=${PREFIX}/include
CONFIGURE_ARGS+= --with-site-libraries=${PREFIX}/lib
2016-12-31 00:18:53 +01:00
CONFIGURE_ARGS+= --with-site-runtime-libraries=${PREFIX}/lib
.endif
.if !empty(PKG_OPTIONS:Mldap)
CONFIGURE_ARGS+= --with-ldap
. include "../../databases/openldap-client/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-ldap
.endif
2016-12-31 00:18:53 +01:00
.if !empty(PKG_OPTIONS:Mxft)
. include "../../fonts/fontconfig/buildlink3.mk"
. include "../../graphics/freetype2/buildlink3.mk"
. include "../../x11/libXft/buildlink3.mk"
. include "../../x11/libXrender/buildlink3.mk"
CONFIGURE_ARGS+= --with-xft=emacs,tabs,menubars,gauges
.else
CONFIGURE_ARGS+= --without-xft
2016-12-31 00:18:53 +01:00
.endif
.if !empty(PKG_OPTIONS:Mxface)
CONFIGURE_ARGS+= --with-xface
. include "../../mail/faces/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-xface
2016-12-31 00:18:53 +01:00
.endif
PLIST_VARS+= canna
.if !empty(PKG_OPTIONS:Mcanna)
. include "../../inputmethod/canna-lib/buildlink3.mk"
CONFIGURE_ARGS+= --with-canna
PLIST.canna= yes
.else
CONFIGURE_ARGS+= --without-canna
2016-12-31 00:18:53 +01:00
.endif
PLIST_VARS+= debug
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug=yes --with-debug
CONFIGURE_ARGS+= --with-assertions --with-error-checking=all
CFLAGS+= -g3
INSTALL_UNSTRIPPED= yes
2016-12-31 00:18:53 +01:00
.endif