aboutsummaryrefslogtreecommitdiff
path: root/japanese/vlgothic/Makefile
blob: 84fd487476850a7d5b4c069a160a4ed98a660d1a (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
# New ports collection makefile for:	VLGothic fotns
# Date created:		31 Oct 2006
# Whom:			NIIMI Satoshi <sa2c@sa2c.net>
#
# $FreeBSD$
#

PORTNAME=	vlgothic
PORTVERSION=	20070328
PORTREVISION=	1
CATEGORIES=	japanese x11-fonts
MASTER_SITES=	http://vinelinux.org/~daisuke/vlgothic/ \
		http://dicey.org/vlgothic/
DISTNAME=	VLGothic-${PORTVERSION}

MAINTAINER=	sa2c@sa2c.net
COMMENT=	Free Japanese TrueType fonts named 'VLGothic'

BUILD_DEPENDS=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig
RUN_DEPENDS=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig

USE_X_PREFIX=	yes
USE_BZIP2=	yes
NO_BUILD=	yes

FONTSDIR=	lib/X11/fonts/vlgothic
PLIST_SUB=	FONTSDIR=${FONTSDIR}

WRKSRC=		${WRKDIR}/VLGothic

DOC_FILES=	Changelog LICENSE LICENSE.en LICENSE_E.mplus LICENSE_J.mplus \
		README README.sazanami README_J.mplus

do-install:
	${MKDIR} ${PREFIX}/${FONTSDIR}
	${INSTALL_DATA}	${WRKSRC}/VL-PGothic-Regular.ttf \
			${WRKSRC}/VL-Gothic-Regular.ttf \
			${PREFIX}/${FONTSDIR}
	${MKDIR} ${PREFIX}/etc/fonts/conf.d
	${INSTALL_DATA} ${FILESDIR}/63-vlgothic.conf \
			${PREFIX}/etc/fonts/conf.d
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA}	${DOC_FILES:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

post-install:
	${X11BASE}/bin/fc-cache -f -v ${PREFIX}/${FONTSDIR}

.include <bsd.port.mk>