1998-05-26 15:02:10 +00:00
|
|
|
# New ports collection makefile for: files except executables for xemacs with mule
|
2000-01-06 01:46:39 +00:00
|
|
|
# Date created: 8 Dec 1999
|
|
|
|
# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
|
1998-05-26 15:02:10 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1998-05-26 15:02:10 +00:00
|
|
|
#
|
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
# This is the COMMON port of XEmacs Mule slave
|
|
|
|
# ports(editors/xemacs${XEMACS_MAJOR_VER}-mule, japanese/xemacs${XEMACS_MAJOR_VER}-*)
|
2000-04-20 19:39:00 +00:00
|
|
|
# and provides `Architecture Independent' 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
|
|
|
|
# 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
|
1998-12-26 03:47:19 +00:00
|
|
|
|
2000-01-07 16:17:07 +00:00
|
|
|
XEMACS_MAJOR_VER= 21
|
2000-01-06 01:46:39 +00:00
|
|
|
|
1998-05-26 15:02:10 +00:00
|
|
|
.for dir in \
|
2000-01-06 01:46:39 +00:00
|
|
|
editors/xemacs${XEMACS_MAJOR_VER}-mule \
|
|
|
|
japanese/xemacs${XEMACS_MAJOR_VER}-canna \
|
|
|
|
japanese/xemacs${XEMACS_MAJOR_VER}-canna+wnn4 \
|
|
|
|
japanese/xemacs${XEMACS_MAJOR_VER}-canna+wnn6 \
|
|
|
|
japanese/xemacs${XEMACS_MAJOR_VER}-wnn4 \
|
|
|
|
japanese/xemacs${XEMACS_MAJOR_VER}-wnn6
|
1999-01-18 03:05:30 +00:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.install_done)
|
1999-11-27 03:14:31 +00:00
|
|
|
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
|
1999-01-18 03:05:30 +00:00
|
|
|
.elif exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.build_done)
|
1999-11-27 03:14:31 +00:00
|
|
|
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
|
1998-05-26 15:02:10 +00:00
|
|
|
.endif
|
|
|
|
.endfor
|
1998-12-02 08:01:14 +00:00
|
|
|
.if !defined(WRKDIR)
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
pre-build:
|
2000-01-06 01:46:39 +00:00
|
|
|
@cd ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule; ${MAKE}
|
1998-12-02 08:01:14 +00:00
|
|
|
.else
|
1998-05-26 15:02:10 +00:00
|
|
|
BROKEN= You should build install one of the other xemacs ports first
|
|
|
|
.endif
|
1998-12-02 08:01:14 +00:00
|
|
|
.endif
|
1998-05-26 15:02:10 +00:00
|
|
|
|
1999-11-27 03:14:31 +00:00
|
|
|
CONFIGURE_ARGS= --with-x11 \
|
1998-10-10 15:28:21 +00:00
|
|
|
--with-mule \
|
|
|
|
--x-includes=${X11BASE}/include \
|
|
|
|
--x-libraries=${X11BASE}/lib
|
1998-05-26 15:02:10 +00:00
|
|
|
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
|
|
|
|
gnuserv.1 xemacs.1
|
|
|
|
INSTALL_TARGET= install-arch-indep
|
1999-11-27 03:14:31 +00:00
|
|
|
PLIST= ${PKGDIR}/PLIST
|
2000-01-06 01:46:39 +00:00
|
|
|
PLIST_SUB= XEMACS_VER=${XEMACS_VER}
|
1999-11-27 03:14:31 +00:00
|
|
|
TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
|
1998-05-26 15:02:10 +00:00
|
|
|
|
2000-01-06 01:46:39 +00:00
|
|
|
MULE_COMMON= yes
|
2000-04-13 06:50:45 +00:00
|
|
|
PKGNAMESUFFIX= -mule-common
|
2000-01-06 01:46:39 +00:00
|
|
|
DESCR_TMPL= ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule-common/files/DESCR.tmpl
|
|
|
|
INSTALL_TMPL= ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule-common/files/INSTALL.tmpl
|
|
|
|
COMMENT_TEXT= XEmacs(version ${XEMACS_MAJOR_VER}) with mule, lisp files, info pages, etc (except executables)
|
1998-10-10 15:28:21 +00:00
|
|
|
|
1998-05-26 15:02:10 +00:00
|
|
|
pre-build:
|
1999-11-27 03:14:31 +00:00
|
|
|
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
|
1998-05-26 15:02:10 +00:00
|
|
|
|
|
|
|
pre-install:
|
1999-11-27 03:14:31 +00:00
|
|
|
.for dirp in site mule xemacs
|
|
|
|
.for dir in etc info man pkginfo
|
2000-01-06 01:46:39 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/xemacs/${dirp}-packages/${dir}
|
1999-11-27 03:14:31 +00:00
|
|
|
.endfor
|
|
|
|
.endfor
|
2000-01-06 01:46:39 +00:00
|
|
|
(cd ${PREFIX}/lib/xemacs; ${MKDIR} info etc site-lisp)
|
|
|
|
if [ ! -f ${PREFIX}/lib/xemacs/info/dir ]; then \
|
1998-05-26 15:02:10 +00:00
|
|
|
${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/lib/xemacs/info/dir; \
|
|
|
|
fi
|
|
|
|
|
1999-11-27 03:14:31 +00:00
|
|
|
post-install::
|
|
|
|
@if [ -f ${PKGDIR}/INSTALL ]; then \
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} \
|
|
|
|
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
|
|
|
|
fi
|
1998-05-26 15:02:10 +00:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
|
|
|
|
|
2000-02-18 23:21:40 +00:00
|
|
|
## for make DESCR and COMMENT (only maintainer use)
|
|
|
|
#pre-arrange::
|
|
|
|
# ${SED} -e "s/%%XEMACS_VER%%/${XEMACS_VER}/g" \
|
|
|
|
# -e "s/%%XEMACS_REL%%/${XEMACS_REL}/g" \
|
|
|
|
# ${INSTALL_TMPL} > ${PKGINSTALL}
|
|
|
|
# ${CHOWN} kiri:staff ${PKGINSTALL}
|
2000-01-06 01:46:39 +00:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule/Makefile"
|