1999-09-21 13:34:46 +00:00
|
|
|
# New ports collection makefile for: skk10-elisp-emacs20
|
2000-01-19 13:43:38 +00:00
|
|
|
# Version required: 10.57
|
1999-09-21 13:34:46 +00:00
|
|
|
# Date created: 21 September 1999
|
|
|
|
# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= skk${SKK10_VER}
|
|
|
|
PKGNAME= ja-skk-elisp-${EMACS_PORT_NAME}-${SKK10_VER}
|
|
|
|
CATEGORIES= japanese elisp
|
2000-01-19 13:43:38 +00:00
|
|
|
MASTER_SITES= http://openlab.ring.gr.jp/skk/
|
1999-09-21 13:34:46 +00:00
|
|
|
|
|
|
|
MAINTAINER?= shige@FreeBSD.org
|
|
|
|
|
2000-01-19 13:43:38 +00:00
|
|
|
SKK10_VER= 10.57
|
1999-09-21 13:34:46 +00:00
|
|
|
|
|
|
|
# This port is a master port.
|
|
|
|
PORT_CLASS?= master
|
|
|
|
|
|
|
|
.if (${PORT_CLASS} == "master")
|
|
|
|
# emacsen-port-name
|
|
|
|
EMACS_PORT_NAME= emacs20
|
|
|
|
# emacsen-information
|
|
|
|
EMACS_NAME= emacs
|
2000-01-04 11:38:43 +00:00
|
|
|
EMACS_VER= 20.5
|
1999-09-21 13:34:46 +00:00
|
|
|
EMACS_CMD= ${LOCALBASE}/bin/${EMACS_NAME}-${EMACS_VER}
|
|
|
|
EMACS_LIBDIR= share/${EMACS_NAME}
|
|
|
|
EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}/${EMACS_VER}
|
|
|
|
# Whether emacs requires *-setupel.el
|
|
|
|
REQUIRE_SETUPEL= NO
|
|
|
|
# Whether emacs port has *-common port
|
|
|
|
HAVE_COMMON_PORT= NO
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# dependency: skk-jisyo
|
2000-01-19 13:43:38 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${SKKJISYODIR}/${SKKJISYO}:${SKK_MASTERDIR}
|
1999-09-21 13:34:46 +00:00
|
|
|
# dependency: apel
|
1999-10-16 10:19:08 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
|
1999-09-21 13:34:46 +00:00
|
|
|
# dependency: emacsen
|
1999-10-16 10:19:08 +00:00
|
|
|
BUILD_DEPENDS+= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
|
1999-09-21 13:34:46 +00:00
|
|
|
.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
|
1999-10-16 10:19:08 +00:00
|
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}-common
|
1999-09-21 13:34:46 +00:00
|
|
|
.else
|
1999-10-16 10:19:08 +00:00
|
|
|
RUN_DEPENDS+= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME}
|
1999-09-21 13:34:46 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/skk-${SKK10_VER}
|
|
|
|
ALL_TARGET?= elc
|
|
|
|
MAKE_ARGS= EMACS=${EMACS_CMD}
|
2000-01-19 13:43:38 +00:00
|
|
|
PLIST_SUB= EMACS=${EMACS_CMD} EMACS_LIBDIR=${EMACS_LIBDIR} \
|
|
|
|
SKK_JISYODIR=${SKKJISYODIR} SKK_DOCDIR=${SKK_DOCDIR} \
|
|
|
|
SKK_STARTUPEL=${SKK_STARTUPEL}
|
1999-09-21 13:34:46 +00:00
|
|
|
|
|
|
|
# information of skk-jisyo
|
2000-01-19 13:43:38 +00:00
|
|
|
SKKJISYODIR= share/skk
|
|
|
|
SKK_DOCDIR= share/doc/skk10
|
1999-09-21 13:34:46 +00:00
|
|
|
SKKJISYO_SIZE?= L
|
|
|
|
SKKJISYO?= SKK-JISYO.${SKKJISYO_SIZE}
|
1999-10-16 10:19:08 +00:00
|
|
|
SKK_MASTERDIR= ${PORTSDIR}/japanese/skk-jisyo
|
2000-01-19 13:43:38 +00:00
|
|
|
SKK_STARTUPEL= skk-startup.el
|
|
|
|
|
|
|
|
EXPERIMENTAL_LISPS= experimental/skk-abbrev.el \
|
|
|
|
experimental/dbm/skk-dbm.el \
|
|
|
|
experimental/skk-dcomp.el \
|
|
|
|
experimental/skk-hankaku-mode.el \
|
|
|
|
experimental/skk-jisx0201.el \
|
|
|
|
experimental/skk-lookup.el \
|
|
|
|
experimental/tut-code/skk-def.el \
|
|
|
|
experimental/tut-code/skk-tutcdef.el \
|
|
|
|
experimental/tut-code/skk-tutcode.el
|
|
|
|
|
|
|
|
# install experimantal lisps [handy optional]
|
|
|
|
#pre-build:
|
|
|
|
# @(cd ${WRKSRC} ; \
|
|
|
|
# ${LN} experimental/skk-abbrev.el . ; \
|
|
|
|
# ${LN} experimental/skk-dcomp.el . ; \
|
|
|
|
# ${LN} experimental/skk-hankaku-mode.el . ; \
|
|
|
|
# ${LN} experimental/skk-jisx0201.el . ; \
|
|
|
|
# ${LN} experimental/skk-lookup.el . ; \
|
|
|
|
# ${LN} experimental/skk-study.el . ; \
|
|
|
|
# )
|
1999-09-21 13:34:46 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-01-19 13:43:38 +00:00
|
|
|
@${MAKE} startup-install
|
|
|
|
@${MKDIR} ${PREFIX}/${SKK_DOCDIR}
|
|
|
|
@(cd ${WRKSRC} ;\
|
|
|
|
for i in ${EXPERIMENTAL_LISPS} ; do \
|
|
|
|
${INSTALL_DATA} $${i} ${PREFIX}/${SKK_DOCDIR} ;\
|
|
|
|
done ;\
|
|
|
|
)
|
1999-09-21 13:34:46 +00:00
|
|
|
@install-info ${PREFIX}/info/skk.info ${PREFIX}/info/dir
|
2000-01-19 13:43:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/READMEs/* ${PREFIX}/${SKK_DOCDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/experimental/GUIDELINE \
|
|
|
|
${PREFIX}/${SKK_DOCDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/experimental/dbm/README.dbm \
|
|
|
|
${PREFIX}/${SKK_DOCDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
startup-install:
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/${SKK_STARTUPEL} \
|
|
|
|
${PREFIX}/${EMACS_LIBDIR}/site-lisp/skk
|
1999-09-21 13:34:46 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|