aboutsummaryrefslogtreecommitdiffstats
path: root/games/powermanga
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-11-28 19:19:53 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-11-28 19:19:53 +0800
commit51344fadccf2ed47eb7446782cc79f65fbc3fec4 (patch)
treee217824bf33e5d50c3c8e8a72dff397d2a13f496 /games/powermanga
parent6defe3658ab212f6a2b899b6337baf0b23a34257 (diff)
downloadfreebsd-ports-gnome-51344fadccf2ed47eb7446782cc79f65fbc3fec4.tar.gz
freebsd-ports-gnome-51344fadccf2ed47eb7446782cc79f65fbc3fec4.tar.zst
freebsd-ports-gnome-51344fadccf2ed47eb7446782cc79f65fbc3fec4.zip
- Update to 0.93
- Convert to USES=autoreconf - Fix LDFLAGS/LIBS misuse - Convert highscore handling to @sample
Diffstat (limited to 'games/powermanga')
-rw-r--r--games/powermanga/Makefile15
-rw-r--r--games/powermanga/distinfo4
-rw-r--r--games/powermanga/files/patch-configure.ac16
-rw-r--r--games/powermanga/pkg-install18
-rw-r--r--games/powermanga/pkg-plist10
5 files changed, 17 insertions, 46 deletions
diff --git a/games/powermanga/Makefile b/games/powermanga/Makefile
index 7059e9e0c4a2..cf9bc1701800 100644
--- a/games/powermanga/Makefile
+++ b/games/powermanga/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= powermanga
-PORTVERSION= 0.91
-PORTREVISION= 2
+PORTVERSION= 0.93
CATEGORIES= games
MASTER_SITES= http://linux.tlk.fr/games/Powermanga/download/ \
http://mirror.amdmi3.ru/distfiles/
@@ -17,19 +16,17 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
+USES= autoreconf
USE_XORG= xext xxf86dga
USE_SDL= sdl mixer
GNU_CONFIGURE= yes
-USE_AUTOTOOLS= aclocal automake autoconf autoheader
-AUTOMAKE_ARGS= -a -c -f --foreign
PORTDOCS= *
PORTDATA= *
CFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib -lm
-
-.include <bsd.port.options.mk>
+LDFLAGS+= -L${LOCALBASE}/lib
+LIBS+= -lm
post-patch:
@${REINPLACE_CMD} -e '/CFLAGS/ { s|-O3||; s|-Werror||; }' ${WRKSRC}/configure.ac
@@ -45,9 +42,13 @@ post-patch:
@${REINPLACE_CMD} -e 's|Lang=fr|Lang=en|' ${WRKSRC}/texts/config.ini
post-install:
+ ${CHMOD} 755 ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/powermanga.desktop ${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/powermanga.xpm ${STAGEDIR}${PREFIX}/share/pixmaps/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}
+.for f in powermanga.hi powermanga.hi-easy powermanga.hi-hard
+ ${MV} ${STAGEDIR}/var/games/${PORTNAME}/${f} ${STAGEDIR}/var/games/${PORTNAME}/${f}.sample
+.endfor
.include <bsd.port.mk>
diff --git a/games/powermanga/distinfo b/games/powermanga/distinfo
index 22ca044aa5a4..61432e717d22 100644
--- a/games/powermanga/distinfo
+++ b/games/powermanga/distinfo
@@ -1,2 +1,2 @@
-SHA256 (powermanga-0.91.tgz) = b4830169682fecf4237d169a62a2d8fbf1a42ee66e811f7f60fa1b9a725ee9b3
-SIZE (powermanga-0.91.tgz) = 11114130
+SHA256 (powermanga-0.93.tgz) = beb13b20da92829193922d237214c2337f105315de80e4a53a3dd76f78961510
+SIZE (powermanga-0.93.tgz) = 11851308
diff --git a/games/powermanga/files/patch-configure.ac b/games/powermanga/files/patch-configure.ac
index 44494d40bcdc..257f28b77eca 100644
--- a/games/powermanga/files/patch-configure.ac
+++ b/games/powermanga/files/patch-configure.ac
@@ -1,17 +1,5 @@
---- configure.ac.orig 2012-08-26 19:44:25.000000000 +0400
-+++ configure.ac 2013-09-28 03:45:02.570519016 +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 -pedantic -Wextra -std=gnu99 -g"
- else
-- CFLAGS="-O3 -Werror -Wall -pedantic -Wextra -std=gnu99"
-+ CFLAGS="$CFLAGS -Wall -pedantic -Wextra -std=gnu99"
- fi
-
- dnl Check for SDL_mixer
+--- configure.ac.orig 2014-09-01 16:03:11.000000000 +0400
++++ configure.ac 2014-11-28 00:31:29.000000000 +0300
@@ -97,7 +97,7 @@
i*86) ac_cv_need_asm=yes ;;
*) ac_cv_need_asm=no ;;
diff --git a/games/powermanga/pkg-install b/games/powermanga/pkg-install
deleted file mode 100644
index fe4137f8d786..000000000000
--- a/games/powermanga/pkg-install
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-
-SCOREDIR="/var/games/powermanga"
-SCOREBASE="${SCOREDIR}/powermanga.hi"
-
-[ "$2" != "POST-INSTALL" ] && exit 0
-
-echo "Creating hiscore directory..."
-mkdir -p $SCOREDIR
-
-for suffix in "-easy" "" "-hard"; do
- file="$SCOREBASE$suffix"
- [ ! -f $file ] && touch $file
- chown root:games $file
- chmod 664 $file
-done
diff --git a/games/powermanga/pkg-plist b/games/powermanga/pkg-plist
index 539dd78aa0b5..579276981086 100644
--- a/games/powermanga/pkg-plist
+++ b/games/powermanga/pkg-plist
@@ -1,8 +1,8 @@
-@group games
-@mode 2555
-bin/powermanga
-@mode
-@group
+@(,games,2555) bin/powermanga
man/man6/powermanga.6.gz
share/applications/powermanga.desktop
share/pixmaps/powermanga.xpm
+@sample(,games,664) /var/games/powermanga/powermanga.hi.sample
+@sample(,games,664) /var/games/powermanga/powermanga.hi-easy.sample
+@sample(,games,664) /var/games/powermanga/powermanga.hi-hard.sample
+@dir /var/games/powermanga