1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/japanese/font-ipa/Makefile

63 lines
1.7 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: font-ipa
# Date created: 26 April 2009
# Whom: hrs
# $FreeBSD$
#
PORTNAME= font-ipa
PORTVERSION= 00301
PORTREVISION= 2
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://info.openlab.ipa.go.jp/ipafont/fontdata/
DISTNAME= IPAfont${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
2009-05-31 13:50:24 +00:00
COMMENT= IPA Japanese fonts
RUN_DEPENDS= fc-cache:${PORTSDIR}/x11-fonts/fontconfig
CONFLICTS= ja-ipa-ttfonts-[0-9]*
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${PORTVERSION}.txt
LOCAL_FONTSDIR= share/fonts
X_FONTSDIR= lib/X11/fonts
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.otf ${DATADIR}
${MKDIR} ${PREFIX}/${LOCAL_FONTSDIR}/OTF
${LN} -s -f \
${DATADIR}/ipa*.otf \
${LOCALBASE}/${LOCAL_FONTSDIR}/OTF/
${MKDIR} ${LOCALBASE}/${X_FONTSDIR}/OTF
${LN} -s -f \
${DATADIR}/ipa*.otf \
${LOCALBASE}/${X_FONTSDIR}/OTF/
${INSTALL_DATA} ${FILESDIR}/20-unhint-ipa.conf \
${FILESDIR}/62-fonts-ipa.conf \
${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-ipa.conf \
${PREFIX}/etc/fonts/conf.d/20-unhint-ipa.conf
${LN} -s -f ../conf.avail/62-fonts-ipa.conf \
${PREFIX}/etc/fonts/conf.d/62-fonts-ipa.conf
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
post-install:
${LOCALBASE}/bin/fc-cache -f -v ${LOCALBASE}/${X_FONTSDIR}/OTF
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>