1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Update to 0.91

- Install desktop file
This commit is contained in:
Dmitry Marakasov 2013-08-24 03:34:00 +00:00
parent 4b38433d71
commit 84cf80e55f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325285
6 changed files with 53 additions and 18 deletions

View File

@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= powermanga
PORTVERSION= 0.90
PORTREVISION= 4
PORTVERSION= 0.91
CATEGORIES= games
MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/ \
http://mirror.amdmi3.ru/distfiles/
@ -12,34 +11,45 @@ EXTRACT_SUFX= .tgz
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An arcade 2D shoot-em-up
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
USE_XORG= xext xxf86dga
USE_SDL= sdl mixer
GNU_CONFIGURE= yes
USE_AUTOTOOLS= aclocal automake autoconf autoheader
PORTDOCS= AUTHORS CHANGES
MAN6= powermanga.6
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS="-O3.*|CFLAGS="$$CFLAGS -std=c99"|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/CFLAGS/ { s|-O3||; s|-Werror||; }' ${WRKSRC}/configure.ac
@${REINPLACE_CMD} -e \
's|/usr/share/games/powermanga|${DATADIR}|;s|/sound|&s|' \
${WRKSRC}/powermanga.6
@${REINPLACE_CMD} -e 's|(mandir)|&/man6|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|\((prefix)\)/games|\1/bin|' \
${WRKSRC}/src/Makefile.in
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|games/powermanga|powermanga|'
${WRKSRC}/src/Makefile.am
@${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
'/pkgdatadir/ s|games/powermanga|powermanga|'
@${REINPLACE_CMD} -e 's|games/powermanga|powermanga|' \
${WRKSRC}/src/tools.c
@${REINPLACE_CMD} -e 's|Lang=fr|Lang=en|' ${WRKSRC}/texts/config.ini
run-autotools:
cd ${WRKSRC} && ${SH} ./bootstrap
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
${INSTALL_DATA} ${WRKSRC}/texts/config.ini ${DATADIR}/texts
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/powermanga.desktop ${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/powermanga.xpm ${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}

View File

@ -1,2 +1,2 @@
SHA256 (powermanga-0.90.tgz) = 35d621c2f49dbf2e21f89a18c733efd55db841cb366a527fcce82b2fd2e56edd
SIZE (powermanga-0.90.tgz) = 11412193
SHA256 (powermanga-0.91.tgz) = b4830169682fecf4237d169a62a2d8fbf1a42ee66e811f7f60fa1b9a725ee9b3
SIZE (powermanga-0.91.tgz) = 11114130

View File

@ -0,0 +1,14 @@
--- configure.ac.orig 2012-08-26 19:44:25.000000000 +0400
+++ configure.ac 2013-08-23 23:16:37.792851553 +0400
@@ -52,9 +52,9 @@
dnl If defined [Ctrl] + [V], [Ctrl] + [P], [Ctrl] + [B] are available
AC_DEFINE(UNDER_DEVELOPMENT, 1, Define to enable development version)
AC_DEFINE(USE_MALLOC_WRAPPER, 1, Define to use a malloc wrapper)
- CFLAGS="-Wall -Werror -pedantic -Wextra -std=gnu99 -g"
+ CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wextra -std=gnu99 -g"
else
- CFLAGS="-O3 -Werror -Wall -pedantic -Wextra -std=gnu99"
+ CFLAGS="$CFLAGS -O3 -Werror -Wall -pedantic -Wextra -std=gnu99"
fi
dnl Check for SDL_mixer

View File

@ -1,6 +1,6 @@
--- powermanga.6.orig Tue Jan 18 04:53:21 2005
+++ powermanga.6 Tue Jan 18 04:53:43 2005
@@ -115,9 +115,7 @@
--- powermanga.6.orig 2012-08-26 19:44:25.000000000 +0400
+++ powermanga.6 2012-09-28 02:15:36.433625907 +0400
@@ -139,8 +139,6 @@
Used to search for graphics and sounds.
.SH AUTHOR
Powermanga - Copyright TLK Games. You are free to redistribute
@ -9,5 +9,4 @@
-for details.
+and/or change it under the terms of the GNU General Public License.
.br
This manual page was written by Jeronimo Pellegrini <pellegrini@mpcnet.com.br>, based on the previous one by Samuel Hocevar <sam@zoy.org>, for the Debian GNU/Linux system (but may be used by others).
This manual page was written by Jeronimo Pellegrini <pellegrini@mpcnet.com.br>, based on the previous one by Sam Hocevar <sam@zoy.org>, for the Debian GNU/Linux system (but may be used by others).

View File

@ -0,0 +1,10 @@
--- src/powermanga.h.orig 2012-08-26 19:44:26.000000000 +0400
+++ src/powermanga.h 2013-08-23 23:19:06.028234150 +0400
@@ -149,6 +149,7 @@
#ifdef PNG_EXPORT_ENABLE
#include <png.h>
+#include <zlib.h> /* for Z_BEST_COMPRESSION */
#endif
#if !defined(_WIN32_WCE)

View File

@ -1,4 +1,6 @@
bin/powermanga
share/applications/powermanga.desktop
share/pixmaps/powermanga.xpm
%%DATADIR%%/data/curves/bezier_curve_000.bin
%%DATADIR%%/data/curves/bezier_curve_001.bin
%%DATADIR%%/data/curves/bezier_curve_002.bin
@ -382,7 +384,6 @@ bin/powermanga
%%DATADIR%%/sounds/sound_yellow_gem.wav
%%DATADIR%%/texts/about_en.txt
%%DATADIR%%/texts/about_fr.txt
%%DATADIR%%/texts/config.ini
%%DATADIR%%/texts/order_en.txt
%%DATADIR%%/texts/order_fr.txt
%%DATADIR%%/texts/scroll_en.txt
@ -407,3 +408,4 @@ bin/powermanga
@dirrm %%DATADIR%%/data/curves
@dirrm %%DATADIR%%/data
@dirrm %%DATADIR%%
@dirrmtry share/applications