mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# Created by: OKAZAKI Tetsurou
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mule-ucs
|
|
PORTVERSION= 0.85.r3
|
|
PORTREVISION= 5
|
|
CATEGORIES= converters elisp
|
|
MASTER_SITES= ${MASTER_SITE_M17N}
|
|
MASTER_SITE_SUBDIR= mule/Mule-UCS/test
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
DISTNAME= Mule-UCS-current
|
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
|
COMMENT?= Universal encoding system for GNU Emacs 21
|
|
|
|
MASTER_SITE_M17N+= \
|
|
ftp://ftp.m17n.org/pub/%SUBDIR%/ \
|
|
ftp://ftp.kddlabs.co.jp/Japan/m17n.org/%SUBDIR%/
|
|
|
|
# This is a master port.
|
|
PORTCLASS?= master
|
|
|
|
.if (${PORTCLASS} == "master")
|
|
USE_EMACS= yes
|
|
EMACS_PORT_NAME?= emacs21
|
|
.endif
|
|
|
|
MULEUCS_DESTDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mule-ucs
|
|
EMACS_ARGS= -q --no-site-file -batch
|
|
|
|
NO_STAGE= yes
|
|
do-build:
|
|
cd ${WRKSRC}/lisp/big5conv && \
|
|
${EMACS_CMD} ${EMACS_ARGS} -l big5-comp.el
|
|
cd ${WRKSRC}/lisp/jisx0213 && \
|
|
${EMACS_CMD} ${EMACS_ARGS} -l x0213-comp.el
|
|
cd ${WRKSRC} && \
|
|
${EMACS_CMD} ${EMACS_ARGS} -l mucs-comp.el
|
|
|
|
do-install:
|
|
@${MKDIR} ${MULEUCS_DESTDIR}
|
|
cd ${WRKSRC}/lisp; \
|
|
for dir in . big5conv jisx0213 ; do \
|
|
${MKDIR} ${MULEUCS_DESTDIR}/$${dir} ; \
|
|
${INSTALL_DATA} $${dir}/*.el ${MULEUCS_DESTDIR}/$${dir} ; \
|
|
${INSTALL_DATA} $${dir}/*.elc ${MULEUCS_DESTDIR}/$${dir} ; \
|
|
done
|
|
${MKDIR} ${MULEUCS_DESTDIR}/reldata
|
|
cd ${WRKSRC}/lisp; \
|
|
${INSTALL_DATA} reldata/*.el ${MULEUCS_DESTDIR}/reldata
|
|
@${RM} ${MULEUCS_DESTDIR}/big5conv/big5-comp.el
|
|
@${RM} ${MULEUCS_DESTDIR}/jisx0213/x0213-comp.el
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/lisp; \
|
|
for i in ChangeLog MuleUni.txt README* ; do \
|
|
${INSTALL_DATA} $${i} ${DOCSDIR} ; \
|
|
done
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/big5conv/README \
|
|
${DOCSDIR}/README.big5conv
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/jisx0213/ChangeLog \
|
|
${DOCSDIR}/ChangeLog.jisx0213
|
|
${INSTALL_DATA} ${WRKSRC}/lisp/jisx0213/readme.txt \
|
|
${DOCSDIR}/README.jisx0213
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|