1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Bump PORTREVISION for dependency change

- Add master site
- Transfer maintainership to games@ team
- Remove DEPRECATED, EXPIRATION_DATE
- Add USE_GCC=yes
- Add DOCS and add Option
- Install conditional NLS, add Option
- Support STAGEDIR and add OPTIONS_SUB
- Use patch instead of REINPLACE, remove setuid executable and change
  add patch-Makefile.in
- Change REINPLACE, cosmetical changes
- Fix GNU/Linux compatibility, proper install
- Fix desktop entry file
- Recreate patch with make makepatch
- Change pkg-descr
- Change pkg-plist
This commit is contained in:
Rusmir Dusko 2014-04-04 17:36:58 +00:00
parent ebe536c440
commit 5f622f61b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350142
6 changed files with 82 additions and 25 deletions

View File

@ -3,31 +3,47 @@
PORTNAME= gnomebreakout
PORTVERSION= 0.5.3
PORTREVISION= 11
PORTREVISION= 12
CATEGORIES= games gnome
MASTER_SITES= http://www.users.on.net/~mipearson/
MASTER_SITES= SF/${PORTNAME:S/eb/e-b/}/${PORTNAME:S/eb/e-b/}/${PORTVERSION}/ \
http://www.users.on.net/~mipearson/
DISTNAME= gnome-breakout-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= games@FreeBSD.org
COMMENT= GNOME version of the classic breakout game
DEPRECATED= Unmaintained since 2000
EXPIRATION_DATE= 2014-04-11
USES= pathfix pkgconfig
USE_GNOME= gnomeprefix libgnomeui
GNU_CONFIGURE= yes
USE_GCC= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lm
NO_STAGE= yes
PORTDOCS= AUTHORS ChangeLog NEWS README
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
NLS_USES= gettext:run
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-Werror||' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e \
's|games.games|root:games|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|-Werror||g' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e \
's|@GETTEXT_PACKAGE@|@PACKAGE@|g' ${WRKSRC}/po/Makefile.in.in
's|@GETTEXT_PACKAGE@|@PACKAGE@|' ${WRKSRC}/po/Makefile.in.in
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-DGNOME_DISABLE_DEPRECATED||g ; s|-DGTK_DISABLE_DEPRECATED||g'
's|-DGNOME_DISABLE_DEPRECATED||; s|-DGTK_DISABLE_DEPRECATED||; \
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||; s|-DG_DISABLE_DEPRECATED||'
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|po src|src|' \
${WRKSRC}/Makefile.in
.endif
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,30 @@
--- ./Makefile.in.orig 2014-04-04 17:49:31.961202370 +0200
+++ ./Makefile.in 2014-04-04 17:49:40.394104597 +0200
@@ -91,7 +91,7 @@
WARN_CXXFLAGS = @WARN_CXXFLAGS@
SUBDIRS = po src pixmaps levels
-scoredir = $(localstatedir)/games
+scoredir = $(localstatedir)/gnome-breakout
EXTRA_DIST = gnome-breakout.desktop gnome-breakout.png TODO BUGS
@@ -99,7 +99,7 @@
iconpixmapdir = $(datadir)/pixmaps
iconpixmap_DATA = gnome-breakout.png
-Gamesdir = $(datadir)/gnome/apps/Games
+Gamesdir = $(datadir)/applications
Games_DATA = gnome-breakout.desktop
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -397,9 +397,7 @@
install-data-local:
-$(mkinstalldirs) $(DESTDIR)$(scoredir)
-touch $(DESTDIR)$(scoredir)/gnome-breakout.scores
- -chown games.games $(DESTDIR)$(scoredir)/gnome-breakout.scores
-chmod 0664 $(DESTDIR)$(scoredir)/gnome-breakout.scores
- -chgrp games $(DESTDIR)$(bindir)/gnome-breakout && chmod 2755 $(DESTDIR)$(bindir)/gnome-breakout
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -0,0 +1,13 @@
--- ./gnome-breakout.desktop.orig 2003-06-23 12:15:30.000000000 +0200
+++ ./gnome-breakout.desktop 2014-04-04 17:49:31.971201127 +0200
@@ -6,6 +6,7 @@
Comment[tr]=Breakout klasiðinin Gnome teþkili
Comment[de]=Das klassische Arcade Spiel Breakout für GNOME
Exec=gnome-breakout
-Icon=gnome-breakout.png
-Terminal=0
-Type=Game
+Icon=gnome-breakout
+Terminal=false
+Type=Application
+Categories=Game;BlocksGame;

View File

@ -1,5 +1,5 @@
--- src/anim.c.orig Mon May 10 19:42:51 2004
+++ src/anim.c Thu May 20 00:26:00 2004
--- ./src/anim.c.orig 2004-05-10 12:42:51.000000000 +0200
+++ ./src/anim.c 2014-04-04 17:49:31.971201127 +0200
@@ -47,6 +47,7 @@
Animation newanim;
char *fullfilename;

View File

@ -1,5 +1,4 @@
GNOME Breakout is a clone of the classic arcade game Breakout,
written for GNOME. Still in development, but very playable, and
very addictive.
Breakout (Arkanoid) clone for GNOME.
Supports level customisation, powerups, and different block types.
WWW: http://www.users.on.net/mipearson/
WWW: http://sourceforge.net/projects/gnome-breakout/

View File

@ -1,6 +1,6 @@
bin/gnome-breakout
share/gnome/apps/Games/gnome-breakout.desktop
share/games/gnome-breakout.scores
share/applications/gnome-breakout.desktop
share/gnome-breakout/gnome-breakout.scores
share/gnome-breakout/levels/alcaron.gbl
share/gnome-breakout/levels/mdutour.gbl
share/gnome-breakout/levels/mmack.gbl
@ -67,11 +67,10 @@ share/gnome-breakout/pixmaps/powerup.slow.0.png
share/gnome-breakout/pixmaps/powerup.widebat.0.png
share/gnome-breakout/pixmaps/title.png
share/pixmaps/gnome-breakout.png
share/locale/de/LC_MESSAGES/gnome-breakout.mo
share/locale/ru/LC_MESSAGES/gnome-breakout.mo
share/locale/sv/LC_MESSAGES/gnome-breakout.mo
share/locale/tr/LC_MESSAGES/gnome-breakout.mo
%%NLS%%share/locale/de/LC_MESSAGES/gnome-breakout.mo
%%NLS%%share/locale/ru/LC_MESSAGES/gnome-breakout.mo
%%NLS%%share/locale/sv/LC_MESSAGES/gnome-breakout.mo
%%NLS%%share/locale/tr/LC_MESSAGES/gnome-breakout.mo
@dirrm share/gnome-breakout/pixmaps
@dirrm share/gnome-breakout/levels
@dirrm share/gnome-breakout
@dirrmtry share/games