aboutsummaryrefslogtreecommitdiffstats
path: root/editors/bitmap-mule/Makefile
blob: 7d3efe59e7a0be3f1b0b5e0c4403325c20afa779 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# New ports collection makefile for:    bitmap for mule
# Date created:     23 September 1998
# Whom:         Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   bitmap-${EMACS_PORT}
PORTVERSION=    ${BITMAP_PKG_VER}
CATEGORIES= editors elisp
MASTER_SITES=   ftp://ftp.jpl.org/pub/elisp/bitmap/
DISTNAME=   bitmap-mule-${BITMAP_VER}

MAINTAINER= shige@FreeBSD.org

# distfile version
BITMAP_VER=     8.2
BITMAP_PKG_VER=     ${BITMAP_VER}
BITMAPDOCDIR=   share/doc/bitmap
BITMAP_SETUPEL= bitmap-setupel.el
BITMAP_FONT=    ${X11BASE}/lib/X11/fonts/local/etl8x16-bitmap.pcf.gz

# mule-19.34
EMACS_NAME= mule
EMACS_PORT= mule
EMACS_VER=  19.34
EMACS_LIBDIR=       share/${EMACS_NAME}
EMACS_LIBDIR_WITH_VER=  ${EMACS_LIBDIR}/${EMACS_VER}

# target name for make build
ALL_TARGET?=    elc

EMACS_CMD=  ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
BUILD_DEPENDS=  ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT} \
        uncompface:${PORTSDIR}/mail/faces
RUN_DEPENDS=    ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common \
        ${BITMAP_FONT}:${PORTSDIR}/x11-fonts/bitmap-font
SCRIPTS_ENV=    EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
        EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
        TARGETS=${BITMAP_SETUPEL}
PLIST_SUB=  EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
        EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
        BITMAP_SETUPEL=${BITMAP_SETUPEL} \
        BITMAPDOCDIR=${BITMAPDOCDIR}
MAKE_FLAGS= EMACS=${EMACS_CMD}

# depends on apel
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}
RUN_DEPENDS+=   ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT}

pre-configure:
    @${CP} ${FILESDIR}/${BITMAP_SETUPEL}.in ${WRKDIR}

post-install:
    @${INSTALL_DATA} ${WRKDIR}/${BITMAP_SETUPEL} \
        ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/${BITMAPDOCDIR}
    @(cd ${WRKSRC} ; \
    for i in ChangeLog NEWS README.* ; do \
        ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/${BITMAPDOCDIR}/ ; \
    done)
.endif

.include <bsd.port.mk>