1998-05-26 15:00:22 +00:00
|
|
|
# New ports collection makefile for: XEmacs
|
|
|
|
# Version required: 20.4
|
|
|
|
# Date created: 5 Dec 1997
|
|
|
|
# Whom: Kazuyuki IENAGA <ienaga@jsys.co.jp>
|
|
|
|
#
|
1999-03-08 07:28:36 +00:00
|
|
|
# $Id: Makefile,v 1.14 1999/01/23 07:05:33 vanilla Exp $
|
1998-05-26 15:00:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xemacs-20.4
|
|
|
|
PKGNAME?= xemacs-mule-20.4
|
|
|
|
CATEGORIES?= editors
|
1998-10-10 15:28:21 +00:00
|
|
|
MASTER_SITES= ftp://unipro.jsys.co.jp/pub/editor/xemacs/20.4/ \
|
1998-05-26 15:00:22 +00:00
|
|
|
ftp://ftp.lab.kdd.co.jp/xemacs/xemacs-20.4/ \
|
|
|
|
ftp://ftp.xemacs.org/pub/xemacs-20.4/ \
|
1998-10-10 15:28:21 +00:00
|
|
|
ftp://ftp2.xemacs.org/pub/xemacs/xemacs-20.4/ \
|
1998-12-26 03:47:19 +00:00
|
|
|
ftp://ftp.jpl.org/pub/elisp/
|
1998-10-10 15:28:21 +00:00
|
|
|
DISTFILES= xemacs-20.4.tar.gz xemacs-20.4-elc.tar.gz \
|
|
|
|
xemacs-20.4-info.tar.gz xemacs-20.4-mule.tar.gz \
|
|
|
|
ps-print-jp.el.gz
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
MAINTAINER?= kiri@kiri.toba-cmt.ac.jp
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
|
1998-09-17 00:33:02 +00:00
|
|
|
LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm \
|
1998-09-15 11:46:15 +00:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
1999-01-23 07:05:35 +00:00
|
|
|
png.3:${PORTSDIR}/graphics/png \
|
1998-09-21 02:00:37 +00:00
|
|
|
compface.1:${PORTSDIR}/mail/faces \
|
1998-05-26 15:00:22 +00:00
|
|
|
${LIB_INPUT_METHOD}
|
1999-01-18 03:05:30 +00:00
|
|
|
RUN_DEPENDS= ${PREFIX}/lib/${XEMACS_DIR}/lisp/x11/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs-mule-common
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
EXTRACT_ONLY= xemacs-20.4.tar.gz xemacs-20.4-elc.tar.gz \
|
1998-12-26 03:47:19 +00:00
|
|
|
xemacs-20.4-info.tar.gz xemacs-20.4-mule.tar.gz
|
1998-05-26 15:00:22 +00:00
|
|
|
WRKSRC= ${WRKDIR}/xemacs-20.4
|
|
|
|
PATCHDIR= ${.CURDIR}/../../editors/xemacs-mule-common/patches
|
|
|
|
FILESDIR= ${.CURDIR}/../../editors/xemacs-mule-common/files
|
|
|
|
SCRIPTDIR= ${.CURDIR}/../../editors/xemacs-mule-common/scripts
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_AUTOCONF= yes
|
1999-03-08 07:28:36 +00:00
|
|
|
CONFIGURE_ARGS= \
|
1998-10-10 15:28:21 +00:00
|
|
|
--with-clash-detection \
|
|
|
|
--lockdir=/var/run/emacs/lock \
|
|
|
|
--with-x11 \
|
|
|
|
--with-mule \
|
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib \
|
|
|
|
--site-libraries='${SITE_LIBRARIES}' \
|
|
|
|
--site-includes='${SITE_INCLUDES}' \
|
1998-12-26 03:47:19 +00:00
|
|
|
--sitelispdir=${PREFIX}/lib/${XEMACS_DIR}/lisp:${PREFIX}/lib/${XEMACS_DIR}/site-lisp:${PREFIX}/lib/xemacs/site-lisp:${PREFIX}/share/emacs/site-lisp \
|
1998-10-10 15:28:21 +00:00
|
|
|
--infopath=${PREFIX}/lib/xemacs/info:${PREFIX}/info:${X11BASE}/info:/usr/info:${PREFIX}/lib/texmf/doc/info:/usr/lib/texmf/doc:/usr/share/info \
|
|
|
|
${MISC_OPTIONS} ${WITH_INPUT_METHOD} ${WITH_WIDGETS}
|
1999-03-08 07:28:36 +00:00
|
|
|
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
STRIP=
|
|
|
|
|
|
|
|
INSTALL_TARGET= install-arch-dep
|
|
|
|
|
1998-12-26 03:47:19 +00:00
|
|
|
PLIST_SUB= XEMACS_DIR=${XEMACS_DIR}
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
PKGLDIR= ${.CURDIR}/../../editors/xemacs-mule/pkg
|
1998-12-26 03:47:19 +00:00
|
|
|
XEMACS_DIR= xemacs-20.4
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
.if defined(WNN4)
|
|
|
|
SITE_INCLUDES= ${X11BASE}/include
|
|
|
|
SITE_LIBRARIES= ${X11BASE}/lib
|
|
|
|
.endif
|
|
|
|
SITE_INCLUDES+= ${PREFIX}/include
|
|
|
|
SITE_LIBRARIES+= ${PREFIX}/lib
|
|
|
|
.if defined(CANNA)
|
1998-09-21 22:33:26 +00:00
|
|
|
LIB_INPUT_METHOD+= canna.1:${PORTSDIR}/japanese/Canna
|
1998-05-26 15:00:22 +00:00
|
|
|
WITH_INPUT_METHOD+= --with-canna
|
|
|
|
.endif
|
|
|
|
.if defined(WNN4)
|
|
|
|
BUILD_INPUT_METHOD+= ${PREFIX}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
|
|
|
|
WITH_INPUT_METHOD+= --with-wnn
|
|
|
|
.elif defined(WNN6)
|
|
|
|
BUILD_INPUT_METHOD+= ${PREFIX}/include/wnn/jlib.h:${PORTSDIR}/japanese/Wnn6-lib
|
|
|
|
WITH_INPUT_METHOD+= --with-wnn6
|
|
|
|
.endif
|
|
|
|
.if !defined(WITH_INPUT_METHOD)
|
|
|
|
WITH_INPUT_METHOD= --with-wnn=no
|
|
|
|
WITH_INPUT_METHOD+= --with-wnn6=no
|
|
|
|
WITH_INPUT_METHOD+= --with-canna=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
WITH_WIDGETS= --with-menubars=lucid --with-scrollbars=lucid --with-dialogs=athena
|
|
|
|
MISC_OPTIONS= --with-xface --with-xpm --with-sound=native --with-pop --with-xfs
|
|
|
|
|
1998-10-10 15:28:21 +00:00
|
|
|
LANGUAGE?=
|
|
|
|
.if (${LANGUAGE} == "Japanese")
|
|
|
|
PLIST= ${PKGLDIR}/PLIST-ja
|
|
|
|
.else
|
|
|
|
PLIST= ${PKGLDIR}/PLIST
|
|
|
|
.endif
|
|
|
|
|
1998-05-26 15:00:22 +00:00
|
|
|
pre-build:
|
|
|
|
@find ${WRKSRC} \( -name \*.orig -o -name \*~ \) -exec ${RM} -f \{} \;
|
|
|
|
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
|
1998-10-10 15:28:21 +00:00
|
|
|
.if (${LANGUAGE} == "Japanese")
|
1998-12-26 03:47:19 +00:00
|
|
|
@if [ -e ${WRKSRC}/lisp/packages/ps-print.elc ]; then \
|
|
|
|
${RM} -f ${WRKSRC}/lisp/packages/ps-print.elc; \
|
|
|
|
fi
|
1998-10-10 15:28:21 +00:00
|
|
|
@${GZCAT} ${DISTDIR}/ps-print-jp.el.gz > ${WRKSRC}/lisp/packages/ps-print.el
|
|
|
|
.endif
|
1998-05-26 15:00:22 +00:00
|
|
|
|
1999-01-18 03:05:30 +00:00
|
|
|
# for xemacs-mule-common in defining ${WRKDIRPREFIX}
|
|
|
|
.if !exists(${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs-mule-common)
|
|
|
|
post-build:
|
|
|
|
@${MKDIR} ${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs-mule-common
|
|
|
|
.endif
|
|
|
|
|
1998-05-26 15:00:22 +00:00
|
|
|
post-install::
|
|
|
|
.for file in b2m ctags etags gnuclient xemacs-20.4
|
|
|
|
@strip ${PREFIX}/bin/${file}
|
|
|
|
.endfor
|
|
|
|
@if [ -f ${PKGDIR}/INSTALL ]; then \
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
|
|
|
|
fi
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
|
|
|
|
|
|
|
post-package:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|