mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
# 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>
|