# New ports collection makefile for: epson-ttfonts # Date created: 20 Feb 2005 # Whom: NAKATA, Maho # # $FreeBSD$ PORTNAME= epson-ttfonts PORTVERSION= 3.0.20050220 PORTREVISION= 1 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." NO_CDROM= Redistribution not permitted in any form NO_PACKAGE= Redistribution not permitted in any form 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 .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