# New ports collection makefile for: font-migmix # Date created: 21 July 2010 # Whom: hrs # # $FreeBSD$ # PORTNAME= font-migmix PORTVERSION= 1.0.20110514 CATEGORIES= japanese x11-fonts MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP} MASTER_SITE_SUBDIR= mix-mplus-ipa/51977 DISTFILES= MigMix-1M-20110514${EXTRACT_SUFX} \ MigMix-2M-20110514${EXTRACT_SUFX} \ MigMix-1P-20110514${EXTRACT_SUFX} \ MigMix-2P-20110514${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_ipag00303.txt \ README_E README_J LICENSE_E LICENSE_J MigMix-README.txt LOCAL_FONTSDIR= share/fonts X_FONTSDIR= lib/X11/fonts do-install: cd ${WRKDIR}/MigMix-1M-20110514/ && \ ${INSTALL_DATA} ipag00303/*.txt \ mplus-TESTFLIGHT-039/* \ MigMix-README.txt \ ${WRKDIR} ${MKDIR} ${DATADIR} ${INSTALL_DATA} \ ${WRKDIR}/MigMix-1M-20110514/*.ttf \ ${WRKDIR}/MigMix-2M-20110514/*.ttf \ ${WRKDIR}/MigMix-1P-20110514/*.ttf \ ${WRKDIR}/MigMix-2P-20110514/*.ttf \ ${DATADIR} ${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/TTF ${LN} -s -f ${DATADIR}/MigMix*.ttf \ ${PREFIX}/${LOCAL_FONTSDIR}/TTF/ ${MKDIR} ${PREFIX}/${X_FONTSDIR}/TTF ${LN} -s -f ${DATADIR}/MigMix*.ttf \ ${PREFIX}/${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 ${PREFIX}/${X_FONTSDIR}/TTF ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include