# New ports collection makefile for: font-migmix # Date created: 21 July 2010 # Whom: hrs # # $FreeBSD$ # PORTNAME= font-migmix PORTVERSION= 1.0.20100626 CATEGORIES= japanese x11-fonts MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} MASTER_SITE_SUBDIR= mix-mplus-ipa/48024 DISTFILES= MigMix-1P-1M-20100626${EXTRACT_SUFX} \ MigMix-2P-2M-20100626${EXTRACT_SUFX} MAINTAINER= hrs@FreeBSD.org COMMENT= Mixed Japanese font with IPA Gothic and M-plus outline RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig USE_ZIP= yes NO_BUILD= yes PKGINSTALL= ${WRKDIR}/pkg-install PKGDEINSTALL= ${WRKDIR}/pkg-install SUB_FILES= pkg-install SUB_LIST= X_FONTSDIR=${PREFIX}/${X_FONTSDIR} PLIST_SUB= X_FONTSDIR=${X_FONTSDIR} \ LOCAL_FONTSDIR=${LOCAL_FONTSDIR} PORTDOCS= IPA_Font_License_Agreement_v1.0.txt Readme_IPAfont00302.txt \ README_E README_J LICENSE_E LICENSE_J README.txt LOCAL_FONTSDIR= share/fonts X_FONTSDIR= lib/X11/fonts do-install: cd ${WRKDIR}/MigMix-1P-1M-20100626/ && \ ${INSTALL_DATA} IPAfont00302/*.txt \ mplus-TESTFLIGHT-030/* \ README.txt \ ${WRKDIR} ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKDIR}/MigMix-1P-1M-20100626/*.ttf \ ${WRKDIR}/MigMix-2P-2M-20100626/*.ttf \ ${DATADIR} ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TTF ${LN} -s -f ${DATADIR}/MigMix*.ttf \ ${LOCALBASE}/${LOCAL_FONTSDIR}/TTF/ ${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/TTF ${LN} -s -f ${DATADIR}/MigMix*.ttf \ ${LOCALBASE}/${X_FONTSDIR}/TTF/ ${INSTALL_DATA} ${FILESDIR}/20-unhint-migmix.conf \ ${FILESDIR}/62-fonts-migmix.conf \ ${PREFIX}/etc/fonts/conf.avail ${LN} -s -f ../conf.avail/20-unhint-migmix.conf \ ${PREFIX}/etc/fonts/conf.d/20-unhint-migmix.conf ${LN} -s -f ../conf.avail/62-fonts-migmix.conf \ ${PREFIX}/etc/fonts/conf.d/62-fonts-migmix.conf .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} cd ${WRKDIR} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif post-install: ${LOCALBASE}/bin/fc-cache -s -f -v ${LOCALBASE}/${X_FONTSDIR}/TTF ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include