freebsd-ports/editors/xemacs21-mule-common/Makefile
Satoshi Taoka a77a3c279b (1) {chinese,korean,japanese}/Wnn (Wnn 4.2) was updated as follows:
(a) Its name was changed from Wnn to FreeWnn because Wnn6 which is a
      commercial software exits
  (b) Its license was changed to GPL.
  (c) The method to configure was changed from imake to GNU configure.
  (d) Relatively to the original Wnn, the Wnn in the ports tree were
      modified by me a lot. Most of the modifications were adopted
      into FreeWnn.
  (c) Header and library files are installed into
      ${LOCALBASE}/{lib,include} instead of ${X11BASE}/{lib,include}.

(2) FreeWnn is divided into two ports FreeWnn-lib and FreeWnn-server
in chinese, korean and japanese categories. The former is for libwnn
and header files to compile client commands, and the files used in
client commands.  The latter is for a server to convert KANA to KANJI
(Chinese character), and dictionaries and files used by the server.
2000-09-08 04:34:56 +00:00

92 lines
3.1 KiB
Makefile

# New ports collection makefile for: files except executables for xemacs with mule
# Date created: 8 Dec 1999
# Whom: KIRIYAMA Kazuhiko<kiri@pis.toba-cmt.ac.jp>
#
# $FreeBSD$
#
# This is the COMMON port of XEmacs Mule slave
# ports(editors/xemacs${XEMACS_MAJOR_VER}-mule, japanese/xemacs${XEMACS_MAJOR_VER}-*)
# and provides `Architecture Independent' parts of xemacs binary.
#
# Caracteristic variables of XEmacs Mule ports family:
# MULE_PORT : Mule port if defined(means COMMN or SLAVE)
# MULE_COMMON : COMMON port if defined
# MULE_SLAVE : SLAVE port if defined
# 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
# WITH_XIM : X Input Method(configure arguments)
XEMACS_MAJOR_VER= 21
.for dir in \
editors/xemacs${XEMACS_MAJOR_VER}-mule \
japanese/xemacs${XEMACS_MAJOR_VER}-canna \
japanese/xemacs${XEMACS_MAJOR_VER}-canna+freewnn \
japanese/xemacs${XEMACS_MAJOR_VER}-canna+wnn6 \
japanese/xemacs${XEMACS_MAJOR_VER}-freewnn \
japanese/xemacs${XEMACS_MAJOR_VER}-wnn6
.if exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.install_done)
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.elif exists(${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work/.build_done)
WRKDIR= ${WRKDIRPREFIX}${.CURDIR}/../../${dir}/work
.endif
.endfor
.if !defined(WRKDIR)
.if defined(PACKAGE_BUILDING)
pre-build:
@cd ${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule; ${MAKE}
.else
BROKEN= You should build install one of the other xemacs ports first
.endif
.endif
CONFIGURE_ARGS= --with-x11 \
--with-mule \
--x-includes=${X11BASE}/include \
--x-libraries=${X11BASE}/lib
MAN1= ctags.1 etags.1 gnuattach.1 gnuclient.1 gnudoit.1 \
gnuserv.1 xemacs.1
PKGDIR= ${.CURDIR}/../../editors/xemacs${XEMACS_MAJOR_VER}-mule-common/pkg
INSTALL_TARGET= install-arch-indep
PLIST= ${PKGDIR}/PLIST
TMPPLIST= ${WRKDIR}/.PLIST.mktmp-${PKGNAME}
MULE_COMMON= yes
PKGNAMESUFFIX= -mule-common
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)
pre-build:
@${RM} -f ${WRKSRC}/lib-src/DOC* ${WRKSRC}/src/xemacs
pre-install:
.for dirp in site mule xemacs
.for dir in etc info man pkginfo
${MKDIR} ${PREFIX}/lib/xemacs/${dirp}-packages/${dir}
.endfor
.endfor
(cd ${PREFIX}/lib/xemacs; ${MKDIR} info etc site-lisp)
post-install::
@if [ -f ${PKGDIR}/INSTALL ]; then \
${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL; \
fi
@${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE}
## 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}
.include "${.CURDIR}/../xemacs${XEMACS_MAJOR_VER}-mule/Makefile"