aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2016-09-30 23:36:13 +0800
committerjbeich <jbeich@FreeBSD.org>2016-09-30 23:36:13 +0800
commit8481195da848f0603f1ce98d7d48a078f6d26834 (patch)
tree5f3aca427a63eaeb5e5db5c3a2697ea8ea35e998 /devel
parentebf164570988df9afb9405ff183b4fe86d96bd8f (diff)
downloadfreebsd-ports-gnome-8481195da848f0603f1ce98d7d48a078f6d26834.tar.gz
freebsd-ports-gnome-8481195da848f0603f1ce98d7d48a078f6d26834.tar.zst
freebsd-ports-gnome-8481195da848f0603f1ce98d7d48a078f6d26834.zip
devel/rlvm: fix font handling
Even CLANNAD (Steam HD edition) didn't work[1], so... - Force at least one supported font to be installed - Chase paths for MONA after rename in r397892 - Don't look under PREFIX, other packages are under LOCALBASE [1] rlvm doesn't use fontconfig, so it happily crashed without leaving any error on terminal to assist troubleshooting if one of the listed fonts couldn't be found.
Diffstat (limited to 'devel')
-rw-r--r--devel/rlvm/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/devel/rlvm/Makefile b/devel/rlvm/Makefile
index cf4dfa6375c7..bb5a2673138c 100644
--- a/devel/rlvm/Makefile
+++ b/devel/rlvm/Makefile
@@ -4,6 +4,7 @@ PORTNAME= rlvm
DISTVERSIONPREFIX= release-
DISTVERSION= 0.14-67
DISTVERSIONSUFFIX= -g9350209
+PORTREVISION= 1
CATEGORIES= devel games
MAINTAINER= jbeich@FreeBSD.org
@@ -39,15 +40,16 @@ EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${CHOSEN_COMPILER_TYPE}}
EXTRA_PATCHES_FreeBSD_gcc= ${PATCHDIR}/extra-patch-gcc48
OPTIONS_DEFINE= DEBUG DOCS NLS TEST
-OPTIONS_GROUP= JAPANESE_FONT
-OPTIONS_GROUP_JAPANESE_FONT=KOCHI MONA SAZANAMI
+OPTIONS_DEFAULT=MONA
+OPTIONS_MULTI= JAPANESE_FONT
+OPTIONS_MULTI_JAPANESE_FONT=KOCHI MONA SAZANAMI
OPTIONS_SUB= yes
JAPANESE_FONT_DESC=msgothic.ttc alternatives with verified metrics (unless --font)
KOCHI_DESC= kochi-gothic-subst.ttf from japanese/font-kochi
KOCHI_RUN_DEPENDS=${LOCALBASE}/share/fonts/TTF/kochi-gothic-subst.ttf:japanese/font-kochi
-MONA_DESC= mona.ttf from japanese/monafonts-ttf
-MONA_RUN_DEPENDS=${LOCALBASE}/share/fonts/TrueType/mona.ttf:japanese/monafonts-ttf
+MONA_DESC= mona.ttf from japanese/font-mona-ttf
+MONA_RUN_DEPENDS=${LOCALBASE}/share/fonts/TTF/mona.ttf:japanese/font-mona-ttf
SAZANAMI_DESC= sazanami-gothic.ttf from japanese/font-sazanami
SAZANAMI_RUN_DEPENDS=${LOCALBASE}/share/fonts/TTF/sazanami-gothic.ttf:japanese/font-sazanami
@@ -63,13 +65,12 @@ TEST_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-test
post-patch:
@${GREP} -Flr 'utf8cpp/' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
-i .bak.utf8cpp -e 's,utf8cpp/,,'
-# Default to TTF/ subdir where japanese/ fonts are often installed
- @${GREP} -Flr '/usr/share' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \
- -i .bak.paths \
- -e 's,/usr/share,${PREFIX}/share,' \
+ @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \
+ ${WRKSRC}/src/platforms/gtk/gtk_rlvm_instance.cc
+ @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \
-e 's,truetype/ttf-dejavu,dejavu,' \
- -e 's,truetype/mona,TrueType,' \
- -e 's,truetype/[^/"]*,TTF,'
+ -e 's,truetype/[^/"]*/,TTF/,' \
+ ${WRKSRC}/src/utilities/find_font_file.cc
pre-install-TEST-on:
(cd ${WRKSRC} && build/${PORTNAME}_unittests)