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}-*)
|
2000-04-20 19:39:00 +00:00
|
|
|
# and provides `Architecture Dependent' parts of xemacs binary.
|
1999-11-27 03:14:31 +00:00
|
|
|
#
|
|
|
|
# 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
|
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-10-24 10:53:40 +00:00
|
|
|
# WITH_XIM : X Input Method(configure arguments), xlib or motif
|
1999-11-27 03:14:31 +00:00
|
|
|
|
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-07-13 09:53:24 +00:00
|
|
|
BUILD_DEPENDS= ${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 \
|
2000-07-13 09:53:24 +00:00
|
|
|
${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-basic-mule-packages
|
2000-01-14 18:06:11 +00:00
|
|
|
.else
|
2000-07-13 09:53:24 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/xemacs/mule-packages/pkginfo/MANIFEST.skk:${PORTSDIR}/editors/xemacs-basic-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 \
|
2000-08-01 09:18:34 +00:00
|
|
|
intl.1:${PORTSDIR}/devel/gettext \
|
1998-05-26 15:00:22 +00:00
|
|
|
${LIB_INPUT_METHOD}
|
|
|
|
|
2000-10-24 10:53:40 +00:00
|
|
|
CONFIGURE_ARGS?=--with-x11 \
|
2000-09-07 08:01:29 +00:00
|
|
|
--with-xim=${WITH_XIM} \
|
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 \
|
2000-10-24 10:53:40 +00:00
|
|
|
--infopath=${LOCALBASE}/lib/xemacs/info:${LOCALBASE}/info:${X11BASE}/info:/usr/info:${LOCALBASE}/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 \
|
2000-09-23 19:27:31 +00:00
|
|
|
--with-database=berkdb \
|
1999-09-09 14:25:39 +00:00
|
|
|
${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-10-08 07:21:03 +00:00
|
|
|
PATCHDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}/files
|
|
|
|
PKGDIR?= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule
|
2000-01-06 01:46:39 +00:00
|
|
|
|
2000-04-20 19:39:00 +00:00
|
|
|
SLAVEDIRS= editors/xemacs21-mule-common editors/xemacs21-mule-sumo
|
|
|
|
|
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
|
2000-10-24 10:53:40 +00:00
|
|
|
SITE_INCLUDES+= ${LOCALBASE}/include
|
|
|
|
SITE_LIBRARIES+= ${LOCALBASE}/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-10-24 10:53:40 +00:00
|
|
|
WITH_XIM?= xlib
|
1999-11-27 03:14:31 +00:00
|
|
|
|
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")
|
2000-07-13 09:53:24 +00:00
|
|
|
# ${RM} -f ${WRKPLIST}
|
|
|
|
# if [ -f ${PLIST} ]; then ${MV} ${PLIST} ${PLIST}.org; fi
|
2000-08-01 09:18:34 +00:00
|
|
|
# ${MAKE} build
|
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
|
2000-07-13 09:53:24 +00:00
|
|
|
# ${RM} -f ${PLIST}.org
|
2000-02-18 23:21:40 +00:00
|
|
|
#.endif
|
2000-07-13 09:53:24 +00:00
|
|
|
#.if ${PKGNAMESUFFIX} == "-mule-common"
|
|
|
|
# ${RM} -f ${WRKPLIST}.tmp
|
|
|
|
# if [ -f ${PLIST} ]; then ${MV} ${PLIST} ${PLIST}.org; fi
|
|
|
|
# ${TOUCH} ${PLIST}
|
2000-08-01 09:18:34 +00:00
|
|
|
# ${MAKE} build
|
|
|
|
# ${MAKE} DIRRM2RMDIRS="lib/xemacs-${XEMACS_VER}" PLIST_EXCLS="etc/rc.d" \
|
2000-07-13 09:53:24 +00:00
|
|
|
# DIRRMDEPTH=1 plist
|
2000-02-18 23:21:40 +00:00
|
|
|
#.for dirp in site mule xemacs
|
|
|
|
#.for dir in etc info man pkginfo
|
2000-07-13 09:53:24 +00:00
|
|
|
# ${ECHO} "@exec mkdir -p %D/lib/xemacs/${dirp}-packages/${dir}" >> ${WRKPLIST}.tmp
|
|
|
|
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages/${dir} 2>/dev/null || true" >> ${WRKPLIST}.tmp
|
2000-02-18 23:21:40 +00:00
|
|
|
#.endfor
|
2000-07-13 09:53:24 +00:00
|
|
|
# ${ECHO} "@unexec rmdir %D/lib/xemacs/${dirp}-packages 2>/dev/null || true" >> ${WRKPLIST}.tmp
|
2000-02-18 23:21:40 +00:00
|
|
|
#.endfor
|
2000-07-13 09:53:24 +00:00
|
|
|
# ${ECHO} "@exec mkdir -p /var/run/emacs/lock ; chmod 1777 /var/run/emacs/lock" >> ${WRKPLIST}.tmp
|
|
|
|
# ${CAT} ${WRKPLIST} >> ${WRKPLIST}.tmp
|
|
|
|
# ${MV} ${WRKPLIST}.tmp ${WRKPLIST}
|
|
|
|
# ${CHOWN} kiri:staff ${WRKPLIST}
|
|
|
|
# if [ ! -s ${PLIST} ]; then \
|
|
|
|
# ${MV} ${WRKPLIST} ${PLIST}; \
|
|
|
|
# fi
|
|
|
|
# ${RM} -f ${PLIST}.org
|
2000-02-18 23:21:40 +00:00
|
|
|
#.endif
|
2000-08-01 09:18:34 +00:00
|
|
|
|
2000-07-13 09:53:24 +00:00
|
|
|
.if ${PKGNAMESUFFIX} != "-mule-common"
|
|
|
|
pre-plist:
|
|
|
|
@${ECHO} "===> pre-plist of ${PKGNAME}"
|
|
|
|
${MKDIR} ${PREFIX}/lib/xemacs/mule-packages/etc/app-defaults/ja
|
|
|
|
.endif
|
1999-12-08 12:39:56 +00:00
|
|
|
|
2000-04-20 19:39:00 +00:00
|
|
|
MASTERDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}
|
|
|
|
|
|
|
|
.include "${MASTERDIR}/Makefile"
|