svn commit: r377859 - in head/games/lbreakout: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Sun Jan 25 02:55:58 UTC 2015
Author: amdmi3
Date: Sun Jan 25 02:55:56 2015
New Revision: 377859
URL: https://svnweb.freebsd.org/changeset/ports/377859
QAT: https://qat.redports.org/buildarchive/r377859/
Log:
- Remove useless REINPLACE
- Use @sample for highscore handling
- Support highscore patch longer than 32 bytes
- Don't use PTHREAD_LIBS
- Add LICENSE
- Drop @dirrm* from plist
Added:
head/games/lbreakout/files/patch-lbreakout__hiscore.h (contents, props changed)
Modified:
head/games/lbreakout/Makefile
head/games/lbreakout/pkg-plist
Modified: head/games/lbreakout/Makefile
==============================================================================
--- head/games/lbreakout/Makefile Sun Jan 25 02:55:48 2015 (r377858)
+++ head/games/lbreakout/Makefile Sun Jan 25 02:55:56 2015 (r377859)
@@ -3,25 +3,29 @@
PORTNAME= lbreakout
PORTVERSION= 010315
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= SF/lgames/${PORTNAME}
MAINTAINER= ports at FreeBSD.org
COMMENT= Nice clone of classical Breakout game
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
+
USE_SDL= sdl
USES= gmake
GNU_CONFIGURE= yes
LIBS+= -lcompat
post-patch:
- @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
- @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
- 's|"SDL/SDL|"SDL|g ; \
- s|<SDL/SDL|<SDL|g'
+ @${REINPLACE_CMD} -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure
pre-install:
${MKDIR} ${STAGEDIR}/var/games/${PORTNAME}
+post-install:
+ ${MV} ${STAGEDIR}/var/games/${PORTNAME}/lbreakout.hscr \
+ ${STAGEDIR}/var/games/${PORTNAME}/lbreakout.hscr.sample
+
.include <bsd.port.mk>
Added: head/games/lbreakout/files/patch-lbreakout__hiscore.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/lbreakout/files/patch-lbreakout__hiscore.h Sun Jan 25 02:55:56 2015 (r377859)
@@ -0,0 +1,20 @@
+--- lbreakout/hiscore.h.orig 2001-02-24 22:00:24.000000000 +0300
++++ lbreakout/hiscore.h 2015-01-25 05:37:12.000000000 +0300
+@@ -60,7 +60,7 @@
+ protected:
+ HiScoreEntry *entries;
+ int entry_num;
+- char filename[32];
++ char filename[1024];
+ public:
+ StandardHiScore(char* f);
+ StandardHiScore(FILE* f);
+@@ -88,7 +88,7 @@
+ // maintains two tables: one per score, the other per level
+ class CompositeHiScore : public HiScore {
+ private:
+- char filename[32];
++ char filename[1024];
+ LevelHiScore* pLevel;
+ StandardHiScore* pStandard;
+
Modified: head/games/lbreakout/pkg-plist
==============================================================================
--- head/games/lbreakout/pkg-plist Sun Jan 25 02:55:48 2015 (r377858)
+++ head/games/lbreakout/pkg-plist Sun Jan 25 02:55:56 2015 (r377859)
@@ -43,6 +43,5 @@ share/lbreakout/wall.wav
share/lbreakout/weapon.bmp
share/lbreakout/weapon.wav
share/lbreakout/wontgiveup.wav
- at dirrm share/lbreakout
-@(root,games,664) /var/games/lbreakout/lbreakout.hscr
- at dirrm /var/games/lbreakout
+ at sample(root,games,664) /var/games/lbreakout/lbreakout.hscr.sample
+ at dir /var/games/lbreakout
More information about the svn-ports-head
mailing list