2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Kirill Ponomarew <krion@FreeBSD.org>
|
2004-01-02 22:33:26 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= shaaft
|
|
|
|
PORTVERSION= 0.5.0
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 23
|
2004-01-02 22:33:26 +01:00
|
|
|
CATEGORIES= games
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF/criticalmass/OldFiles
|
2004-01-02 22:33:26 +01:00
|
|
|
DISTNAME= Shaaft-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-11-11 01:45:23 +01:00
|
|
|
COMMENT= OpenGL 3D falling block game similar to Blockout
|
2004-05-17 20:39:48 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2012-06-01 07:26:28 +02:00
|
|
|
|
2004-05-17 20:39:48 +02:00
|
|
|
CONFLICTS= criticalmass-*
|
2004-01-02 22:33:26 +01:00
|
|
|
|
2016-01-10 01:22:54 +01:00
|
|
|
USES= tar:bzip2
|
2004-01-20 18:37:47 +01:00
|
|
|
USE_SDL= mixer image sdl
|
2018-01-19 16:08:00 +01:00
|
|
|
USE_GL= gl
|
2013-12-20 11:42:42 +01:00
|
|
|
USE_GCC= any
|
games/shaaft: unbreak with gcc6 or later
In file included from Config.cpp:21:0:
./Config.hpp:84:63: error: template argument 3 is invalid
hash_map< string, Value*, hash<string>, equal_to<string> > &kvmap);
^
./Config.hpp:84:63: error: template argument 3 is invalid
./Config.hpp:84:63: error: template argument 3 is invalid
./Config.hpp:84:6: error: 'hash_map' is not a type
hash_map< string, Value*, hash<string>, equal_to<string> > &kvmap);
^~~~~~~~
./Config.hpp:84:14: error: expected ',' or '...' before '<' token
hash_map< string, Value*, hash<string>, equal_to<string> > &kvmap);
^
./Config.hpp:87:63: error: template argument 3 is invalid
hash_map< string, Value*, hash<string>, equal_to<string> > &kvmap);
^
[...]
2017-02-11 16:32:33 +01:00
|
|
|
USE_CXXSTD= gnu++98
|
2004-01-02 22:33:26 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2004-05-17 20:39:48 +02:00
|
|
|
CONFIGURE_ARGS= --disable-optimize
|
2013-12-20 11:42:42 +01:00
|
|
|
|
|
|
|
CPPFLAGS+= $$(libpng-config --I_opts)
|
|
|
|
LDFLAGS+= $$(libpng-config --L_opts)
|
|
|
|
|
2007-06-15 11:34:11 +02:00
|
|
|
DATADIR= ${PREFIX}/share/Shaaft
|
|
|
|
|
2013-11-11 01:45:23 +01:00
|
|
|
PLIST_FILES= bin/Packer bin/shaaft %%DATADIR%%/resource.dat \
|
|
|
|
man/man6/shaaft.6.gz
|
2004-01-02 22:33:26 +01:00
|
|
|
|
2013-12-20 11:42:42 +01:00
|
|
|
DESKTOP_ENTRIES="Shaaft" "" "" "${PORTNAME}" "" ""
|
|
|
|
|
2004-05-17 20:39:48 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
|
2007-06-15 11:34:11 +02:00
|
|
|
s|^CXXFLAGS|#CXXFLAGS|g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s|/usr/X11R6|${LOCALBASE}|g ; \
|
2007-06-15 11:34:11 +02:00
|
|
|
s|-lSDL | |g ; \
|
|
|
|
s|-lpng12|-lpng|g' ${WRKSRC}/configure
|
2004-05-17 20:39:48 +02:00
|
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|SDL/SDL|SDL|g'
|
2007-06-15 11:34:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|== 3|>= 3|' ${WRKSRC}/utils/hashMap.hpp
|
2004-05-17 20:39:48 +02:00
|
|
|
|
2016-01-10 01:22:54 +01:00
|
|
|
.include <bsd.port.mk>
|