a9f015d155
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
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# Created by: Kirill Ponomarew <krion@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= shaaft
|
|
PORTVERSION= 0.5.0
|
|
PORTREVISION= 23
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/criticalmass/OldFiles
|
|
DISTNAME= Shaaft-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= OpenGL 3D falling block game similar to Blockout
|
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
|
|
|
CONFLICTS= criticalmass-*
|
|
|
|
USES= tar:bzip2
|
|
USE_SDL= mixer image sdl
|
|
USE_GL= gl
|
|
USE_GCC= any
|
|
USE_CXXSTD= gnu++98
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-optimize
|
|
|
|
CPPFLAGS+= $$(libpng-config --I_opts)
|
|
LDFLAGS+= $$(libpng-config --L_opts)
|
|
|
|
DATADIR= ${PREFIX}/share/Shaaft
|
|
|
|
PLIST_FILES= bin/Packer bin/shaaft %%DATADIR%%/resource.dat \
|
|
man/man6/shaaft.6.gz
|
|
|
|
DESKTOP_ENTRIES="Shaaft" "" "" "${PORTNAME}" "" ""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG:T}|g ; \
|
|
s|^CXXFLAGS|#CXXFLAGS|g ; \
|
|
s|/usr/X11R6|${LOCALBASE}|g ; \
|
|
s|-lSDL | |g ; \
|
|
s|-lpng12|-lpng|g' ${WRKSRC}/configure
|
|
@${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|SDL/SDL|SDL|g'
|
|
@${REINPLACE_CMD} -e 's|== 3|>= 3|' ${WRKSRC}/utils/hashMap.hpp
|
|
|
|
.include <bsd.port.mk>
|