aboutsummaryrefslogtreecommitdiff
path: root/games/powermanga
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-08-24 03:34:00 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-08-24 03:34:00 +0000
commit84cf80e55f20db837fe485cfc88857498e87daaf (patch)
treeea1d28b585cc91e1c79dafb171600721264b05fc /games/powermanga
parent4b38433d719dce63eb9739d86b2ddbb94230dda0 (diff)
downloadports-84cf80e55f20db837fe485cfc88857498e87daaf.tar.gz
ports-84cf80e55f20db837fe485cfc88857498e87daaf.zip
Notes
Diffstat (limited to 'games/powermanga')
-rw-r--r--games/powermanga/Makefile30
-rw-r--r--games/powermanga/distinfo4
-rw-r--r--games/powermanga/files/patch-configure.ac14
-rw-r--r--games/powermanga/files/patch-powermanga.69
-rw-r--r--games/powermanga/files/patch-src-powermanga.h10
-rw-r--r--games/powermanga/pkg-plist4
6 files changed, 53 insertions, 18 deletions
diff --git a/games/powermanga/Makefile b/games/powermanga/Makefile
index c8340a535f81..2d613f3c0e8e 100644
--- a/games/powermanga/Makefile
+++ b/games/powermanga/Makefile
@@ -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}
diff --git a/games/powermanga/distinfo b/games/powermanga/distinfo
index 51521ec65dea..22ca044aa5a4 100644
--- a/games/powermanga/distinfo
+++ b/games/powermanga/distinfo
@@ -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
diff --git a/games/powermanga/files/patch-configure.ac b/games/powermanga/files/patch-configure.ac
new file mode 100644
index 000000000000..e1564145d17a
--- /dev/null
+++ b/games/powermanga/files/patch-configure.ac
@@ -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
diff --git a/games/powermanga/files/patch-powermanga.6 b/games/powermanga/files/patch-powermanga.6
index 591fbe765f32..9c069d5c7490 100644
--- a/games/powermanga/files/patch-powermanga.6
+++ b/games/powermanga/files/patch-powermanga.6
@@ -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).
diff --git a/games/powermanga/files/patch-src-powermanga.h b/games/powermanga/files/patch-src-powermanga.h
new file mode 100644
index 000000000000..f5c50904f158
--- /dev/null
+++ b/games/powermanga/files/patch-src-powermanga.h
@@ -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)
diff --git a/games/powermanga/pkg-plist b/games/powermanga/pkg-plist
index 5ec966e79881..0a665dbb69dd 100644
--- a/games/powermanga/pkg-plist
+++ b/games/powermanga/pkg-plist
@@ -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