71 lines
2 KiB
Makefile
71 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.62 2007/06/30 17:59:03 joerg Exp $
|
|
|
|
DISTNAME= xemacs-21.5.27
|
|
|
|
CATEGORIES= editors
|
|
MASTER_SITES= ${MASTER_SITE_XEMACS:=xemacs-21.5/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.xemacs.org/
|
|
COMMENT= *BETA* XEmacs text editor version 21.5.27
|
|
|
|
CONFLICTS+= gnuclient-[0-9]*
|
|
|
|
|
|
BUILD_DEFS+= XEMACS_WIDGETS
|
|
EMACSVERSION= 21.5-b27
|
|
PLIST_SUBST+= EMACSVER=xemacs-${EMACSVERSION}
|
|
MESSAGE_SUBST+= EMACSVER=xemacs-${EMACSVERSION}
|
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
|
GCC_REQD+= 2.95.3
|
|
.endif
|
|
|
|
.include "options.mk"
|
|
|
|
XEMACS_WIDGETS?= lucid
|
|
.if ${XEMACS_WIDGETS} == "gtk"
|
|
. include "../../x11/gtk/buildlink3.mk"
|
|
WITH_WIDGETS= --with-gtk
|
|
.elif ${XEMACS_WIDGETS} == "motif"
|
|
. include "../../mk/motif.buildlink3.mk"
|
|
.else
|
|
. include "../../mk/xaw.buildlink3.mk"
|
|
WITH_WIDGETS= --with-widgets=lucid
|
|
.endif
|
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
.include "../../x11/xbitmaps/buildlink3.mk"
|
|
|
|
INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
|
|
|
|
HAS_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= ${MACHINE_GNU_PLATFORM}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
|
|
CONFIGURE_ARGS+= --with-clash-detection
|
|
CONFIGURE_ARGS+= --with-mule=yes
|
|
CONFIGURE_ARGS+= --without-ncurses
|
|
CONFIGURE_ARGS+= --without-msw
|
|
CONFIGURE_ARGS+= ${WITH_WIDGETS}
|
|
CONFIGURE_ARGS+= --with-infopath=${INFOPATH:Q}
|
|
CONFIGURE_ARGS+= --with-site-includes=${PREFIX}/include:${WRKDIR}
|
|
CONFIGURE_ARGS+= --with-site-libraries=${PREFIX}/lib
|
|
|
|
CFLAGS+= -Dunix
|
|
# newer gcc has big trouble with aliasing otherwise - this should be fixed
|
|
# in the source, but untill then, use the big hammer here:
|
|
CFLAGS+= -fno-strict-aliasing
|
|
|
|
INFO_FILES= # PLIST
|
|
|
|
# build PATH in the dumped emacs is not a problem
|
|
CHECK_WRKREF_SKIP+= bin/xemacs
|
|
CHECK_WRKREF_SKIP+= bin/xemacs-${EMACSVERSION}
|
|
|
|
post-patch:
|
|
rm -f ${WRKSRC}/etc/ctags.1.orig
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|