aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/lookup/Makefile
blob: 1563f713169251c91bfa1fa04843597b71e043fc (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
47
48
49
# New ports collection makefile for:    lookup for Mule 2.3
# Date created:     98/11/19
# Whom:         Satoshi Taoka <taoka@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   lookup
PORTVERSION=    1.4.1
PORTREVISION=   6
CATEGORIES= japanese elisp
MASTER_SITES=   http://openlab.ring.gr.jp/edict/lookup/dist/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Search interface on ${EMACS_PORT_NAME} for CD-ROM books, etc

USE_EMACS=  yes

INFO?=      lookup lookup-guide

.include <bsd.port.pre.mk>

.if (${EMACS_PORT_NAME} == "xemacs21-mule")
EMACSDIR=   ${PREFIX}/lib/xemacs/site-packages
ELISPDIR=   ${EMACSDIR}/lisp/lookup
PORTINFODIR=    ${EMACSDIR}/info
MANIFEST=   MANIFEST.lookup
.else
ELISPDIR=   ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/lookup
PORTINFODIR=    ${PREFIX}/info
PLIST_SUB=  ELISPDIR=${EMACS_VERSION_SITE_LISPDIR}
.endif
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
        --with-lispdir=${ELISPDIR}

post-install:
.if (${EMACS_PORT_NAME} == "xemacs21-mule")
    ${RM} -f ${WRKDIR}/${MANIFEST}
    emacsdir=`${ECHO_CMD} ${EMACSDIR} | ${SED} -e "s;^${PREFIX}/;;"`; \
    ${CAT} ${PLIST} | ${GREP} -e "^$${emacsdir}" | \
        ${SED} -e "s;^$${emacsdir}/;;" > ${WRKDIR}/${MANIFEST}
    ${MKDIR} ${EMACSDIR}/pkginfo
    ${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
        ${EMACSDIR}/pkginfo/
.endif

.include <bsd.port.post.mk>