aboutsummaryrefslogtreecommitdiffstats
path: root/korean/hanyangfonts/Makefile
blob: 6040a429c91d38076a15c17537cb2d84214fb7a2 (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
# Created by: Junho CHOI <junho.choi@gmail.com>
# $FreeBSD$

PORTNAME=   hanyangfonts
PORTVERSION=    1.0
PORTREVISION=   3
CATEGORIES= korean x11-fonts
MASTER_SITES=   http://ftp.kaist.ac.kr/hangul/fonts/ \
        ftp://ftp.kaist.ac.kr/hangul/fonts/ \
        ftp://ftp.kr.FreeBSD.org/pub/FreeBSD-kr/distfiles/
DISTNAME=   hanyang-font-pcf

MAINTAINER= ports@FreeBSD.org
COMMENT=    Hanyang Hangul fonts for X11

RUN_DEPENDS=    bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
        mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
        mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale

SUB_FILES=  pkg-message

NO_WRKSUBDIR=   yes

FONTS=      hgm10 hgm12 hgm14 hgm16 hgm18 hgm20 \
        hmm10 hmm12 hmm14 hmm16 hmm18 hmm20

NO_STAGE=   yes
do-build:
    @cd ${WRKSRC}; \
    for fn in ${FONTS}; do \
        ${GZIP_CMD} $$fn.pcf; \
        ${ECHO} $$fn "compressed"; \
    done; \

do-install:
    -${MKDIR} ${PREFIX}/lib/X11/fonts/local
    @cd ${WRKSRC}; \
    for f in ${FONTS}; do \
        ${INSTALL_DATA} "$$f".pcf.gz ${PREFIX}/lib/X11/fonts/local; \
    done; \
    mkfontdir ${PREFIX}/lib/X11/fonts/local

.include <bsd.port.mk>