aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/rlvm/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/devel/rlvm/Makefile b/devel/rlvm/Makefile
index 37426be5b09a..64aca22c3e7e 100644
--- a/devel/rlvm/Makefile
+++ b/devel/rlvm/Makefile
@@ -2,6 +2,7 @@
PORTNAME= rlvm
PORTVERSION= 0.14.0.20150425
+PORTREVISION= 1
CATEGORIES= devel games
MAINTAINER= jbeich@FreeBSD.org
@@ -35,15 +36,16 @@ CFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528
LDFLAGS+= -Wl,--as-needed # avoid overlinking (gtk deps)
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
@@ -59,13 +61,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)