mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Fix build errors and runtime issues on 64 bit platforms
- Use DATADIR PR: 127385 Submitted by: myself Approved by: maintainer timeout
This commit is contained in:
parent
8e93b103e5
commit
27b27c6979
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221026
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= hex-a-hop
|
||||
PORTVERSION= 1.0.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://ftp.bishopston.net/freebsd/distfiles/ \
|
||||
ftp://ftp.bishopston.net/freebsd/distfiles/ \
|
||||
@ -16,23 +16,19 @@ MASTER_SITES= http://ftp.bishopston.net/freebsd/distfiles/ \
|
||||
MAINTAINER= jamie@bishopston.net
|
||||
COMMENT= A puzzle game based on hexagonal tiles
|
||||
|
||||
NOT_FOR_ARCHS= amd64 sparc64
|
||||
NOT_FOR_ARCHS_REASON_amd64= Probably an easy fix, but I've no access to an amd64 machine. Offers of help appreciated!
|
||||
NOT_FOR_ARCHS_REASON_sparc64= Probably an easy fix, but I've no access to an sparc64 machine. Offers of help appreciated!
|
||||
|
||||
USE_SDL= sdl
|
||||
MAKEFILE= Makefile.FreeBSD
|
||||
ALL_TARGET= ${PORTNAME}
|
||||
|
||||
MAKE_ARGS+= SYSTEM_INSTALL_DIR="${PREFIX}/games/hex-a-hop/"
|
||||
MAKE_ARGS+= SYSTEM_INSTALL_DIR="${DATADIR}/"
|
||||
DESKTOP_ENTRIES="Hex-a-Hop" "A puzzle game based on hexagonal tiles" \
|
||||
"${PREFIX}/games/hex-a-hop/graphics/icon.bmp" \
|
||||
"hex-a-hop" "Application;LogicGame;Game;" false
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/hex-a-hop ${PREFIX}/bin
|
||||
${MKDIR} ${PREFIX}/games/hex-a-hop/graphics/
|
||||
${INSTALL_DATA} ${WRKSRC}/graphics/* ${PREFIX}/games/hex-a-hop/graphics
|
||||
${INSTALL_DATA} ${WRKSRC}/levels.dat ${PREFIX}/games/hex-a-hop
|
||||
${MKDIR} ${DATADIR}/graphics
|
||||
${INSTALL_DATA} ${WRKSRC}/graphics/* ${DATADIR}/graphics/
|
||||
${INSTALL_DATA} ${WRKSRC}/levels.dat ${DATADIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
games/hex-a-hop/files/patch-hex_puzzzle.cpp
Normal file
11
games/hex-a-hop/files/patch-hex_puzzzle.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- hex_puzzzle.cpp.orig 2006-02-21 07:12:34.000000000 +0300
|
||||
+++ hex_puzzzle.cpp 2008-09-14 21:34:14.296378652 +0400
|
||||
@@ -2313,7 +2313,7 @@
|
||||
|
||||
SDL_Surface* Load(const char * bmp, bool colourKey=true)
|
||||
{
|
||||
- typedef unsigned long uint32;
|
||||
+ typedef unsigned int uint32;
|
||||
uint32* tmp = 0;
|
||||
|
||||
SDL_Surface * g = 0;
|
11
games/hex-a-hop/files/patch-menus.h
Normal file
11
games/hex-a-hop/files/patch-menus.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- menus.h.orig 2006-02-21 06:10:35.000000000 +0300
|
||||
+++ menus.h 2008-09-14 21:34:41.711083734 +0400
|
||||
@@ -1073,7 +1073,7 @@
|
||||
if (under)
|
||||
under->Render();
|
||||
|
||||
- RenderFade(time, dir, (int)this);
|
||||
+ RenderFade(time, dir, reinterpret_cast<intptr_t>(this));
|
||||
}
|
||||
void Update(double timedelta)
|
||||
{
|
@ -1,14 +1,13 @@
|
||||
bin/hex-a-hop
|
||||
games/hex-a-hop/graphics/emi.dat
|
||||
games/hex-a-hop/graphics/font.dat
|
||||
games/hex-a-hop/graphics/gradient.dat
|
||||
games/hex-a-hop/graphics/icon.bmp
|
||||
games/hex-a-hop/graphics/map.dat
|
||||
games/hex-a-hop/graphics/map_top.dat
|
||||
games/hex-a-hop/graphics/tiles.dat
|
||||
games/hex-a-hop/graphics/tiles_reflect.dat
|
||||
games/hex-a-hop/graphics/title.dat
|
||||
games/hex-a-hop/levels.dat
|
||||
@dirrm games/hex-a-hop/graphics/
|
||||
@dirrm games/hex-a-hop/
|
||||
@dirrmtry games/
|
||||
%%DATADIR%%/graphics/emi.dat
|
||||
%%DATADIR%%/graphics/font.dat
|
||||
%%DATADIR%%/graphics/gradient.dat
|
||||
%%DATADIR%%/graphics/icon.bmp
|
||||
%%DATADIR%%/graphics/map.dat
|
||||
%%DATADIR%%/graphics/map_top.dat
|
||||
%%DATADIR%%/graphics/tiles.dat
|
||||
%%DATADIR%%/graphics/tiles_reflect.dat
|
||||
%%DATADIR%%/graphics/title.dat
|
||||
%%DATADIR%%/levels.dat
|
||||
@dirrm %%DATADIR%%/graphics
|
||||
@dirrm %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user