2000-11-04 08:16:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2000/11/04 13:16:33 espie Exp $
|
2000-08-15 17:41:28 -04:00
|
|
|
# Supported FLAVORS : mule | compface | no_x11 | clashdetect
|
|
|
|
# TODO : add flavours for Wnn, Canna, XFontSet and maybe kerberos
|
|
|
|
# Tested on : i386 sparc (thanks to Free&ALter Soft for the sparc)
|
|
|
|
|
|
|
|
VER= 21.1.12
|
|
|
|
DISTNAME= xemacs-${VER}
|
|
|
|
CATEGORIES= editors
|
2000-10-22 11:41:23 -04:00
|
|
|
NEED_VERSION= 1.305
|
2000-08-15 17:41:28 -04:00
|
|
|
|
2000-10-22 10:02:46 -04:00
|
|
|
MAINTAINER= Jean-Yves Burlett <jean-yves@burlett.org>
|
2000-08-15 17:41:28 -04:00
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ftp://ftp.xemacs.org/pub/xemacs/xemacs-21.1/ \
|
|
|
|
ftp://ftp.pasteur.fr/pub/computing/xemacs/xemacs-21.1/ \
|
|
|
|
ftp://ftp.mpi-sb.mpg.de/pub/gnu/mirror/ftp.xemacs.org/xemacs/xemacs-21.1/ \
|
|
|
|
ftp://ftp.usyd.edu.au:/pub/Xemacs/xemacs-21.1/ \
|
|
|
|
ftp://ftp.lab.kdd.co.jp/xemacs/xemacs-21.1/ \
|
|
|
|
ftp://ftp.th-darmstadt.de/pub/editors/xemacs/xemacs-21.1/
|
|
|
|
|
|
|
|
SEPARATE_BUILD= flavored
|
2000-10-24 00:43:46 -04:00
|
|
|
CONFIGURE_STYLE=gnu old dest
|
2000-08-15 17:41:28 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2000-10-22 11:41:23 -04:00
|
|
|
CONFIGURE_ARGS= --with-gnu-make \
|
2000-08-15 17:41:28 -04:00
|
|
|
--site-prefixes='${LOCALBASE}:/usr' \
|
|
|
|
--gung-ho \
|
|
|
|
--with-ncurses \
|
2000-11-04 08:16:33 -05:00
|
|
|
--with-database=berkdb \
|
|
|
|
--without-ldap \
|
|
|
|
--with-menubars=lucid \
|
|
|
|
--with-scrollbars=lucid \
|
|
|
|
--with-dialogs=athena \
|
|
|
|
--without-tiff \
|
2000-08-15 17:41:28 -04:00
|
|
|
--infodir='$${DESTDIR}${PREFIX}/info' \
|
|
|
|
--infopath='${LOCALBASE}/info:/usr/share/info'
|
|
|
|
|
|
|
|
FAKE_FLAGS= prefix='$${WRKINST}$${DESTDIR}${PREFIX}' infodir='$${WRKINST}$${DESTDIR}${PREFIX}/info'
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
FLAVORS= mule compface clashdetect no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+=--without-x11
|
|
|
|
.else
|
|
|
|
# X11-DEPENDANT flavors
|
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg.62::graphics/jpeg \
|
|
|
|
png.1.::graphics/png
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mcompface}
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libcompface.a::graphics/compface
|
|
|
|
CONFIGURE_ARGS+=--with-xface
|
|
|
|
.else
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
CONFIGURE_ARGS+=--with-xface=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# end of X11 dependant flavors
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# X11-independant flavors
|
|
|
|
.if ${FLAVOR:L:Mmule}
|
|
|
|
CONFIGURE_ARGS+=--with-mule
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# clash detection flavor needs LOCKDIR to be set to the path
|
|
|
|
# of the directory where clash detection lockfiles will be put
|
|
|
|
# some people dislikes this feature because anybody able to read
|
|
|
|
# this directory can see what other people are working on
|
|
|
|
# w/o this feature, clash detection still occur using lockfiles present
|
|
|
|
# in the same directory as the file being edited (.#files#) but clash
|
|
|
|
# detection won't work well with symlinked files
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mclashdetect} && defined(LOCKDIR)
|
|
|
|
CONFIGURE_ARGS+=--with-clash-detection --lockdir='$${LOCKDIR}'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# End of X11-independant flavors
|
|
|
|
|
|
|
|
# Arch string for configure
|
2000-10-23 17:52:56 -04:00
|
|
|
# copied from emacs and xemacs20 ports
|
2000-08-15 17:41:28 -04:00
|
|
|
|
|
|
|
.if ${MACHINE} == "arc" || ${MACHINE} == "pmax" || ${MACHINE} == "wgrisc"
|
|
|
|
M_ARCH= mipsel
|
|
|
|
.elif ${MACHINE} == "hkmips" || ${MACHINE} == "sgi"
|
|
|
|
M_ARCH= mips
|
|
|
|
.else
|
|
|
|
M_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
GCCARCH= ${M_ARCH}-unknown-openbsd${OSREV}
|
|
|
|
|
|
|
|
SED_PLIST= |sed -e 's,@@GCCARCH@@,${GCCARCH},'
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= ${GCCARCH}
|
|
|
|
|
2000-10-23 17:52:56 -04:00
|
|
|
# Strip from emacs and xemacs20 ports
|
2000-08-15 17:41:28 -04:00
|
|
|
|
|
|
|
INSTALL_STRIP=
|
|
|
|
STRIP_PROGS= b2m ctags etags gnuclient
|
|
|
|
|
|
|
|
.if (${MACHINE_ARCH} != "alpha")
|
|
|
|
STRIP_PROGS+= ${DISTNAME}
|
|
|
|
.endif
|
|
|
|
STRIP_EXECS= cvtmail digest-doc fakemail gnuserv hexl make-docfile \
|
|
|
|
make-path mmencode movemail profile sorted-doc wakeup yow
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for file in ${STRIP_PROGS}
|
|
|
|
strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
|
|
|
.for file in ${STRIP_EXECS}
|
|
|
|
strip ${PREFIX}/lib/${DISTNAME}/${GCCARCH}/${file}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
# Don't install send-pr for everyone, only for XEmacs' private use.
|
|
|
|
@rm -f ${PREFIX}/bin/send-pr
|
|
|
|
@rm -f ${PREFIX}/bin/install-sid
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|