mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
- Update to 0.93
- Convert to USES=autoreconf - Fix LDFLAGS/LIBS misuse - Convert highscore handling to @sample
This commit is contained in:
parent
97402a02aa
commit
b17dd11843
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373544
games/powermanga
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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 ;;
|
||||
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user