diff --git a/games/tmw/Makefile b/games/tmw/Makefile index 3618e7c17080..7bce860a4102 100644 --- a/games/tmw/Makefile +++ b/games/tmw/Makefile @@ -6,8 +6,7 @@ # PORTNAME= tmw -PORTVERSION= 0.0.27 -PORTREVISION= 1 +PORTVERSION= 0.0.28 CATEGORIES= games MASTER_SITES= SF MASTER_SITE_SUBDIR= themanaworld @@ -24,16 +23,25 @@ BUILD_DEPENDS= guichan>=0.8.1:${PORTSDIR}/devel/guichan RUN_DEPENDS= guichan>=0.8.1:${PORTSDIR}/devel/guichan GNU_CONFIGURE= yes -USE_SDL= sdl image mixer net +USE_SDL= sdl image mixer net ttf -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` ${PTHREAD_CFLAGS}" \ - LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` ${PTHREAD_CFLAGS}" MAN6= tmw.6 -OPTIONS= MUSIC "Install additional music" On +OPTIONS= MUSIC "Install additional music" on \ + NLS "Enable gettext support" on .include +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl" +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" +.endif + .if !defined(WITHOUT_MUSIC) MUSICNAME= tmwmusic-0.2 MUSICSUBDIR= data/music @@ -46,6 +54,9 @@ PLIST_SUB+= MUSICADDON="@comment " post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure +.if defined(WITHOUT_NLS) + @${REINPLACE_CMD} -e 's|SUBDIRS = data docs po src|SUBDIRS = data docs src|g' ${WRKSRC}/Makefile.in +.endif post-install: .if !defined(WITHOUT_MUSIC) diff --git a/games/tmw/distinfo b/games/tmw/distinfo index d1e1abedb7c9..43886c3c5403 100644 --- a/games/tmw/distinfo +++ b/games/tmw/distinfo @@ -1,6 +1,6 @@ -MD5 (tmw-0.0.27.tar.gz) = 8c237378bd1afb3cabdc9fd8ee7c93ce -SHA256 (tmw-0.0.27.tar.gz) = fea09c15d14e180dc0f59dc473e941f8d9612dea3db10504ec6a46989e9da4f1 -SIZE (tmw-0.0.27.tar.gz) = 1242303 +MD5 (tmw-0.0.28.tar.gz) = 7d157a95e761ef7bee6f6a04645355ba +SHA256 (tmw-0.0.28.tar.gz) = 2924ed142af5bbdf2c120268009abd3b2710ad456ca7ef385161b9ae520459c2 +SIZE (tmw-0.0.28.tar.gz) = 1687689 MD5 (tmwmusic-0.2.tar.gz) = 66c9141d48a7e2ac34e7ab66298ee73c SHA256 (tmwmusic-0.2.tar.gz) = eb17592e84692dc5780250dfa3512b9c83c6a8f80cfb47597d3036a7ba4cd310 SIZE (tmwmusic-0.2.tar.gz) = 17841458 diff --git a/games/tmw/pkg-plist b/games/tmw/pkg-plist index d32b6bc01b28..60fcc3e3acea 100644 --- a/games/tmw/pkg-plist +++ b/games/tmw/pkg-plist @@ -1,8 +1,9 @@ bin/tmw share/applications/tmw.desktop share/pixmaps/tmw.png +%%DATADIR%%/data/fonts/dejavusans.ttf %%DATADIR%%/data/graphics/gui/bg_quad_dis.png -%%DATADIR%%/data/graphics/gui/browserfont.png +%%DATADIR%%/data/graphics/gui/bubble.png %%DATADIR%%/data/graphics/gui/button.png %%DATADIR%%/data/graphics/gui/button_disabled.png %%DATADIR%%/data/graphics/gui/buttonhi.png @@ -31,9 +32,10 @@ share/pixmaps/tmw.png %%DATADIR%%/data/graphics/gui/radioout.png %%DATADIR%%/data/graphics/gui/resize.png %%DATADIR%%/data/graphics/gui/rpgfont_wider.png -%%DATADIR%%/data/graphics/gui/sansserif8.png %%DATADIR%%/data/graphics/gui/selection.png %%DATADIR%%/data/graphics/gui/slider.png +%%DATADIR%%/data/graphics/gui/tab.png +%%DATADIR%%/data/graphics/gui/tabselected.png %%DATADIR%%/data/graphics/gui/target-cursor-blue-l.png %%DATADIR%%/data/graphics/gui/target-cursor-blue-m.png %%DATADIR%%/data/graphics/gui/target-cursor-blue-s.png @@ -62,6 +64,29 @@ share/pixmaps/tmw.png %%DATADIR%%/data/help/support.txt %%DATADIR%%/data/help/team.txt %%DATADIR%%/data/icons/tmw.png +%%NLS%%share/locale/ar/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/ca/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/cs/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/da/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/de/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/en_GB/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/eo/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/es/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/fi/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/fr/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/he/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/hr/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/id/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/it/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/ja/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/nl/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/pl/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/pt/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/ru/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/sk/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/sv/LC_MESSAGES/tmw.mo +%%NLS%%share/locale/th/LC_MESSAGES/tmw.mo %%MUSICADDON%%%%DATADIR%%/data/music/Faith.ogg %%MUSICADDON%%%%DATADIR%%/data/music/Clouds Calling.ogg %%MUSICADDON%%%%DATADIR%%/data/music/Magick - Real.ogg @@ -71,6 +96,7 @@ share/pixmaps/tmw.png %%MUSICADDON%%@dirrm %%DATADIR%%/data/music @dirrm %%DATADIR%%/data/icons @dirrm %%DATADIR%%/data/help +@dirrm %%DATADIR%%/data/fonts @dirrm %%DATADIR%%/data/graphics/images @dirrm %%DATADIR%%/data/graphics/gui @dirrm %%DATADIR%%/data/graphics