mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
- Move scorefile to /var/games
- Modernise port PR: 205627 Submitted by: amdmi3
This commit is contained in:
parent
becdae4e41
commit
65916dbc3c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404879
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= ltris
|
||||
PORTVERSION= 1.0.19
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/lgames/${PORTNAME}
|
||||
@ -13,22 +13,14 @@ COMMENT= Tetris clone but a good one with bunch of cool features
|
||||
|
||||
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 <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
USES+= gettext
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
NLS_USES= gettext
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/\/icons/\/pixmaps/g' ${WRKSRC}/Makefile.in
|
||||
@ -37,4 +29,7 @@ post-patch:
|
||||
@${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 <bsd.port.mk>
|
||||
|
@ -24,7 +24,6 @@ share/applications/ltris.desktop
|
||||
%%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 @@ share/applications/ltris.desktop
|
||||
%%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
|
||||
|
Loading…
Reference in New Issue
Block a user