summaryrefslogtreecommitdiff
path: root/korean/baekmukfonts-ttf/Makefile
blob: fd58524548d3852752e32b966f4dea6134f6cfe8 (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
# New ports collection makefile for:	Baekmuk Korean TrueType fonts
# Date created:		17 Jan 2000
# Whom:			CHOI Junho <cjh@kr.freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	baekmukfonts
PORTVERSION=	2.0
CATEGORIES=	korean
MASTER_SITES=	ftp://ftp.mizi.com/pub/baekmuk/
PKGNAMESUFFIX=	-ttf
DISTNAME=	baekmuk${PKGNAMESUFFIX}-${PORTVERSION}

MAINTAINER=	cjh@kr.freebsd.org

USE_X_PREFIX=	yes
NO_BUILD=	yes
NO_WRKSUBDIR=	yes
FONTDIR=	${PREFIX}/lib/X11/fonts/TrueType
FONTLIST=	batang gulim dotum hline

.include <bsd.port.pre.mk>

do-install:
.if !exists(${FONTDIR})
	@${ECHO} "*********************************************************"
	@${ECHO} "If you want to use these fonts from X, install"
	@${ECHO} "one of X-TT servers(x11-servers/Xtt*) and add ${FONTDIR}"
	@${ECHO} "to your font path in /etc/XF86Config."
	@${ECHO} "If you want to use these fonts from ghostscript,"
	@${ECHO} "install korean/ftghostscript5 and edit"
	@${ECHO} "${LOCALBASE}/share/ghostscript/5.10ft/hangul/hconfig.ps"
	@${ECHO} "See examples in ${FONTDIR}"
	@${ECHO} "*********************************************************"
	${MKDIR} ${FONTDIR}
.endif
.for FONTNAME in ${FONTLIST}
	${INSTALL_DATA} ${WRKSRC}/${FONTNAME}.ttf ${FONTDIR}
.endfor
	${INSTALL_DATA} ${FILESDIR}/fonts.dir ${FONTDIR}/fonts.dir.baekmuk
	${INSTALL_DATA} ${FILESDIR}/fonts.alias ${FONTDIR}/fonts.alias.baekmuk
	${INSTALL_DATA} ${FILESDIR}/hconfig.ps ${FONTDIR}/hconfig.ps.baekmuk
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>