pkgsrc/editors/xemacs-current/Makefile

94 lines
3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.69 2011/01/13 13:53:27 wiz Exp $
Update xemacs-current from 21.5.18 to 21.5.19 From the ChangeLog: * XEmacs 21.5.19 "chives" is released. "chives" is the twentieth in the VEGETABLE series. Relative to XEmacs 21.5.18 "chestnut", "chives" includes a large number of minor enhancements and work-in-progress. Some important or annoying bugs have been fixed: - The lstream data truncation bug (often observed as truncated emails or truncated process input in buffers) has been identified and fixed, we believe (hard to test). - The bug where process output insertion replaced the whole buffer, rather than just the region, has been fixed. - The "Metacity maximize" bug (which was XEmacs's fault, not the window manager's) has been fixed. Known remaining bugs include: - Aborts due to recursive entry to the allocation code from error handlers. Workaround: avoid getting the memory full warnings (at 75% and 95% of memory space). - A regression test failure in no-Mule builds. Workaround: don't run the c-tests.el series when running tests. (Simply move tests/automated/c-tests.el out of the way.) Currently fairly stable, this seems to be a good point to release a beta as a checkpoint. At the user level the most visible changes are extension of the "behavior" mechanism for enabling and disabling features, and a major reorganization of the documentation in the source tree. For behaviors, see the Options->Behaviors submenu. The source documentation changes include At top level, README has been gutted, with most content moved to the FAQ. BUGS and README.packages were removed, with much of their content moved to the FAQ. GETTING.GNU.SOFTWARE was removed. In etc, BETA, CHARSETS, CODING-STANDARDS, CODINGS, DEBUG, DISTRIB, MACHINES, and PACKAGES were removed, with most content moved to various Texinfo documents. FTP, GNU, LPF, MAILINGLISTS MORE.STUFF, MOTIVATION, ORDERS, ORDERS.EUROPE, ORDERS.JAPAN, README.HYPERBOLE, README.OO-BROWSER, SERVICE, and TERMS were removed. PROBLEMS and etc/README were revised. For developers, the following important internal API changes occurred. - Initialization code (called from emacs.c:main_1()) has been refactored. See the ChangeLog (2004-10-27, Ben Wing) for details. - The GCPRO API has been refactored. See the ChangeLog (2004-10-27, Ben Wing) for details. (Yes, it was a megapatch: same log entry.) For more detailed information, there is a list of credits, and then the full ChangeLogs, following the availability information. For general information about XEmacs, the developers, and the user community, see our home page, http://www.xemacs.org/
2005-03-02 23:05:19 +01:00
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
PKGNAME?= ${DISTNAME}
COMMENT?= *BETA* XEmacs text editor version ${PKGVERSION_NOREV}
DISTNAME= xemacs-21.5.27
EMACSVERSION= 21.5-b27
EMACS_DISTNAME= xemacs-${EMACSVERSION}
PKGREVISION= 6
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
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=${DISTNAME:C/[.][^.]*$//}/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.xemacs.org/
CONFLICTS+= gnuclient-[0-9]*
CONFLICTS+= xemacs-[0-9]*
CONFLICTS+= xemacs-nox11-[0-9]*
PKG_DESTDIR_SUPPORT= user-destdir
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
GCC_REQD+= 2.95.3
.endif
PLIST_SUBST+= DISTNAME=${EMACS_DISTNAME}
FILES_SUBST+= DISTNAME=${EMACS_DISTNAME}
MESSAGE_SUBST+= DISTNAME=${EMACS_DISTNAME}
INFO_FILES= # PLIST
.include "options.mk"
# The XEmacs configure script does something silly to the value of mandir
# passed to the configure script to point it to where the man1 pages go.
# Point it there directly.
#
GNU_CONFIGURE_MANDIR= ${PREFIX:Q}/${PKGMANDIR}/man1
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule
CONFIGURE_ARGS+= --with-zlib
CONFIGURE_ARGS+= --without-msw
CFLAGS+= -Dunix
# Newer gcc has big trouble with aliasing. This should be fixed in the
# source, but until then, use the big hammer here.
#
CFLAGS+= -fno-strict-aliasing
.if ${X11_TYPE} != "modular"
INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
.else
INFOPATH= ${PREFIX}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
.endif
CONFIGURE_ARGS+= --with-infopath=${INFOPATH:Q}
# Having the build path in the dumped emacs is not a problem.
CHECK_WRKREF_SKIP+= bin/xemacs
CHECK_WRKREF_SKIP+= bin/xemacs-${EMACSVERSION}
LIBDIR= ${PREFIX}/lib/${EMACS_DISTNAME}
ARCHLIBDIR= ${LIBDIR}/${MACHINE_GNU_PLATFORM}
# This list overrides variables used in the source Makefiles at install
# time to allow for ${DESTDIR}-style installation. This variables list
# is pulled from the ``mkdir'' target of Makefile.in.in.
#
INSTALL_MAKE_FLAGS+= archlibdir=${DESTDIR}${ARCHLIBDIR}
INSTALL_MAKE_FLAGS+= bindir=${DESTDIR}${PREFIX}/bin
INSTALL_MAKE_FLAGS+= datadir=${DESTDIR}${PREFIX}/lib
INSTALL_MAKE_FLAGS+= docdir=${DESTDIR}${ARCHLIBDIR}
INSTALL_MAKE_FLAGS+= etcdir=${DESTDIR}${LIBDIR}/etc
INSTALL_MAKE_FLAGS+= exec_prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${LIBDIR}/info
INSTALL_MAKE_FLAGS+= libdir=${DESTDIR}/lib
INSTALL_MAKE_FLAGS+= lispdir=${DESTDIR}${LIBDIR}/lisp
INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
INSTALL_MAKE_FLAGS+= moduledir=${DESTDIR}${ARCHLIBDIR}/modules
INSTALL_MAKE_FLAGS+= pkgdir=${DESTDIR}${LIBDIR}/lisp
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= sitelispdir=${DESTDIR}${PREFIX}/lib/xemacs/site-lisp
INSTALL_MAKE_FLAGS+= sitemoduledir=${DESTDIR}${PREFIX}/lib/xemacs/site-modules
pre-build:
rm -f ${WRKSRC}/etc/ctags.1.orig
.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"