blob: da33e3ebe3de195392061b896245a8a979f0eb84 (
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
|
# New ports collection makefile for: bitmap-fonts
# Date created: 23 September 1998
# Whom: Shigeyuki FUKUSHIMA <shige@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bitmap-fonts
PORTVERSION= ${BITMAP_FONTS_VER}
CATEGORIES= x11-fonts elisp
MASTER_SITES= ftp://ftp.jpl.org/pub/elisp/bitmap/ \
ftp://ftp.jpl.org/pub/elisp/bitmap/snapshots/
DISTNAME= ${PORTNAME}-${BITMAP_FONTS_VER}
MAINTAINER= shige@FreeBSD.org
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11/XFree86
# distfile version
BITMAP_FONTS_VER= 1.0
BITMAP_FONTS_SIZE= 12 14 16 20 24
FONTSDIR= lib/X11/fonts/local
PKGINSTALL= ${WRKDIR}/INSTALL
PKGDEINSTALL= ${WRKDIR}/DEINSTALL
WRKSRC= ${WRKDIR}
USE_X_PREFIX= yes
PLIST_SUB= FONTSDIR=${FONTSDIR}
.include <bsd.port.pre.mk>
.if ${XFREE86_VERSION} == 4
RUN_DEPENDS= mkfontdir:${PORTSDIR}/x11/XFree86-4-clients
.endif
do-build:
@(cd ${WRKSRC}; \
for i in ${BITMAP_FONTS_SIZE} ; do \
bdftopcf bitmap$${i}.bdf > bitmap$${i}.pcf ; \
${GZIP_CMD} bitmap$${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=${X11BASE} \
${SH} ${PKGREQ} ${PKGNAME} INSTALL
do-install:
@(cd ${WRKSRC}; \
for i in ${BITMAP_FONTS_SIZE} ; do \
${INSTALL_DATA} bitmap$${i}.pcf.gz ${X11BASE}/${FONTSDIR} ; \
done ; \
)
post-install:
@${SETENV} PKG_PREFIX=${X11BASE} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|