Index: Makefile =================================================================== --- Makefile (revision 390640) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= ltris PORTVERSION= 1.0.19 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= games MASTER_SITES= SF/lgames/${PORTNAME} @@ -13,23 +13,15 @@ USE_SDL= mixer sdl GNU_CONFIGURE= yes -USES= gmake -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ARGS= --localstatedir=${DATADIR} +USES= gmake localbase +CONFIGURE_ARGS= --localstatedir=/var/games OPTIONS_DEFINE= NLS +OPTIONS_SUB= yes -.include +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+= --disable-nls -PLIST_SUB+= NLS="@comment " -.endif - post-patch: @${REINPLACE_CMD} -e 's/\/icons/\/pixmaps/g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's/= @mixer_flag@/= @INTLLIBS@ @mixer_flag@/g ; \ @@ -37,4 +29,7 @@ @${REINPLACE_CMD} -e 's/^inline //' \ ${WRKSRC}/src/sdl.h ${WRKSRC}/src/tools.h +post-install: + ${MV$} ${STAGEDIR}/var/games/ltris.hscr ${STAGEDIR}/var/games/ltris.hscr.sample + .include Index: pkg-plist =================================================================== --- pkg-plist (revision 390640) +++ pkg-plist (working copy) @@ -24,7 +24,6 @@ %%DATADIR%%/gfx/logo.bmp %%DATADIR%%/gfx/menuback.bmp %%DATADIR%%/gfx/quest.bmp -@(,games,0664) %%DATADIR%%/ltris.hscr %%DATADIR%%/sounds/click.wav %%DATADIR%%/sounds/excellent.wav %%DATADIR%%/sounds/explosion.wav @@ -33,6 +32,4 @@ %%DATADIR%%/sounds/nextlevel.wav %%DATADIR%%/sounds/stop.wav share/pixmaps/ltris48.gif -@dirrm %%DATADIR%%/sounds -@dirrm %%DATADIR%%/gfx -@dirrm %%DATADIR%% +@sample(,games,664) /var/games/ltris.hscr.sample