2000-01-06 01:46:39 +00:00
|
|
|
# New ports collection makefile for: XEmacs with Mule
|
|
|
|
# Date created: 8 Dec 1999
|
|
|
|
# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
|
1998-05-26 15:00:22 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1998-05-26 15:00:22 +00:00
|
|
|
#
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
# This is the MASTER port of XEmacs Mule slave ports(japanese/xemacs${XEMACS_MAJOR_VER}-*)
|
1999-11-27 03:14:31 +00:00
|
|
|
# and provides `Architecture Dependent' parts of xemacs binary.
|
|
|
|
#
|
|
|
|
# Caracteristic variables of XEmacs Mule ports family:
|
2000-01-06 01:46:39 +00:00
|
|
|
# MULE_PORT : Mule port if defined(means COMMN or SLAVE)
|
1999-11-27 03:14:31 +00:00
|
|
|
# MULE_COMMON : COMMON port if defined
|
2000-01-06 01:46:39 +00:00
|
|
|
# MULE_SLAVE : SLAVE port if defined
|
|
|
|
# PKGLDIR : Local PKGDIR of editors/xemacs${XEMACS_MAJOR_VER}-mule
|
|
|
|
# (that is editors/xemacs${XEMACS_MAJOR_VER}-mule/pkg)
|
1999-11-27 03:14:31 +00:00
|
|
|
# SITE_INCLUDES : site include path(configure arguments)
|
|
|
|
# SITE_LIBRARIES : site libraries path(configure arguments)
|
|
|
|
# WITH_INPUT_METHOD : input methods(configure arguments)
|
|
|
|
# LIB_INPUT_METHOD : LIB_DEPENDS list of Input Methods
|
|
|
|
# BUILD_INPUT_METHOD: BUILD_DEPENDS list of Input Methods
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
.if !defined(MULE_SLAVE) && !defined(MULE_COMMON)
|
|
|
|
MULE_SLAVE= yes
|
|
|
|
.endif
|
1998-05-26 15:00:22 +00:00
|
|
|
|
1999-11-27 03:14:31 +00:00
|
|
|
MAINTAINER= kiri@kiri.toba-cmt.ac.jp
|
1998-05-26 15:00:22 +00:00
|
|
|
|
2000-02-18 23:21:40 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/xemacs/xemacs-packages/pkginfo/MANIFEST.xemacs-devel:${PORTSDIR}/editors/xemacs-packages \
|
|
|
|
${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-mule-packages \
|
1999-11-27 03:14:31 +00:00
|
|
|
${BUILD_INPUT_METHOD}
|
2000-01-14 18:06:11 +00:00
|
|
|
.if defined(MULE_SLAVE)
|
2000-02-18 23:21:40 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/xemacs-${XEMACS_VER}/lisp/x-win-xfree86.elc:${PORTSDIR}/editors/xemacs${XEMACS_MAJOR_VER}-mule-common \
|
|
|
|
${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-mule-packages
|
2000-01-14 18:06:11 +00:00
|
|
|
.else
|
2000-02-18 23:21:40 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-mule-packages
|
2000-01-14 18:06:11 +00:00
|
|
|
.endif
|
2000-01-06 01:46:39 +00:00
|
|
|
LIB_DEPENDS= compface.1:${PORTSDIR}/mail/faces \
|
1998-05-26 15:00:22 +00:00
|
|
|
${LIB_INPUT_METHOD}
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
CONFIGURE_ARGS?=${XEMACS_ARCH} \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-x11 \
|
1999-09-09 14:25:39 +00:00
|
|
|
--with-xim=no \
|
1998-10-10 15:28:21 +00:00
|
|
|
--with-mule \
|
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib \
|
|
|
|
--site-libraries='${SITE_LIBRARIES}' \
|
|
|
|
--site-includes='${SITE_INCLUDES}' \
|
1999-09-09 14:25:39 +00:00
|
|
|
--with-xface \
|
|
|
|
--with-xpm \
|
|
|
|
--with-sound=native \
|
|
|
|
--with-site-lisp \
|
|
|
|
--with-pop \
|
|
|
|
--with-xfs \
|
|
|
|
--with-menubars=lucid \
|
|
|
|
--with-scrollbars=lucid \
|
|
|
|
--with-dialogs=athena \
|
|
|
|
--with-jpeg \
|
|
|
|
--with-png \
|
|
|
|
--with-tiff \
|
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 \
|
1999-09-09 14:25:39 +00:00
|
|
|
--with-clash-detection \
|
|
|
|
--lockdir=/var/run/emacs/lock \
|
|
|
|
${WITH_INPUT_METHOD}
|
1999-11-27 03:14:31 +00:00
|
|
|
MAKE_ENV= LANG=C
|
|
|
|
INSTALL_COOKIE= ${WRKDIR}/.install_done-${PKGNAME}
|
|
|
|
PACKAGE_COOKIE= ${WRKDIR}/.package_done-${PKGNAME}
|
1998-05-26 15:00:22 +00:00
|
|
|
STRIP=
|
1999-11-27 03:14:31 +00:00
|
|
|
INSTALL_TARGET?=install-arch-dep
|
2000-01-06 01:46:39 +00:00
|
|
|
FILESDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/files
|
2000-02-18 23:21:40 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/patches
|
1999-09-09 14:25:39 +00:00
|
|
|
PLIST?= ${PKGLDIR}/PLIST
|
2000-01-06 01:46:39 +00:00
|
|
|
|
2000-01-07 16:17:07 +00:00
|
|
|
XEMACS_MAJOR_VER?= 21
|
2000-01-06 01:46:39 +00:00
|
|
|
MULE_PORT= yes
|
2000-04-13 06:50:45 +00:00
|
|
|
PKGNAMESUFFIX?= -mule
|
2000-01-06 01:46:39 +00:00
|
|
|
DESCR_TMPL?= ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule/files/DESCR.tmpl
|
|
|
|
COMMENT_TEXT?= XEmacs(version ${XEMACS_MAJOR_VER}) text editor with mule(Only the executables)
|
|
|
|
.if defined(MULE_SLAVE)
|
|
|
|
BINNAMEEXT= -mule
|
|
|
|
PKGLDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule/pkg
|
1998-05-26 15:00:22 +00:00
|
|
|
SITE_INCLUDES+= ${PREFIX}/include
|
|
|
|
SITE_LIBRARIES+= ${PREFIX}/lib
|
1999-09-09 14:25:39 +00:00
|
|
|
WITH_INPUT_METHOD?= --with-canna=no --with-wnn=no --with-wnn6=no
|
1999-11-27 03:14:31 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
.if defined(MULE_SLAVE)
|
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
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
# for xemacs${XEMACS_MAJOR_VER}-mule-common in defining ${WRKDIRPREFIX}
|
|
|
|
.if !exists(${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule-common)
|
1999-01-18 03:05:30 +00:00
|
|
|
post-build:
|
2000-01-06 01:46:39 +00:00
|
|
|
@${MKDIR} ${WRKDIRPREFIX}${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule-common
|
1999-01-18 03:05:30 +00:00
|
|
|
.endif
|
|
|
|
|
1998-05-26 15:00:22 +00:00
|
|
|
post-install::
|
2000-01-06 01:46:39 +00:00
|
|
|
@${LN} -sf ja ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults/ja_JP.EUC
|
1998-05-26 15:00:22 +00:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
1999-11-27 03:14:31 +00:00
|
|
|
.endif
|
1998-05-26 15:00:22 +00:00
|
|
|
|
|
|
|
post-package:
|
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PACKAGE_COOKIE}
|
|
|
|
|
2000-02-18 23:21:40 +00:00
|
|
|
## for make DESCR and COMMENT (only maintainer use)
|
|
|
|
#pre-arrange::
|
|
|
|
# @${MKDIR} ${PKGDIR}
|
|
|
|
# @${ECHO} "${COMMENT_TEXT}" > ${COMMENT}
|
2000-04-13 06:50:45 +00:00
|
|
|
#.if (${PKGNAMESUFFIX} == "-canna") || (${PKGNAMESUFFIX} == "-mule") || (${PKGNAMESUFFIX} == "-mule-common")
|
2000-02-18 23:21:40 +00:00
|
|
|
# @${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
|
|
|
|
# -e "s/%%XEMACS_REL%%/${XEMACS_REL}/g" \
|
|
|
|
# -e "s/%%XEMACS_MAJOR_VER%%/${XEMACS_MAJOR_VER}/g" \
|
|
|
|
# ${DESCR_TMPL} > ${DESCR}
|
|
|
|
#.endif
|
|
|
|
# ${CHOWN} kiri:staff ${COMMENT} ${DESCR}
|
|
|
|
#
|
|
|
|
## for make PLIST (only maintainer use)
|
|
|
|
#arrange::
|
2000-04-13 06:50:45 +00:00
|
|
|
#.if (${PKGNAMESUFFIX} == "-mule")||(${PKGNAMESUFFIX} == "-mule-common")
|
2000-02-18 23:21:40 +00:00
|
|
|
# ${RM} -f ${PLIST}
|
2000-04-13 06:50:45 +00:00
|
|
|
#.if (${PKGNAMESUFFIX} == "-mule")
|
2000-02-18 23:21:40 +00:00
|
|
|
# ${MAKE} DIRRM2RMDIRS="lib/xemacs/mule-packages/etc lib/xemacs/mule-packages lib/xemacs/mule-packages/etc/app-defaults" \
|
|
|
|
# DIRRMDEPTH=2 plist
|
|
|
|
#.endif
|
2000-04-13 06:50:45 +00:00
|
|
|
#.if (${PKGNAMESUFFIX} == "-mule-common")
|
2000-02-18 23:21:40 +00:00
|
|
|
# ${MAKE} DIRRM2RMDIRS="lib/xemacs-${XEMACS_VER} etc/rc.d" DIRRMDEPTH=1 plist
|
|
|
|
#.for dirp in site mule xemacs
|
|
|
|
#.for dir in etc info man pkginfo
|
|
|
|
# ${ECHO} "@exec mkdir -p %D/lib/xemacs/${dirp}-packages/${dir}" >> ${PLIST}
|
|
|
|
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages/${dir} 2>/dev/null || true" >> ${PLIST}
|
|
|
|
#.endfor
|
|
|
|
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages 2>/dev/null || true" >> ${PLIST}
|
|
|
|
#.endfor
|
|
|
|
# ${ECHO} "@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock" >> ${PLIST}
|
|
|
|
# ${CAT} ${WRKPLIST} >> ${PLIST}
|
|
|
|
# ${CHOWN} kiri:staff ${PLIST}
|
|
|
|
#.endif
|
|
|
|
#.endif
|
|
|
|
#
|
2000-04-13 06:50:45 +00:00
|
|
|
#.if (${PKGNAMESUFFIX} != "-mule-common")
|
2000-02-18 23:21:40 +00:00
|
|
|
#pre-plist:
|
|
|
|
# @${ECHO} "===> pre-plist of ${PKGNAME}"
|
|
|
|
# ${MKDIR} ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults
|
|
|
|
#.endif
|
1999-12-08 12:39:56 +00:00
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
.include "${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/Makefile"
|