pkgsrc/editors/xemacs-nox11/Makefile
jlam 9cde120028 Restructure the following packages:
editors/xemacs
	editors/xemacs-nox11

The latter is now just editors/xemacs built with a specific set of
options.  Changes include:

+ Add support for the following new options in options.mk:

	x11		Support X11 displays
	lucid		Use Lucid widget set

  Also add commented out support for the following options for
  alternative widget sets:

	gtk		GTK widgets
	motif		Motif widgets
	xaw		Athena widgets

  Note that USE_ATHENA, USE_GTK, and USE_MOTIF are legacy variables for
  the corresponding options.

+ Remove Makefile.common and move all logic into xemacs/Makefile and
  xemacs/options.mk.

+ Rename the "mule" PLIST variable to "canna", which more accurately
  reflects what is conditionally installed.

+ Include termcap.buildlink3.mk to properly deal with termcap/curses
  issues (xemacs needs termcap).  Drop the --with-ncurses=no setting
  as the issue is handled by termcap.buildlink3.mk.

+ In xemacs/Makefile, we don't need separate EXTRACT_ONLY and EXTRA_FILES
  if we're actually going to extract all of those files all of the time.
  Just list them all in DISTFILES.

+ Be slightly more aware of ${X11_TYPE} == "modular" by not referring to
  ${X11BASE} in that case.

+ In patch-ak, directly substitute the local value of etcdir (``../etc/'')
  into src/Makefile.in.in.  This allows for overriding etcdir via
  INSTALL_MAKE_FLAGS at install-time so that destdir-style installation
  will work.

+ 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 and xemacs-nox11 to 4.  Both packages
  now track and use the same PKGREVISION number.
2008-04-24 15:32:15 +00:00

17 lines
476 B
Makefile

# $NetBSD: Makefile,v 1.20 2008/04/24 15:32:16 jlam Exp $
PKGNAME= ${DISTNAME:S/-/-nox11-/}
FILESDIR= ${.CURDIR}/../../editors/xemacs/files
PATCHDIR= ${.CURDIR}/../../editors/xemacs/patches
PKGDIR= ${.CURDIR}/../../editors/xemacs
# Mirror PKG_DESTDIR_SUPPORT setting from xemacs/Makefile.
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../mk/bsd.prefs.mk"
PKG_OPTIONS.xemacs+= -x11 -lucid
#PKG_OPTIONS.xemacs+= -gtk -motif -xaw
.include "../../editors/xemacs/Makefile"