blob: d71b560ffe8f612ad24834c08bc818b6d02b9d80 (
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
|
# New ports collection makefile for: epson-ttfonts
# Date created: 20 Feb 2005
# Whom: NAKATA, Maho <maho@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= epson-ttfonts
PORTVERSION= 3.0.20050220
PORTREVISION= 2
CATEGORIES= japanese x11-fonts
MASTER_SITES= # empty
DISTNAME= ${EPSONFONTS}
EXTRACT_SUFX= .exe
DIST_SUBDIR= epson
MAINTAINER= hrs@FreeBSD.org
COMMENT= EPSON TrueTypeFontVer.3.0
RESTRICTED= "Redistribution not permitted; only usable with EPSON printer."
EPSONFONTS= ttf30
USE_X_PREFIX= yes
USE_ZIP= yes
NO_BUILD= yes
FONTSDIR= lib/X11/fonts/TrueType
MAKE_ENV= FONTSDIR=${FONTSDIR}
PLIST_SUB= FONTSDIR=${FONTSDIR}
LEGAL_SUB= DISTDIR=${DISTDIR} \
DIST_SUBDIR=${DIST_SUBDIR} \
DIST_FILE=${DISTNAME}${EXTRACT_SUFX}
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
ECHO_MSG= ${PRINTF}
IGNORE!= ${SED} ${LEGAL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
-e s,$$,\\\\n, < ${FILESDIR}/legal.txt
.endif
do-extract:
@${MKDIR} ${WRKDIR}
@cd ${WRKDIR} ; \
${CAT} ${DISTDIR}/${DIST_SUBDIR}/${EPSONFONTS}.exe | ${TAIL} -c 16591797 >FILE ;\
${UNZIP_CMD} FILE ; ${RM} FILE
do-install:
.if !exists(${PREFIX}/${FONTSDIR})
@${ECHO} "*********************************************************"
@${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
@${ECHO} "and load 'freetype' module in /etc/x11/xorg.conf."
@${ECHO} "*********************************************************"
${MKDIR} ${PREFIX}/${FONTSDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/*.ttf \
${FILESDIR}/fonts.alias.epson \
${FILESDIR}/fonts.dir.epson \
${PREFIX}/${FONTSDIR}
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>
|