aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/diclookup-emacs20/Makefile
blob: 1e0174441f5be5d2f477d3007633bed6cd0b9d48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# New ports collection makefile for:    diclookup-emacs20
# Date created:     31 Jan 1998
# Whom:         Mita Yoshio <mita@jp.FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   diclookup
PORTVERSION=    2.3.4b8
CATEGORIES= japanese elisp
MASTER_SITES=   ftp://ftp.math.s.chiba-u.ac.jp/tools/diclookup-mule/beta/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}
DISTNAME=   diclookup-mule-${PORTVERSION}

MAINTAINER= mita@FreeBSD.org
COMMENT=    CDROM dictionary client for emacs. (needs ndtpd or dserver package)

RUN_DEPENDS=    ${FONTSDIR}/a18rk.pcf.gz:${PORTSDIR}/x11-fonts/intlfonts

WRKSRC=     ${WRKDIR}/diclookup-mule-${PORTVERSION}
EMACS_PORT_NAME?=   emacs20
MAKE_ARGS+= LISPDIR="${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/diclookup"
FONTSDIR=   ${X11BASE}/lib/X11/fonts/local
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}

pre-install:
    ${MKDIR} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/diclookup

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    @${SED} s!PREFIX_DIR!${PREFIX}!g ${FILESDIR}/setup-diclookup.sh \
                > ${DOCSDIR}/setup-diclookup.sh
    @${SED} s!PREFIX_DIR!${PREFIX}!g ${FILESDIR}/deinstall-diclookup.sh \
                > ${DOCSDIR}/deinstall-diclookup.sh
    ${INSTALL_DATA} ${FILESDIR}/README.diclookup-setup.txt \
                ${DOCSDIR}/
    ${INSTALL_DATA} ${WRKSRC}/README \
                ${DOCSDIR}/README.diclookup-mule
    ${INSTALL_DATA} ${WRKSRC}/README.sirup \
                ${DOCSDIR}/
    ${INSTALL_DATA} ${WRKSRC}/lib/README \
            ${DOCSDIR}/README.diclookup-mule.lib
.endif

.include <bsd.port.mk>