aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/bitmap-fonts/Makefile
blob: 230ab1b855d02771423d0d8c8c81e2a348e6ccb4 (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
# New ports collection makefile for:    bitmap-font
# Version required: 8.1
# Date created:     23 September 1998
# Whom:         Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
#
# $FreeBSD$
#

DISTNAME=   bitmap-mule-${BITMAP_VER}
PKGNAME=    bitmap-font-${BITMAP_VER}
CATEGORIES= x11-fonts elisp
MASTER_SITES=   ftp://ftp.jpl.org/pub/elisp/bitmap/

MAINTAINER= shige@FreeBSD.org

# distfile version
BITMAP_VER= 8.1
BITMAP_FONT=    etl6x12-bitmap etl7x14-bitmap etl8x16-bitmap etl12x24-bitmap
FONTSDIR=   lib/X11/fonts/local
PKGINSTALL=     ${WRKDIR}/INSTALL
PKGDEINSTALL=   ${WRKDIR}/DEINSTALL

USE_X_PREFIX=   yes

BUILD_DEPENDS=  bdftopcf:${PORTSDIR}/x11/XFree86

PLIST_SUB=  FONTSDIR=${FONTSDIR}

do-build:
    @(cd ${WRKSRC}/font; \
        for i in ${BITMAP_FONT} ; do \
            bdftopcf $${i}.bdf > $${i}.pcf ; \
            ${GZIP_CMD} $${i}.pcf ; \
        done ; \
    )
    @for file in INSTALL DEINSTALL; do \
        ${SED} -e 's,%%FONTSDIR%%,${FONTSDIR},g' \
            < ${FILESDIR}/$${file}.tmpl > ${WRKDIR}/$${file}; \
    done


pre-install:
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${PKGDIR}/REQ ${PKGNAME} INSTALL

do-install:
    @(cd ${WRKSRC}/font; \
        for i in ${BITMAP_FONT} ; do \
            ${INSTALL_DATA} $${i}.pcf.gz ${PREFIX}/${FONTSDIR} ; \
        done ; \
    )

post-install:
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>