1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/japanese/font-ricty/Makefile
Koichiro Iwao 5dd685faaf japanese/font-ricty{,-discord}: Update to 4.1.1
ricry_discord_converter.pe is no longer needed as everything's provided in
one script.

Also while here,
- Adjust indents
- Add NO_ARCH
- Remove "Created by:" line credits myself and masaki
  (approved via private communications)

Changes:	http://www.rs.tus.ac.jp/yyusa/ricty.html
Approved by:	pi (mentor, initial version)
Sponsored by:	HAW International, Inc.
Differential Revision:	https://reviews.freebsd.org/D15474
2018-05-29 03:20:20 +00:00

94 lines
3.0 KiB
Makefile

# $FreeBSD$
PORTNAME= ricty
PORTVERSION= 4.1.1
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://www.rs.tus.ac.jp/yyusa/ricty/
PKGNAMEPREFIX= ja-font-
DISTNAME= ricty_generator-${PORTVERSION}.sh
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}
MAINTAINER?= meta@FreeBSD.org
COMMENT?= Ricty - fonts for programming
LICENSE= OFL11
BUILD_DEPENDS= inconsolata-ttf>=2.000:x11-fonts/inconsolata-ttf \
${LOCALBASE}/share/fonts/TTF/migu-1m-regular.ttf:japanese/font-migu \
${LOCALBASE}/share/fonts/TTF/migu-1m-bold.ttf:japanese/font-migu \
fontforge:print/fontforge
NO_ARCH= yes
USES= fonts:fc
NO_PACKAGE= redistribution is not allowed
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
SUB_FILES= pkg-install
FONTNAME= TTF
.if !defined(PKGNAMESUFFIX)
OPTIONS_DEFINE= DISCORD
DISCORD_DESC= Install Ricty-Discord
OPTIONS_DEFAULT= DISCORD
.endif
.include <bsd.port.options.mk>
.if !defined(PKGNAMESUFFIX)
PLIST_SUB+= DISCORD="@comment " RICTY=""
SUB_LIST+= DISCORD=\# RICTY=""
.else
PLIST_SUB+= DISCORD="" RICTY="@comment "
SUB_LIST+= DISCORD="" RICTY=\#
.endif
.if ${PORT_OPTIONS:MDISCORD}
RUN_DEPENDS+= ${LOCALBASE}/${DATADIR_REL}/RictyDiscord-Regular.ttf:japanese/font-ricty-discord
.endif
do-extract:
@${MKDIR} ${WRKSRC}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/ricty_generator-${PORTVERSION}.sh ${WRKSRC}/ricty_generator.sh
do-build:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${SH} ${WRKSRC}/ricty_generator.sh \
${PREFIX}/share/fonts/inconsolata/Inconsolata-Regular.ttf \
${PREFIX}/share/fonts/inconsolata/Inconsolata-Bold.ttf \
${PREFIX}/share/fonts/TTF/migu-1m-regular.ttf \
${PREFIX}/share/fonts/TTF/migu-1m-bold.ttf
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${FONTSDIR}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
.if !defined(PKGNAMESUFFIX)
${INSTALL_DATA} ${WRKSRC}/Ricty-*.ttf ${STAGEDIR}${DATADIR}
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
../../../${DATADIR_REL}/Ricty-*.ttf .
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}.conf \
${FILESDIR}/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}.conf
.else
${INSTALL_DATA} ${WRKSRC}/RictyDiscord-*.ttf ${STAGEDIR}${DATADIR}
cd ${STAGEDIR}${FONTSDIR} && ${LN} -s -f \
../../../${DATADIR_REL}/RictyDiscord-*.ttf .
${INSTALL_DATA} ${FILESDIR}/20-unhint-${PORTNAME}discord.conf \
${FILESDIR}/62-fonts-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${LN} -s -f ../conf.avail/20-unhint-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${PORTNAME}discord.conf
${LN} -s -f ../conf.avail/62-fonts-${PORTNAME}discord.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${PORTNAME}discord.conf
.endif
.include <bsd.port.mk>