2021-10-03 19:53:11 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.19 2021/10/03 17:53:11 hauke Exp $
|
2016-12-31 00:09:41 +01:00
|
|
|
#
|
|
|
|
# used by editors/xemacs-current/Makefile
|
|
|
|
# used by editors/xemacs-current-nox11/Makefile
|
|
|
|
|
2017-11-15 15:46:31 +01:00
|
|
|
DISTNAME= xemacs-21.5.34
|
|
|
|
EMACSVERSION= 21.5-b34
|
2016-12-31 00:09:41 +01:00
|
|
|
EMACS_DISTNAME= xemacs-${EMACSVERSION}
|
|
|
|
CATEGORIES= editors
|
|
|
|
MASTER_SITES= ${MASTER_SITE_XEMACS:=${DISTNAME:C/[.][^.]*$//}/}
|
|
|
|
|
2017-11-15 15:46:31 +01:00
|
|
|
MAINTAINER= hauke@NetBSD.org
|
2020-01-26 18:30:40 +01:00
|
|
|
HOMEPAGE= https://www.xemacs.org/
|
2017-11-15 15:46:31 +01:00
|
|
|
LICENSE= gnu-gpl-v3
|
|
|
|
|
2021-09-27 17:58:33 +02:00
|
|
|
MKPIE_SUPPORTED= no
|
|
|
|
|
2017-11-15 15:46:31 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2016-12-31 00:09:41 +01:00
|
|
|
|
|
|
|
PATCHDIR= ${.CURDIR}/../../editors/xemacs-current/patches
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../editors/xemacs-current/distinfo
|
|
|
|
PLIST_SRC= ${.CURDIR}/../../editors/xemacs-current/PLIST
|
|
|
|
|
2021-03-28 12:36:33 +02:00
|
|
|
USE_TOOLS+= gtar makeinfo perl
|
2017-11-15 15:46:31 +01:00
|
|
|
|
2018-12-19 14:41:45 +01:00
|
|
|
# The portable dumper creates a dump file with a build ID in its name
|
2017-11-15 15:46:31 +01:00
|
|
|
GENERATE_PLIST+= ${ECHO} bin/${EMACS_DISTNAME}-`${WRKSRC}/src/xemacs -sd`.dmp ;
|
|
|
|
|
|
|
|
# Having the build path in the dumped emacs is not a problem.
|
|
|
|
CHECK_WRKREF_SKIP+= bin/xemacs*
|
|
|
|
|
2019-06-08 12:40:52 +02:00
|
|
|
PRINT_PLIST_AWK+= { gsub(/${EMACS_DISTNAME}/, "$${DISTNAME}"); }
|
|
|
|
PRINT_PLIST_AWK+= { gsub(/${MACHINE_GNU_PLATFORM}/, "$${MACHINE_GNU_PLATFORM}"); }
|
2017-11-15 15:46:31 +01:00
|
|
|
|
2016-12-31 00:09:41 +01:00
|
|
|
PLIST_SUBST+= DISTNAME=${EMACS_DISTNAME}
|
|
|
|
FILES_SUBST+= DISTNAME=${EMACS_DISTNAME}
|
|
|
|
MESSAGE_SUBST+= DISTNAME=${EMACS_DISTNAME}
|
2017-11-15 15:46:31 +01:00
|
|
|
INFO_FILES= yes
|
2016-12-31 00:09:41 +01:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2017-11-17 15:17:17 +01:00
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/lib
|
2017-11-15 15:46:31 +01:00
|
|
|
CONFIGURE_ARGS+= --with-infopath=${PREFIX}/${PKGINFODIR}
|
2016-12-31 00:09:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-clash-detection
|
|
|
|
CONFIGURE_ARGS+= --with-mule
|
|
|
|
CONFIGURE_ARGS+= --with-zlib
|
2017-11-15 15:46:31 +01:00
|
|
|
CONFIGURE_ARGS+= --with-bignum=gmp
|
2016-12-31 00:09:41 +01:00
|
|
|
CONFIGURE_ARGS+= --without-msw
|
|
|
|
CONFIGURE_ARGS+= --with-pdump
|
2017-11-15 15:46:31 +01:00
|
|
|
CONFIGURE_ARGS+= --with-system-malloc
|
|
|
|
CONFIGURE_ARGS+= --with-newgc
|
2018-12-19 14:41:45 +01:00
|
|
|
CONFIGURE_ARGS+= --with-kkcc
|
2019-04-11 18:02:37 +02:00
|
|
|
CONFIGURE_ARGS+= --with-postgresql=no
|
|
|
|
|
2016-12-31 00:09:41 +01:00
|
|
|
CFLAGS+= -Dunix
|
|
|
|
|
2021-03-28 12:36:33 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= TAR=${TOOLS_PATH.gtar}
|
|
|
|
|
2017-11-15 15:46:31 +01:00
|
|
|
# Use terminfo on NetBSD-6 and newer.
|
|
|
|
# We cannot use terminfo.*.mk as XEmacs enforces a link to termcap,
|
|
|
|
# but this is fine for us.
|
|
|
|
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/term.h)
|
|
|
|
CPPFLAGS+= -DTERMINFO
|
2016-12-31 00:09:41 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
2017-11-15 15:46:31 +01:00
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2016-12-31 00:09:41 +01:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
|
|
.include "../../mk/termcap.buildlink3.mk"
|