summaryrefslogtreecommitdiffstats
path: root/korean/mizifont/Makefile
blob: 962c7c72ad0899fbf1700307930c51ee42f349d7 (plain)
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
# New ports collection makefile for:	mizifonts
# Version required:	1.1
# Date created:		16 Mar 1998
# Whom:			CHOI Junho <cjh@kr.freebsd.org>
#
# $Id: Makefile,v 1.9 1999/07/22 04:39:55 cpiazza Exp $
#

DISTNAME=	xfntmizi-1.1-2.noarch
PKGNAME=	ko-mizifonts-1.1
CATEGORIES=	korean x11-fonts
MASTER_SITES=	http://www.mizi.co.kr/packages/hanIM/
EXTRACT_SUFX=	.rpm

MAINTAINER=	cjh@kr.freebsd.org

BUILD_DEPENDS=	rpm2cpio:${PORTSDIR}/misc/rpm

NO_CDROM=	"Not a free software, but redistributable on FreeBSD mirrors"

USE_X_PREFIX=	yes
NO_WRKSUBDIR=	yes

RPM2CPIO=	rpm2cpio
CPIO=		/usr/bin/cpio
CPIO_OPT=	-i --make-directories
UNCOMPRESS=	/usr/bin/uncompress
FONTS=		mzgt16e.pcf mzgt16h.pcf mzgt16h1.pcf mzmj16e.pcf mzmj16h.pcf \
		mzpg16e.pcf mzpg16h.pcf mzsm16e.pcf  mzsm16h.pcf

do-extract:
	@${RM} -rf ${WRKDIR} && \
	${MKDIR} ${WRKDIR} && \
	cd ${WRKDIR} && \
	${RPM2CPIO} ${_DISTDIR}/${DISTFILES} | ${CPIO} ${CPIO_OPT} && \
	${MV} ${WRKDIR}/usr/lib/X11/fonts/misc/* .

do-build:
	@cd ${WRKDIR}; \
	for i in ${FONTS}; do \
		${UNCOMPRESS} -c $$i.Z | ${GZIP_CMD} -c > $$i.gz; \
	done

do-install:
	@${MKDIR} ${PREFIX}/lib/X11/fonts/local
	for i in ${WRKDIR}/*.gz; do \
		${INSTALL_DATA} $$i ${PREFIX}/lib/X11/fonts/local/; \
	done
	cd ${PREFIX}/lib/X11/fonts/local/ ; mkfontdir

post-install:
	@${CAT} ${PKGDIR}/MESSAGE

.include <bsd.port.mk>
OpenPOWER on IntegriCloud